随笔分类 - 贪心
摘要:B. Petya and Exam [题目链接][1] [1]: http://codeforces.com/problemset/problem/832/B 题意 给你一串字符,在这个串中所有出现的字符都是$good$字符,未出现的都是$bad$字符, 然后给你另一串字符,这个字符串中有两个特殊的
阅读全文
摘要:http://codeforces.com/contest/758/problem/D D. Ability To Convert time limit per test 1 second memory limit per test 256 megabytes input standard inpu
阅读全文
摘要:C. Tourist's Notes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Tourist's Notes ti
阅读全文
摘要:C. Vanya and Scales time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vanya has a scales fo
阅读全文
摘要:C. Queue time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Queue time limit per test 2
阅读全文
摘要:A. Toda 2 time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output A. Toda 2 time limit per test
阅读全文
摘要:C. Ray Tracing There are k sensors located in the rectangular room of size n × m meters. The i-th sensor is located at point (xi, yi). All sensors are
阅读全文
摘要:B. Andrey and Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Andrey needs one m
阅读全文
摘要:1241 特殊的排序 题目来源: 摩根斯坦利的比赛题 基准时间限制:1 秒 空间限制:131072 KB 一个数组的元素为1至N的整数,现在要对这个数组进行排序,在排序时只能将元素放在数组的头部或尾部,问至少需要移动多少个数字,才能完成整个排序过程? 例如: 2 5 3 4 1 将1移到头部 =>
阅读全文
摘要:C. Beautiful Set time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output We'll call a set of posi
阅读全文
摘要:The All-purpose Zero Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 584 Accepted Submission(s):
阅读全文
摘要:1198 - Karate Competition PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Your karate club challenged another karate club i
阅读全文
摘要:1016 - Brush (II) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB After the long contest, Samee returned home and got angry
阅读全文
摘要:C. Graph and Stringtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day student Vasya was sit
阅读全文
摘要:Problem 2221 RunningManAccept: 130 Submit: 404Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionZB loves watching RunningMan! There's a
阅读全文
摘要:C. Pearls in a Rowtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere arenpearls in a row. Let...
阅读全文
摘要:比赛难度Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 768Accepted Submission(s): 263Problem Descript...
阅读全文
摘要:魔法串Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2023Accepted Submission(s): 753Problem Descript...
阅读全文
摘要:湫湫系列故事——消灭兔子Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1883Accepted Submission(s): 628Problem...
阅读全文
摘要:A. Alternative Thinkingtime limit per test2 secondsmemory limit per test256 megabytesKevin has just recevied his disappointing results on the USA Iden...
阅读全文