#include
摘要: K题:CF 题目描述 LYD loves codeforces since there are many Russian contests. In an contest lasting for T minutes there are n problems, and for the ith probl 阅读全文
posted @ 2017-10-06 20:42 0一叶0知秋0 阅读(320) 评论(0) 推荐(0) 编辑
摘要: G: sum of power 题目描述 Calculate mod (1000000000+7) for given n,m. Calculate mod (1000000000+7) for given n,m. 输入 Input contains two integers n,m(1≤n≤10 阅读全文
posted @ 2017-10-06 15:22 0一叶0知秋0 阅读(283) 评论(0) 推荐(0) 编辑
摘要: F题:quadratic equation 时间限制: 2 秒 内存限制: 128 MB | 提交: 277 解决: 44 题目描述 With given integers a,b,c, you are asked to judge whether the following statement i 阅读全文
posted @ 2017-10-06 15:00 0一叶0知秋0 阅读(295) 评论(0) 推荐(0) 编辑
摘要: A题:Return of the Nim 时间限制: 1 秒 内存限制: 64 MB | 提交: 33 解决: 16 题目描述 Sherlock and Watson are playing the following modified version of Nim game: There are 阅读全文
posted @ 2017-10-06 12:54 0一叶0知秋0 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1069 Nim游戏(51NOD基础) 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 有N堆石子。A B两个人轮流拿,A先拿。每次只能从一堆中取若干个,可将一堆全取走,但不可不取,拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出N及每堆 阅读全文
posted @ 2017-10-06 11:57 0一叶0知秋0 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 博弈知识汇总 有一种很有意思的游戏,就是有物体若干堆,可以是火柴棍或是围棋子等等均可。两个人轮流从堆中取物体若干,规定最后取光物体者取胜。这是我国民间很古老的一个游戏,别看这游戏极其简单,却蕴含着深刻的数学原理。下面我们来分析一下要如何才能够取胜。 (一)巴什博奕(Bash Game):只有一堆n个 阅读全文
posted @ 2017-10-06 11:17 0一叶0知秋0 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1072 威佐夫游戏51NOD基础题 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 有2堆石子。A B两个人轮流拿,A先拿。每次可以从一堆中取任意个或从2堆中取相同数量的石子,但不可不取。拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出 阅读全文
posted @ 2017-10-06 11:11 0一叶0知秋0 阅读(147) 评论(0) 推荐(0) 编辑