ACM_Codeforces
Tovi-A
用勇气改变可以改变的事情,用胸怀接受不能改变的事情,用智慧分辨两者的不同。
展开
-
Developing Skills
题目传送门:点击打开链接#include #include #include #include using namespace std;//int a[100010];struct node{ int p1, p2;}a[100010];bool cmp(node a, node b) { return a.p2 > b.p2;}bool cmp1(node a原创 2015-09-29 18:31:22 · 463 阅读 · 0 评论 -
codeforces A. Orchestra B. Island Puzzle
A. Orchestra time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputPaul is at the orchestra. The string section is arranged in an r × c re原创 2016-05-05 15:12:23 · 426 阅读 · 0 评论 -
C. The Smallest String Concatenation
C. The Smallest String Concatenationtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou're given a list of n strings原创 2016-04-12 19:19:16 · 547 阅读 · 0 评论 -
D. Longest Subsequence
D. Longest Subsequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given array a with n elements and th原创 2016-04-12 19:08:10 · 395 阅读 · 0 评论 -
B. Secret Combination
B. Secret Combinationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou got a box with a combination lock原创 2015-12-08 13:41:44 · 671 阅读 · 0 评论 -
Educational Codeforces Round 2_B. Queries about less or equal elements
B. Queries about less or equal elementstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two arrays of i原创 2015-11-28 00:58:43 · 596 阅读 · 0 评论 -
Codeforces Round #332 (Div. 2)_B. Spongebob and Joke
B. Spongebob and Joketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Patrick was gone shopping, Spon原创 2015-11-21 04:02:24 · 597 阅读 · 0 评论 -
Codeforces Round #280 (Div. 2)_C. Vanya and Exams
C. Vanya and Examstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya wants to pass n exams and get the a原创 2015-11-19 18:31:56 · 521 阅读 · 0 评论 -
A. Two Bases
A. Two Basestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter seeing the "ALL YOUR BASE ARE BELONG TO U原创 2015-11-25 12:12:11 · 531 阅读 · 0 评论 -
Codeforces Round #328 (Div. 2)_B. The Monster and the Squirrel
B. The Monster and the Squirreltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAri the monster always wakes up very e原创 2015-11-01 11:09:13 · 506 阅读 · 0 评论 -
Codeforces Round #328 (Div. 2)_A. PawnChess
A. PawnChesstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGalois is one of the strongest chess players of Byteforce原创 2015-11-01 10:59:36 · 484 阅读 · 0 评论 -
A. Vasya and Football
A. Vasya and Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has started watching football g原创 2015-11-23 15:54:41 · 381 阅读 · 0 评论 -
Codeforces Round #331 (Div. 2) _A. Wilbur and Swimming Pool
A. Wilbur and Swimming Pooltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter making bad dives into swim原创 2015-11-16 13:20:01 · 412 阅读 · 0 评论 -
B. Duff in Love
B. Duff in Lovetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuff is in love with lovely numbers! A positive integ原创 2015-10-26 16:23:54 · 427 阅读 · 0 评论 -
Codeforces__Raising Bacteria
题目传送门:Raising Bacteria//问题描述:一个盒子里面放一个细菌在一天可以增生两个细菌。 现在已知盒子里面细菌的个数,问你最初放多少个细菌可以增生盒子里面的细菌数量//输入:盒子中细菌的数量//输出:最初至少放的细菌数量//算法分析:从2开始累乘过程计数! #include #include #include using namespace std;type原创 2015-09-21 19:08:59 · 496 阅读 · 0 评论 -
A. Duff and Meat
A. Duff and Meattime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuff is addicted to meat! Malek wants to keep her hap原创 2015-10-25 10:33:42 · 366 阅读 · 0 评论 -
B. OR in Matrix
B. OR in Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's define logical OR as an operation on two logical原创 2015-11-08 12:30:48 · 449 阅读 · 0 评论 -
B. Gerald is into Art
B. Gerald is into Art time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputGerald bought two very rare paintings at the Sotheby’s auction原创 2016-05-05 19:26:40 · 337 阅读 · 0 评论