http://poj.org/problem?id=2234博弈论真是博大精深orz首先我们仔细分析很容易分析出来,当只有一堆的时候,先手必胜;两堆并且相同的时候,先手必败,反之必胜。根据博弈论的知识(论文 张一飞:《由感性认识到理性认识——透析一类搏弈游戏的解答过程》)局面可以分解,且结果可以合并...
分类:
其他好文 时间:
2014-08-27 17:54:48
阅读次数:
300
http://poj.org/problem?id=1740题目大意就是,对于n堆石子,每堆若干个,两人轮流操作,每次操作分两步,第一步从某堆中去掉至少一个,第二步(可省略)把该堆剩余石子的一部分分给其它的某些堆。最后谁无子可取即输。看了题解感觉太神了。首先我们来分析:当只有一堆时,先手必胜,直接一...
分类:
其他好文 时间:
2014-08-27 14:23:28
阅读次数:
261
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3671
Japanese Mahjong III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Mahjong is a game of skill, strategy and ca...
分类:
其他好文 时间:
2014-08-26 21:31:16
阅读次数:
346
Strategic GameTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5034Accepted Submission(s): 2297Pr...
分类:
其他好文 时间:
2014-08-26 17:01:48
阅读次数:
232
Problem Description
Dragon is watching NBA. He loves James and Miami Heat.
Here's an introduction of basketball game:http://en.wikipedia.org/wiki/Basketball. However the game in Dragon's version...
分类:
其他好文 时间:
2014-08-26 15:38:56
阅读次数:
183
Alice and Bob is playing a game, and this time the game is all about the absolute value!
Alice has N different positive integers, and each number is not greater than N. Bob has a lot of blank paper, ...
分类:
其他好文 时间:
2014-08-26 15:37:46
阅读次数:
228
Unity3d优化检测方式:一,Unity3D 渲染统计窗口Game视窗的Stats去查看渲染统计的信息:1、FPSfps其实就是 frames per second,也就是每一秒游戏执行的帧数,这个数值越小,说明游戏越卡。2、Draw callsbatching之后渲染mesh的数量,和当前渲染到...
分类:
其他好文 时间:
2014-08-26 13:16:56
阅读次数:
220
Description
For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ultimate Frisbee with some of the cows. ...
分类:
其他好文 时间:
2014-08-25 23:01:45
阅读次数:
508
题意:用二分法找出数学期望。
策略,二分。
求数学期望有两种方法,一:求出每一个数的概率,再与数相乘,最后把所有的乘积相加就好了。
二:数学期望总是与平均数相等,所以可以当做求平均数。(简单方便)
代码:...
分类:
其他好文 时间:
2014-08-25 23:00:45
阅读次数:
466
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798
Abs Problem
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Alice and Bob is playing a game, and ...
分类:
其他好文 时间:
2014-08-25 21:16:24
阅读次数:
293