摘要:
Uva12230Crossing Rivers 问题: You live in a village but work in another village. You decided to follow the straight path between your house (A) and the 阅读全文
摘要:
Telephone Lines Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8856 Accepted: 3211 Description Farmer John wants to set up a telephone lin 阅读全文
摘要:
题目描述 给出正整数n和k,计算G(n, k)=k mod 1 + k mod 2 + k mod 3 + … + k mod n的值,其中k mod i表示k除以i的余数。例如G(10, 5)=5 mod 1 + 5 mod 2 + 5 mod 3 + 5 mod 4 + 5 mod 5 …… + 阅读全文
摘要:
Moving On Firdaws and Fatinah are living in a country with nn cities, numbered from 11 to nn.Each city has a risk of kidnapping or robbery. Firdaws's 阅读全文