码迷,mamicode.com
首页 >  
搜索关键字:lifting the stone    ( 411个结果
HDU 1729 Stone Game 石头游戏 (Nim, sg函数)
题意:有n个盒子,每个盒子可以放一定量的石头,盒子中可能已经有了部分石头。假设石头无限,每次可以往任意一个盒子中放石头,可以加的数量不得超过该盒中已有石头数量的平方k^2,即至少放1个,至多放k^2个。思路:跟常规nim的区别就是加了个限制“每次加的量不超平方”。盒子容量上限是100万,那么就不能直...
分类:其他好文   时间:2015-05-20 20:31:44    阅读次数:156
poj 3517(约瑟夫环问题)
And Then There Was OneTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 4873Accepted: 2598DescriptionLet’s play a stone removing game.Initially...
分类:其他好文   时间:2015-05-07 18:28:00    阅读次数:164
(floyd应用) poj 2253
FroggerTime Limit:1000MSMemory Limit:65536KTotal Submissions:28112Accepted:9136DescriptionFreddy Frog is sitting on a stone in the middle of a lake. S...
分类:其他好文   时间:2015-04-30 00:41:20    阅读次数:161
LCT男人八题系列
楼教的男人八题名气甚大,今天做了一道感觉还是涨了不少姿势的,然而估计之后的每道题都要看题解吧,姑且先记录一下。以后再做再更1737Connected Graph1100LouTiancheng@POJ1738An old Stone Game407LouTiancheng@POJ1739Tony's...
分类:其他好文   时间:2015-04-28 22:47:03    阅读次数:327
解题报告 之 SOJ2414 Leapin' Lizards
解题报告 之 SOJ2414 Leapin' Lizards Your platoon of wandering lizards has entered a strange room in the labyrinth you are exploring. As you are looking around for hidden treasures, one of the rookies steps on an innocent-looking stone and the room's floor sudd...
分类:Windows程序   时间:2015-04-26 10:54:58    阅读次数:186
hdu 4248 A Famous Stone Collector
首先发现一个很头痛的问题,下面是2个求排列组合的代码1 memset(C,0,sizeof(C));2 for(int i=0;i 2 #include 3 #include 4 #define MOD 1000000007 5 using namespace std; 6 typedef...
分类:其他好文   时间:2015-04-18 12:58:22    阅读次数:130
Codeforces Round #140 (Div. 1) Naughty Stone Piles 贪心
#include #include #include #include #include using namespace std; const int maxn = 1000010; __int64 sum[maxn] ; __int64 num[maxn]; __int64 ans[maxn]; __int64 vis[maxn] ; __int64 query; __i...
分类:其他好文   时间:2015-04-16 23:49:50    阅读次数:258
hdu4764 Stone 巴什博弈
//先到n-1的赢 #include #include #include using namespace std ; int main() {     int n , k;     while(scanf("%d%d",&n,&k)  , n+k)     {         if((n-1)%(k+1) == 0) printf("Jiang\n") ;         e...
分类:其他好文   时间:2015-04-11 14:52:57    阅读次数:114
jdk自带的动态代理
package com.stone.dp.proxy;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;/** * jdk自带的动态代理;...
分类:其他好文   时间:2015-04-07 09:37:30    阅读次数:106
hdu 1729 Stone Game SG函数
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1729题意:2个玩家,有N个箱子,每个箱子的大小是Si,游戏开始前,就有一些石子在这些箱子里了。游戏者轮流选择箱子,然后把石子放入箱子里。并且放入的石子数量不能大于原来箱子里就有的石子的数量的平方。比如说...
分类:其他好文   时间:2015-04-02 22:10:39    阅读次数:150
411条   上一页 1 ... 27 28 29 30 31 ... 42 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!