典型的博弈题目题意: 两个人从1~n中轮流取数,每次取到x时,则x的任意整数幂均不能再被取,最后谁取不了就输。题解: 可以发现,对于该博弈游戏的子游戏是x的1~k次幂,进行上述规则下的博弈。 而子游戏的SG值只与个数有关,与x的值无关。而k最大只有30,故可以打表。 而游戏最终结果即所有子游...
分类:
其他好文 时间:
2014-09-01 22:39:23
阅读次数:
266
前言 在嵌入式系统C语言开发调试过程中,常会遇到各类异常情况。一般可按需添加打印信息,以便观察程序执行流或变量值是否异常。然而,打印操作会占用CPU时间,而且代码中添加过多打印信息时会显得很凌乱。此外,即使出错打印已非常详尽,但仍难以完全预防和处理段违例(Segment Violation)等错误....
分类:
其他好文 时间:
2014-09-01 20:52:53
阅读次数:
2771
SYN :同步分节; ACK :确认分节; TCP选项: 1. MSS选项: 发送SYN的TCP一端使用本项告知对端它的最大分节大小(maximum segment size)即MSS。即它在本连接的每个TCP分节中愿意接受的最大数据量。 发送端TCP使用接收端的MSS值作为所发送分节的最大...
分类:
其他好文 时间:
2014-08-31 18:34:01
阅读次数:
308
Battle ShipsCrawling in process...
Crawling failed
Time Limit:2000MS
Memory Limit:65536KB 64bit IO Format:%lld & %llu
Submit
Status
Description
Battle Ships is a new game whi...
分类:
其他好文 时间:
2014-08-31 15:55:41
阅读次数:
216
转自unity圣典:http://game.ceeger.com/Manual/ProfilerWindow.htmlhttp://game.ceeger.com/Manual/Profiler.html分析器窗口 Profiler windowDate:2013-07-01 13:44Attach...
Codeforces Round #264 (Div. 2) A...
分类:
其他好文 时间:
2014-08-31 09:16:41
阅读次数:
220
Caisa solved the problem with the sugar and now he is on the way back to home.
Caisa is playing a mobile game during his path. There are
(n?+?1) pylons numbered from 0 to
n in this game. The py...
分类:
其他好文 时间:
2014-08-30 21:46:50
阅读次数:
315
Codeforces Round #264 (Div. 2)[ABCDE]
ACM
题目地址: Codeforces Round #264 (Div. 2)
这场只出了两题TAT,C由于cin给fst了,D想到正解快敲完了却game over了...
掉rating掉的厉害QvQ...
A - Caisa and Sugar【模拟】
题意:
Cai...
分类:
其他好文 时间:
2014-08-30 21:46:20
阅读次数:
403
先上题目:How LaderLader is a game that is played in aregularhexagonal board (all sides equal, all angles are also equal). The game is much similar as pool...
分类:
其他好文 时间:
2014-08-30 20:24:29
阅读次数:
259
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4063DescriptionYou are playing a flying game.In the game, player controls an aircraft in a 2D-space.The...
分类:
其他好文 时间:
2014-08-30 19:04:59
阅读次数:
254