随笔分类 -  CF

上一页 1 2

B. Levko and Permutation 简单构造
摘要:B. Levko and Permutationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLevko loves permutations very much. A permutation of lengthnis a sequence of distinct positive integers, each is at mostn.Let’s assume that valuegcd(a, b)shows the greatest co 阅读全文

posted @ 2013-11-17 16:47 keep trying 阅读(349) 评论(0) 推荐(0)

P - Psychos in a Line 单调队列
摘要:P -Psychos in a LineTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThere arenpsychos standing in a line. Each psycho is assigned a unique integer from1ton. At each step every psycho who has an id greater than the psycho to his right 阅读全文

posted @ 2013-11-17 15:53 keep trying 阅读(260) 评论(0) 推荐(0)

H - Purification 模拟构造
摘要:H -PurificationTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionYou are an adventurer currently journeying inside an evil temple. After defeating a couple of weak zombies, you arrived at a square room consisting of tiles forming ann &# 阅读全文

posted @ 2013-11-16 21:02 keep trying 阅读(201) 评论(0) 推荐(0)

C. Insertion Sort DP
摘要:C. Insertion Sorttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya is a beginner programmer. He has already mastered the basics of the C++ language and moved on to learning algorithms. The first algorithm he encountered was insertion sort. Pe 阅读全文

posted @ 2013-11-16 09:23 keep trying 阅读(269) 评论(0) 推荐(0)

A. Two Semiknights Meet DFS
摘要:A. Two Semiknights Meettime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA boy Petya loves chess very much. He even came up with a chess piece of his own, a semiknight. The semiknight can move in any of these four directions:2squares forward and2squ 阅读全文

posted @ 2013-11-15 20:39 keep trying 阅读(324) 评论(0) 推荐(0)

A. Soroban 暴力+水题
摘要:A. Sorobantime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou know that Japan is the country with almost the largest 'electronic devices per person' ratio. So you might be quite surprised to find out that the primary school in Japan teache 阅读全文

posted @ 2013-11-11 21:23 keep trying 阅读(277) 评论(0) 推荐(0)

B. Fence 前缀和 水题
摘要:B. Fencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a fence in front of Polycarpus's home. The fence consists ofnplanks of the same width which go one after another from left to right. The height of thei-th plank ishimeters, disti 阅读全文

posted @ 2013-11-11 21:22 keep trying 阅读(364) 评论(0) 推荐(0)

C. Fixing Typos 贪心
摘要:C. Fixing Typostime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMany modern text editors automatically check the spelling of the user's text. Some editors even suggest how to correct typos.In this problem your task to implement a small function 阅读全文

posted @ 2013-11-11 21:21 keep trying 阅读(304) 评论(0) 推荐(0)

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

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

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 阅读(226) 评论(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 阅读(235) 评论(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 阅读(341) 评论(0) 推荐(0)

CF DIV 2 206 C. Vasya and Robot
摘要:C. Vasya and Robottime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya hasnitems lying in a line. The items are consecutively numbered by numbers from1tonin such a way that the leftmost item has number1, the rightmost item has numbern. Each item 阅读全文

posted @ 2013-10-14 21:35 keep trying 阅读(396) 评论(0) 推荐(0)

上一页 1 2

导航