摘要: Fence RepairTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 20200Accepted: 6404DescriptionFarmer 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 wood, each having some integer length Li (1 ≤ Li ≤ 阅读全文
posted @ 2013-08-12 20:45 王莜轩 阅读(163) 评论(0) 推荐(0) 编辑
摘要: A/BTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1149Accepted Submission(s): 889Problem Description要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有T组数据。每组数据有两个数n(0 int main(){ int t; scanf("%d",&am 阅读全文
posted @ 2013-08-12 20:40 王莜轩 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 房间安排时间限制:3000 ms | 内存限制:65535 KB难度:2描述2010年上海世界博览会(Expo2010),是第41届世界博览会。于2010年5月1日至10月31日期间,在中国上海市举行。本次世博会也是由中国举办的首届世界博览会。上海世博会以“城市,让生活更美好”(Better City,Better Life)为主题,将充分探索21世纪城市生活。这次世博会总投资达450亿人民币,创造了世界博览会史上的最大规模记录。吸引200个国家和国际组织参展。预计有7000万人次的参观者。为了更好地接待在这期间来自世界各地的参观者,如何合理安排各宾馆的住房问题提到了日程。组委会已接到了大量的 阅读全文
posted @ 2013-08-12 17:58 王莜轩 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Function Run FunTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 14930Accepted: 7733DescriptionWe all love recursion! Don't we? Consider a three-parameter recursive function w(a, b, c): if a 20 or b > 20 or c > 20, then w(a, b, c) returns: w(20, 20, 20) if a #includeint f[22][22][2 阅读全文
posted @ 2013-08-12 16:47 王莜轩 阅读(179) 评论(0) 推荐(0) 编辑