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 阅读(225) 评论(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 阅读(234) 评论(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 阅读(340) 评论(0) 推荐(0)

导航