原创 Frogs (hdu5514)——2015ACM/ICPC亞洲區瀋陽站(容斥定理)

There are mm stones lying on a circle, and nn frogs are jumping over them.  The stones are numbered from 00 to m−1m−1

原创 Game of Taking Stones (hdu5973)——2016大連現場賽C題 威佐夫博弈

Two people face two piles of stones and make a game. They take turns to take stones. As game rules, there are two diffe

原创 Public Sale(hdu2149)巴什博弈

Problem Description 雖然不想,但是現實總歸是現實,Lele始終沒有逃過退學的命運,因爲他沒有拿到獎學金。現在等待他的,就是像FarmJohn一樣的農田生涯。 要種田得有田纔行,Lele聽說街上正在舉行一場別開生面的拍賣

原创 取石子游戲(hdu1527)

Problem Description 有兩堆石子,數量任意,可以不同。遊戲開始由兩個人輪流取石子。遊戲規定,每次有兩種不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在兩堆中同時取走相同數量的石子。最後把石子全部取完者爲勝者

原创 Game of Flying Circus --(hdu5515)

The discovery of anti-gravitations technology changed the world. The invention of anti-gravitation shoes (Grav-shoes) e

原创 Kanade's sum(hdu 6058)

Problem Description Give you an array A[1..n]of length n. Let f(l,r,k) be the k-th largest element of A[l..r]. Specia

原创 Intersection (hdu-5120)

Matt is a big fan of logo design. Recently he falls in love with logo made up by rings. The following figures are some

原创 kiki's game(hdu2147)

Problem Description Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes t

原创 Square Coins (hdu1398)

Problem Description People in Silverland use square coins. Not only they have square shapes but also their values are s

原创 Collision (hdu-5114)

Matt is playing a naive computer game with his deeply loved pure girl.  The playground is a rectangle with walls around

原创 An Easy Physics Problem (hdu5572) 2015ACM/ICPC亞洲區上海站

On an infinite smooth table, there's a big round fixed cylinder and a little ball whose volume can be ignored.  Current

原创 Rikka with Subset(hdu6092)

Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some ma

原创 TrickGCD————(hdu6053)2017多校(莫比烏斯容斥)

Problem Description You are given an array A , and Zhu wants to know there are how many different array B satisfy t

原创 Unknown Treasure ————(hdu5446) 中國剩餘定理+盧卡斯定理

On the way to the next secret treasure hiding place, the mathematician discovered a cave unknown to the map. The mathem

原创 Pagodas --(hdu5512)2015ACM/ICPC亞洲區瀋陽站

nn pagodas were standing erect in Hong Jue Si between the Niushou Mountain and the Yuntai Mountain, labelled from 11 t