
C Programming Language
守望小桃雪
jiayou
展开
-
猜数游戏(1)
猜数游戏Time Limit:1000 ms Memory Limit:65536 KiBSubmit StatisticProblem DescriptionAlice 和 Bob 正在玩一个猜数游戏,游戏规则如下。有且仅有一个未知的整数需要Alice去猜测,Bob事先已经知道了这个数。在游戏中 Bob 总共提供给 Alice n 条线索,而Alice只有一次猜测机会...原创 2019-06-22 10:21:58 · 1698 阅读 · 0 评论 -
easy math problem(2)
easy math problemTime Limit:1000 ms Memory Limit:65536 KiBSubmit Statistic DiscussProblem Description对于一个数n,有以下两种操作:一是减一,需要花费 a 。但是如果 n 能被 k 整除,还可以花费 b 让 n 除以 k。请问将这个数变为1最少要多少花费?Inpu...原创 2019-06-22 14:06:13 · 324 阅读 · 0 评论