上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: ACM/ICPC2018北京网络赛 Hihocoder1831 : 80 Days 描述 80 Days is an interesting game based on Jules Verne's science fiction "Around the World in Eighty Days". 阅读全文
posted @ 2018-09-22 21:18 caomp 阅读(155) 评论(0) 推荐(0)
摘要: ACM/ICPC2018北京网络赛 Hihocoder1830 : Cheat 描述 Cheat is a card game played by four players sitting around a table. They are numbered from 1 to 4 in clockw 阅读全文
posted @ 2018-09-22 20:21 caomp 阅读(638) 评论(3) 推荐(0)
摘要: HDU2177 取(2堆)石子游戏 Problem Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的 阅读全文
posted @ 2018-09-21 00:33 caomp 阅读(283) 评论(0) 推荐(0)
摘要: 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 阅读(690) 评论(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)
摘要: Gym 101667D Happy Number Description Consider the following function ݂ defined for any natural number ݊: ݂ሺ݊ሻ is the number obtained by summing up the 阅读全文
posted @ 2018-09-19 20:29 caomp 阅读(319) 评论(0) 推荐(0)
摘要: Gym 101667C Game Map Description The ICPC World is the most popular RPG game for ACM ICPC contestants, whose objective is to conquer the world. A map 阅读全文
posted @ 2018-09-19 20:22 caomp 阅读(478) 评论(0) 推荐(0)
摘要: HDU1496 Equations Problem Description Consider equations having the following form: a x1^2+b x2^2+c x3^2+d x4^2=0 a, b, c, d are integers from the int 阅读全文
posted @ 2018-09-18 16:11 caomp 阅读(189) 评论(0) 推荐(0)
摘要: Gym101158G Placing Medals on a Binary Tree 题意 一颗完全二叉树,给出n个点,xi的值表示深度为xi的点。问能否在当前状态下使得从根节点到该点的路径中不会遇到其他点。 思路 其实本题的意思就是 1/2,1/4,1/8等等等等,看剩下的点能不能减。然而由于k值 阅读全文
posted @ 2018-09-12 21:46 caomp 阅读(241) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页