上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: D. Table with Letters - 2time limit per test2 secondsmemory limit per test256 megabytesinputinput.txtoutputoutput.txtVasya has recently started to learn English. Now he needs to remember how to write English letters. He isn't sure about some of them, so he decided to train a little.He found a sh 阅读全文
posted @ 2012-12-09 01:23 YogyKwan 阅读(294) 评论(0) 推荐(0) 编辑
摘要: A. Boys and Girls模拟:根据B和G的个数大小关系安排顺序B. Physics Practical模拟:对于每一个数,减去比他的一半小的个数得到最后要的个数,再用n减此数C. Text EditorBFS:只有上下移动的时候情况与普通BFS不同D. Table with Letters - 2DP:选定行的范围,再把可以加入的列加入,复杂度O(n^3)E. Printer数据结构:神题附链接,期待以后AChttp://codeforces.com/contest/253/problem/E6Codeforces Round #154 (Div. 2)2243+111608 阅读全文
posted @ 2012-12-09 00:30 YogyKwan 阅读(196) 评论(0) 推荐(0) 编辑
摘要: C. Number Transformationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya likes positive integers a lot. Recently his mom has presented him a positive integera. There's only one thing Petya likes more than numbers: playing with lit 阅读全文
posted @ 2012-12-09 00:19 YogyKwan 阅读(500) 评论(0) 推荐(0) 编辑
摘要: A. Little Xor暴力:计算每段的xor值,找最大B. Unsorting Array贪心:根据有无中间值以及最大最小值的位置分情况讨论C. Points on Line模拟:两个指针,一个负责前端,一个负责对应端,因为都是非降序的,故O(n)D. Playing with Permutations模拟:模拟出前后k次的结果,奇偶判断是否能成立E. Number Transformation数论:找到k们的最小公倍数,关键是:若相差大于最小公倍数则中途会经历很多次模最小公倍数为零的情况5Codeforces Round #153 (Div. 2)6141-861597 阅读全文
posted @ 2012-12-09 00:13 YogyKwan 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Problem D: Draw a MessTime Limit:1 SecMemory Limit:128 MBSubmit:123Solved:19[Submit][Status][Web Board]DescriptionIt's graduated season, every students should leave something on the wall, so....they draw a lot of geometry shape with different color.When teacher come to see what happened, without 阅读全文
posted @ 2012-12-01 18:56 YogyKwan 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Problem B: Double KingsTime Limit:1 SecMemory Limit:128 MBSubmit:142Solved:65[Submit][Status][Web Board]DescriptionOur country is tree-like structure, that is to say that N cities is connected by exactly N - 1 roads.The old king has two little sons. To make everything fairly, he dicided to divide th 阅读全文
posted @ 2012-11-30 22:25 YogyKwan 阅读(201) 评论(0) 推荐(0) 编辑
摘要: A.Convex计算几何:算各个三角形面积再相加B.Double Kings图论:先用无向图保存,然后边建树边计算划分后的某一边的数量,最后找出相差最小的那种方式E.The Game about KILL数论:约瑟夫环的简化版,可直接找规律推出答案4020112685jingg.cxy303:40:2400:28:3001:53:59(-2)00:37:55 阅读全文
posted @ 2012-11-30 22:18 YogyKwan 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Gao The SequenceTime Limit:2 Seconds Memory Limit:65536 KBYou are given a sequence of integers,A1,A2,...,An. And you are allowed a manipulation on the sequence to transform the origin sequence into another sequenceB1,B2,...,Bn(Maybe the two sequences are same ). The manipulation is specified as the 阅读全文
posted @ 2012-11-30 18:50 YogyKwan 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Search in the WikiTime Limit:2 Seconds Memory Limit:65536 KBAs we known, Searching in Wiki is an useful way for everyone who wants to get information. Wiki, a website which allows its users to add, modify, or delete its content via a web browser, is famous for its huge information. You can find almo 阅读全文
posted @ 2012-11-30 17:43 YogyKwan 阅读(216) 评论(0) 推荐(0) 编辑
摘要: E. Mad Joetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputJoe has been hurt on the Internet. Now he is storming around the house, destroying everything in his path.Joe's house hasnfloors, each floor is a segment ofmcells. Each cell either con 阅读全文
posted @ 2012-11-30 17:15 YogyKwan 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页