![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
ling_wang
小白要奋斗~~~
展开
-
Digital Root(数根)
正整数的数根即是该整数各个数位数字之和.设该数为n,该数数根为F[n],如果F(n)只含一个数字,则它的数根为它本身,否则n的数字根等于F(n)的数根。eg.求 987的数根 第一步 9+8+7=15 第二步1+5=6 所以987的数根为6求数根的公式:F[n] = 1 + ((num - 1) % 9)证明转自:https://blog.csdn.net/ray0354315/...原创 2018-06-03 19:05:44 · 2333 阅读 · 0 评论 -
hdu 3032 Nim or not Nim?(博弈 SG)
Nim is a two-player mathematic game of strategy in which players take turns removing objects from distinct heaps. On each turn, a player must remove at least one object, and may remove any number of o...原创 2018-07-31 15:29:26 · 194 阅读 · 0 评论 -
hdu1846 Brave Game(巴什博弈 模板题)
十年前读大学的时候,中国每年都要从国外引进一些电影大片,其中有一部电影就叫《勇敢者的游戏》(英文名称:Zathura),一直到现在,我依然对于电影中的部分电脑特技印象深刻。 今天,大家选择上机考试,就是一种勇敢(brave)的选择;这个短学期,我们讲的是博弈(game)专题;所以,大家现在玩的也是“勇敢者的游戏”,这也是我命名这个题目的原因。 当然,除了“勇敢”,我还希望看到“...原创 2018-07-31 11:37:38 · 220 阅读 · 0 评论 -
hdu 1874 Good Luck in CET-4 Everybody!(博弈 SG函数)
大学英语四级考试就要来临了,你是不是在紧张的复习?也许紧张得连短学期的ACM都没工夫练习了,反正我知道的Kiki和Cici都是如此。当然,作为在考场浸润了十几载的当代大学生,Kiki和Cici更懂得考前的放松,所谓“张弛有道”就是这个意思。这不,Kiki和Cici在每天晚上休息之前都要玩一会儿扑克牌以放松神经。 “升级”?“双扣”?“红五”?还是“斗地主”? 当然都不是!那多俗...原创 2018-07-31 11:28:26 · 190 阅读 · 0 评论 -
hdu 1564 Play a game(博弈 找规律)
New Year is Coming! ailyanlu is very happy today! and he is playing a chessboard game with 8600. The size of the chessboard is n*n. A stone is placed in a corner square. They play alternativ...原创 2018-07-31 09:47:04 · 269 阅读 · 0 评论 -
hdu 1079 Calendar Game(博弈论 找规律)
Adam and Eve enter this year’s ACM International Collegiate Programming Contest. Last night, they played the Calendar Game, in celebration of this contest. This game consists of the dates from Januar...原创 2018-07-30 16:20:27 · 261 阅读 · 0 评论 -
ACM博弈知识总结及相关例题
由于一直没接触博弈,我已经被博弈题坑了好几把了,所以有了这篇写给自己的学习历程 定义转载自: https://www.cnblogs.com/kuangbin/archive/2011/08/28/2156426.html https://blog.csdn.net/qq_15714857/article/details/49691585博弈博弈:有若干堆物体(可以是火柴棍或是围...原创 2018-07-30 11:17:08 · 603 阅读 · 0 评论 -
Codeforces 834(426 Div.2) C.The Meaningless Game(pow函数)
Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting.The game consists of multiple rounds. Its rules are very simple: in each round, a natural number k i...原创 2018-06-02 15:37:08 · 145 阅读 · 0 评论 -
hdu 1220 Cube(数学)
Cowl is good at solving math problems. One day a friend asked him such a question: You are given a cube whose edge length is N, it is cut by the planes that was paralleled to its side planes into N * ...原创 2018-05-31 21:57:12 · 298 阅读 · 0 评论 -
SGU - 118 Digital Root
Let f(n) be a sum of digits for positive integer n. If f(n) is one-digit number then it is a digital root for n and otherwise digital root of n is equal to digital root of f(n). For example, digital r...原创 2018-06-04 19:53:45 · 224 阅读 · 0 评论 -
博弈专题练习
ACM博弈知识总结原创 2018-07-31 15:31:37 · 576 阅读 · 0 评论