![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
鸽巢定理
tomjobs
别慌,慌也没用
展开
-
CCPC哈尔滨2019 Exchanging Gifts Gym - 102394E(数学)
outputstandard output After the dress rehearsal of CCPC Harbin Site 2019, ???? contestants are still in the contest arena. They are taking photos, discussing the problems, and exchanging gifts. Initially...原创 2020-02-15 23:42:38 · 627 阅读 · 0 评论 -
hdu1205 吃糖果(鸽巢定理)
Problem Description HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。 Input 第一行有一个整数T,接下来T组数据,每组数据占2行,第一行是一个整数N(0<N...原创 2020-02-15 17:54:58 · 270 阅读 · 0 评论