![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数论
文章平均质量分 78
Mr_rainxbow
上学中。码农养成中。java和web修炼中。
展开
-
[暖手][学习阶段-各路杂题][HDU-1030]Delta-wave
Problem Description A triangle field is numbered with successive integers in the way shown on the picture below. The traveller needs to go from the cell with number M to the cell with num原创 2015-01-29 10:05:41 · 430 阅读 · 0 评论 -
[暖手][学习阶段-各路杂题][HDU-1028]Ignatius and the Princess III
Problem Description "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "The second problem is, given an positive integer N, we define a原创 2015-01-29 21:14:39 · 399 阅读 · 0 评论 -
[暖手][学习阶段-各路杂题][HDU-1163]Eddy's digital Roots
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the result原创 2015-02-01 00:27:26 · 394 阅读 · 0 评论 -
[暖手][学习阶段-各路杂题][HDU-1205]吃糖果(回去就买组合数学 不买剁手)
想了半天 感觉长的好像鸽巢 但是还是用了很笨的办法A的。 离散和组合数学还真是需要自学一下。 Problem Description HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序原创 2015-02-02 16:17:11 · 342 阅读 · 0 评论 -
[math][第二阶段-easy math][HDU-1722]Cake
Problem Description 一次生日Party可能有p人或者q人参加,现准备有一个大蛋糕.问最少要将蛋糕切成多少块(每块大小不一定相等),才能使p人或者q人出席的任何一种情况,都能平均将蛋糕分食. Input 每行有两个数p和q. Output 输出最少要将蛋糕切成多少块. Sample Inp原创 2015-01-13 23:54:42 · 367 阅读 · 0 评论