摘要: 51Nod 1185 威佐夫游戏 V2 Description 有2堆石子。A B两个人轮流拿,A先拿。每次可以从一堆中取任意个或从2堆中取相同数量的石子,但不可不取。拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出2堆石子的数量,问最后谁能赢得比赛。 例如:2堆石子 阅读全文
posted @ 2018-09-20 21:08 caomp 阅读(193) 评论(0) 推荐(0)
摘要: Gym 101667I Slot Machines Description Slot machines are popular game machines in casinos. The slot machine we are considering has six places where a f 阅读全文
posted @ 2018-09-20 10:20 caomp 阅读(691) 评论(0) 推荐(0)
摘要: Gym 101667F Philosopher's Walk Description In Programming Land, there are several pathways called Philosopher’s Walks for philosophers to have a rest. 阅读全文
posted @ 2018-09-20 09:35 caomp 阅读(436) 评论(0) 推荐(0)