2013年11月11日

D. Renting Bikes 二分

摘要: D. Renting Bikestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA group ofnschoolboys decided to ride bikes. As nobody of them has a bike, the boys need to rent them.The renting site offered themmbikes. The renting price is different for different 阅读全文

posted @ 2013-11-11 21:20 keep trying 阅读(385) 评论(0) 推荐(0) 编辑

2013年11月9日

Maximum Absurdity DP + 数学

摘要: Maximum AbsurdityTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionReforms continue entering Berland. For example, during yesterday sitting the Berland Parliament approved as much asnlaws (each law has been assigned a unique number from 阅读全文

posted @ 2013-11-09 18:38 keep trying 阅读(207) 评论(0) 推荐(0) 编辑

模拟 H - Penalties Kick

摘要: H -Penalties KickTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusDescriptionFootball is an excellent game, but sometimes it is cruel. As you know, two football teams may have a tie after regular time and even addition time, but we have to judge who is the winner, so p 阅读全文

posted @ 2013-11-09 15:50 keep trying 阅读(216) 评论(0) 推荐(0) 编辑

2013年11月7日

Secrets 数论

摘要: SecretsDescriptionGerald has been selling state secrets at leisure. All the secrets cost the same:nmarks. The state which secrets Gerald is selling, has no paper money, only coins. But there are coins of all positive integer denominations that are powers of three: 1 mark, 3 marks, 9 marks, 27 marks 阅读全文

posted @ 2013-11-07 22:57 keep trying 阅读(217) 评论(0) 推荐(0) 编辑

A. Knight Tournament SET的应用

摘要: A. Knight Tournamenttime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHooray! Berl II, the king of Berland is making a knight tournament. The king has already sent the message to all knights in the kingdom and they in turn agreed to participate in 阅读全文

posted @ 2013-11-07 20:26 keep trying 阅读(226) 评论(0) 推荐(0) 编辑

B. Xenia and Hamming Codeforces 256B GCD,LCM处理字符串

摘要: B. Xenia and Hammingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputXenia is an amateur programmer. Today on the IT lesson she learned about the Hamming distance.The Hamming distance between two stringss = s1s2...snandt = t1t2...tnof equal lengthn 阅读全文

posted @ 2013-11-07 13:26 keep trying 阅读(330) 评论(0) 推荐(0) 编辑

2013年10月31日

Alternate Task UVA11728 暴力枚举

摘要: FAlternate TaskInput:Standard InputOutput:Standard OutputLittle Hasan loves to play number games with his friends. One day they were playing a game where one of them will speak out a positive number and the others have to tell the sum of its factors. The first one to say it correctly wins. After a w 阅读全文

posted @ 2013-10-31 20:24 keep trying 阅读(233) 评论(0) 推荐(0) 编辑

GCD Extreme (II) 欧拉函数的应用

摘要: Problem JGCD Extreme (II)Input:Standard InputOutput:Standard OutputGiven the value of N, you will have to find the value of G. The definition of G is given below:HereGCD(i,j) means the greatest common divisor of integeriand integer j.For those who have trouble understanding summation notation, the m 阅读全文

posted @ 2013-10-31 20:09 keep trying 阅读(216) 评论(0) 推荐(0) 编辑

2013年10月29日

Bit Magic HDU 4421 2-Sat

摘要: Bit MagicTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1383Accepted Submission(s): 398Problem DescriptionYesterday, my teacher taught me about bit operators: and (&), or (|), xor (^). I generated a number table a[N], and wrote a program to ca 阅读全文

posted @ 2013-10-29 16:48 keep trying 阅读(196) 评论(0) 推荐(0) 编辑

2013年10月25日

Yukari's Birthday 枚举+二分 过程注意数据的溢出问题 HDU4430

摘要: Yukari's BirthdayTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1993Accepted Submission(s): 404Problem DescriptionToday is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday 阅读全文

posted @ 2013-10-25 20:50 keep trying 阅读(763) 评论(0) 推荐(0) 编辑

导航