Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of ...
分类:
其他好文 时间:
2017-08-09 13:00:06
阅读次数:
209
Chef and Mover Problem Code: CHEFMOVR Chef's dog Snuffles has so many things to play with! This time around, Snuffles has an array A containing N inte ...
分类:
其他好文 时间:
2017-08-05 00:07:00
阅读次数:
178
Description A game-board consists of N fields placed around a circle. Fields are successively numbered from1 to N clockwise. In some fields there may ...
分类:
其他好文 时间:
2017-08-04 14:30:05
阅读次数:
144
gcd(最大公因数)和lcm(最小公倍数) 辗转相除法求a和b的最大公因数和最小公倍数: 最小公倍数=a*b/最大公约数; 求最大公因数: 求最小公倍数: 题目: There is a hill with n holes around. The holes are signed from 0 to ...
分类:
其他好文 时间:
2017-08-02 22:10:29
阅读次数:
177
There is a hill with n holes around. The holes are signed from 0 to n-1. A rabbit must hide in one of the holes. A wolf searches the rabbit in anticlo ...
分类:
其他好文 时间:
2017-08-02 11:50:03
阅读次数:
160
Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. ...
分类:
其他好文 时间:
2017-08-02 11:08:47
阅读次数:
211
There is a hill with n holes around. The holes are signed from 0 to n-1. A rabbit must hide in one of the holes. A wolf searches the rabbit in anticlo ...
分类:
其他好文 时间:
2017-08-01 20:51:10
阅读次数:
158
A - Fence Repair Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ ...
分类:
其他好文 时间:
2017-08-01 17:08:31
阅读次数:
259
Emuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot. He wants the fence to be a reg ...
分类:
其他好文 时间:
2017-07-31 12:30:17
阅读次数:
172