上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页
摘要: 1 .anti-nim 2 . 可以拆分的 阅读全文
posted @ 2018-05-09 23:54 楼主好菜啊 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 推荐博客 :http://www.cnitblog.com/weiweibbs/articles/42735.html 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的: F(1)=1; F(2)=2; F(n)=F(n-1)+F(n-2)(n>=3) 阅读全文
posted @ 2018-05-09 22:36 楼主好菜啊 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multiple of the lesser of the two 阅读全文
posted @ 2018-05-07 16:31 楼主好菜啊 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Georgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, ..., and place 阅读全文
posted @ 2018-05-07 11:20 楼主好菜啊 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 问题描述 : 有N堆物品,其中第 i 堆有 pi 个物品,每次从一堆中选出若干个物品去掉(但不能为 0 ),两人轮流取物品,谁不能取谁就输了,问什么情况下会先手必胜? 代码示例 : 尼姆博弈有几种经典的扩展形式 1 . 限定每次取物的上限 问题 : 有 n 堆物品,其中第 i 堆有 pi 个物品,每 阅读全文
posted @ 2018-05-06 08:19 楼主好菜啊 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题目类型 : 有两堆物品数量若干,两人轮流从某一堆或同时从两堆中选取同样多的物品,规定每次最小选一个,多者不限,最后一次取尽者获胜。 分析 : 相比于巴什博弈,此种博弈得情形更加复杂些,我们用(X , Y)表示当前得局势,如果甲面对(0 , 0)说明甲输掉了比赛,我们称这种状态是奇异局势,前几个奇异 阅读全文
posted @ 2018-05-05 21:02 楼主好菜啊 阅读(252) 评论(0) 推荐(0) 编辑
摘要: There has been considerable archeological work on the ancient Myacm culture. Many artifacts have been found in what have been called power fields: a f 阅读全文
posted @ 2018-05-05 17:56 楼主好菜啊 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Given are the (x,y) coordinates of the endpoints of two adjacent sides of a parallelogram. Find the (x,y) coordinates of the fourth point. Input Each 阅读全文
posted @ 2018-05-05 16:19 楼主好菜啊 阅读(1830) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/109/C来源:牛客网 题目描述 给定长度为n的数组a,定义一次操作为: 1. 算出长度为n的数组s,使得si= (a[1] + a[2] + ... + a[i]) mod 1,000,000,007; 2. 执行a 阅读全文
posted @ 2018-05-05 15:40 楼主好菜啊 阅读(463) 评论(0) 推荐(0) 编辑
摘要: import java.math.*; import java.util.*; public class study { public static void main(String[] args) { // TODO Auto-generated method stub Scanner cin = new Scanner(System.in); BigInteger a, b... 阅读全文
posted @ 2018-05-03 23:34 楼主好菜啊 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 45 下一页