Codeforces Round 121 (Div. 1)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
191 Codeforces Round 121 (Div. 1) FINISHED False 7200 399393023 May 27, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 868 ) E Thwarting Demonstrations PROGRAMMING binary search data structures trees 2200

B"It is dark times in Berland. Berlyand opposition, funded from a neighboring state, has organized a demonstration in Berland capital Bertown. Through the work of intelligence we know that the demonstrations are planned to last for k days. Fortunately, Berland has a special police unit, which can save the country. It has exactly n soldiers numbered from 1 to n. Berland general, the commander of the detachment, must schedule the detachment's work in these difficult k days. In each of these days, the general must send a certain number of police officers to disperse riots. Since the detachment is large and the general is not very smart, he can only select a set of all soldiers numbered from l to r, inclusive, where l and r are selected arbitrarily. Now the general has exactly two problems. First, he cannot send the same group twice -- then soldiers get bored and they rebel. Second, not all soldiers are equally reliable. Every soldier has a reliability of ai. The reliability of the detachment is counted as the sum of reliabilities of soldiers in it. The reliability of a single soldier can be negative, then when you include him in the detachment, he will only spoil things. The general is distinguished by his great greed and shortsightedness, so each day he sends to the dissolution the most reliable group of soldiers possible (that is, of all the groups that have not been sent yet). The Berland Government has decided to know what would be the minimum reliability of the detachment, sent to disperse the demonstrations during these k days. The general himself can not cope with such a difficult task. Help him to not embarrass himself in front of his superiors! The first line contains two integers n and k -- the number of soldiers in the detachment and the number of times somebody goes on duty. The second line contains n space-separated integers ai, their absolute value doesn't exceed 109 -- the soldiers' reliabilities. Please do not use the %lld specifier to read "...

Tutorials

Разбор Codeforces Round #121

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
1733894 Furko E May 28, 2012, 9:15 a.m. OK Delphi TESTS 50 4450 14950400 2200
1750707 landscape95 E June 2, 2012, 7:01 a.m. OK FPC TESTS 50 830 3276800 2200
1762950 blackapple E June 4, 2012, 6:26 a.m. OK FPC TESTS 50 1410 3891200 2200
1742003 blackapple E May 30, 2012, 3:04 a.m. OK FPC TESTS 50 1420 3891200 2200
1733326 zanoes E May 28, 2012, 5:01 a.m. OK FPC TESTS 50 1440 5529600 2200
1732670 white_cobra E May 27, 2012, 8:25 p.m. OK FPC TESTS 50 1810 5222400 2200
1736797 giongto35 E May 28, 2012, 2:01 p.m. OK FPC TESTS 50 2190 5222400 2200
1732671 white_cobra E May 27, 2012, 8:26 p.m. OK FPC TESTS 50 2190 5222400 2200
1804217 ACTheory E June 15, 2012, 9:31 a.m. OK FPC TESTS 50 2340 63283200 2200
1733180 coolinging E May 28, 2012, 3:31 a.m. OK FPC TESTS 50 2640 27955200 2200
1733871 object022 E May 28, 2012, 9:07 a.m. OK FPC TESTS 50 2780 27955200 2200
40991209 ReaLNero1 E July 31, 2018, 12:29 a.m. OK GNU C++ TESTS 50 374 2048000 2200
3148988 hta E Feb. 20, 2013, 3:59 a.m. OK GNU C++ TESTS 50 375 2048000 2200
3148978 hta E Feb. 20, 2013, 3:55 a.m. OK GNU C++ TESTS 50 375 2048000 2200
1749317 go_zyw E June 1, 2012, 10:15 a.m. OK GNU C++ TESTS 50 390 3584000 2200
13868700 Oxer11 E Oct. 26, 2015, 8:42 a.m. OK GNU C++ TESTS 50 404 2457600 2200
1746098 nuptxxp E May 31, 2012, 3:39 p.m. OK GNU C++ TESTS 50 410 3379200 2200
1738325 Haibara502 E May 29, 2012, 6:37 a.m. OK GNU C++ TESTS 50 410 3788800 2200
1769354 vepifanov E June 7, 2012, 12:04 p.m. OK GNU C++ TESTS 50 420 3891200 2200
8496848 johnasselta E Oct. 31, 2014, 11:47 a.m. OK GNU C++ TESTS 50 436 2969600 2200
1729901 ll931110 E May 27, 2012, 4:51 p.m. OK GNU C++ TESTS 50 450 3788800 2200
10104022 vjudge2 E March 2, 2015, 6:25 a.m. OK GNU C++0x TESTS 50 840 16998400 2200
10104021 LiTi E March 2, 2015, 6:25 a.m. OK GNU C++0x TESTS 50 842 16998400 2200
1730211 subscriber E May 27, 2012, 4:59 p.m. OK GNU C++0x TESTS 50 1000 6348800 2200
9818022 zxc901 E Feb. 13, 2015, 3:59 p.m. OK GNU C++0x TESTS 50 1184 4505600 2200
4413604 foreverbell E Sept. 6, 2013, 7:57 a.m. OK GNU C++0x TESTS 50 1216 2457600 2200
9816205 Stetsyk E Feb. 13, 2015, 1:07 p.m. OK GNU C++0x TESTS 50 1590 3276800 2200
10262324 _iris_ E March 13, 2015, 7:40 p.m. OK GNU C++0x TESTS 50 1590 6451200 2200
7370618 Hec E Aug. 7, 2014, 4:43 p.m. OK GNU C++0x TESTS 50 1620 50483200 2200
8705742 T0RRES E Nov. 15, 2014, 6:02 p.m. OK GNU C++0x TESTS 50 1652 2969600 2200
7444871 wanbo E Aug. 14, 2014, 11:14 a.m. OK GNU C++0x TESTS 50 1778 3481600 2200
15389760 vjudge1 E Jan. 15, 2016, 1:51 p.m. OK GNU C++11 TESTS 50 716 16793600 2200
57900759 lopare E July 28, 2019, 3:35 p.m. OK GNU C++11 TESTS 50 810 2764800 2200
57822453 py_ultron E July 27, 2019, 12:36 a.m. OK GNU C++11 TESTS 50 810 2764800 2200
27006132 GreyMaster E May 11, 2017, 4:38 a.m. OK GNU C++11 TESTS 50 840 2764800 2200
27006206 GreyMaster E May 11, 2017, 4:46 a.m. OK GNU C++11 TESTS 50 842 2867200 2200
11631792 tanphatls987 E June 18, 2015, 11:58 a.m. OK GNU C++11 TESTS 50 872 2457600 2200
27006161 GreyMaster E May 11, 2017, 4:41 a.m. OK GNU C++11 TESTS 50 872 2764800 2200
21102615 BayHarborButcher E Oct. 1, 2016, 11:50 p.m. OK GNU C++11 TESTS 50 872 4198400 2200
35843665 ______u______ E March 2, 2018, 3:16 p.m. OK GNU C++11 TESTS 50 872 5017600 2200
35843637 ______n______ E March 2, 2018, 3:16 p.m. OK GNU C++11 TESTS 50 872 5017600 2200
32084931 LiChenKoh E Nov. 5, 2017, 10:47 p.m. OK GNU C++14 TESTS 50 872 3276800 2200
34573102 SYury E Jan. 26, 2018, 11:03 a.m. OK GNU C++14 TESTS 50 904 4300800 2200
29624712 sherlock_holms E Aug. 20, 2017, 3:41 p.m. OK GNU C++14 TESTS 50 998 52121600 2200
21349639 CMaster E Oct. 11, 2016, 2:48 a.m. OK GNU C++14 TESTS 50 1028 13824000 2200
29624629 sherlock_holms E Aug. 20, 2017, 3:35 p.m. OK GNU C++14 TESTS 50 1028 52940800 2200
33456075 ckodser E Dec. 20, 2017, 1:14 p.m. OK GNU C++14 TESTS 50 1090 20889600 2200
31736259 vjudge5 E Oct. 26, 2017, 11:16 a.m. OK GNU C++14 TESTS 50 1092 18944000 2200
44496810 emma E Oct. 18, 2018, 4:41 p.m. OK GNU C++14 TESTS 50 1122 34406400 2200
44428267 emma E Oct. 17, 2018, 6:07 a.m. OK GNU C++14 TESTS 50 1122 34508800 2200
31903657 vjudge3 E Oct. 30, 2017, 7:11 p.m. OK GNU C++14 TESTS 50 1278 3993600 2200
67022936 cuiaoxiang E Dec. 16, 2019, 1:31 p.m. OK GNU C++17 TESTS 50 872 3276800 2200
38557459 eyg E May 23, 2018, 9:45 a.m. OK GNU C++17 TESTS 50 1652 4812800 2200
44897425 ruo E Oct. 26, 2018, 7:20 a.m. OK GNU C++17 TESTS 50 1684 2662400 2200
69518350 davooddkareshki E Jan. 25, 2020, 12:41 p.m. OK GNU C++17 TESTS 50 2308 61542400 2200
69602166 Mitsuhaw E Jan. 27, 2020, 8:10 a.m. OK GNU C++17 TESTS 50 2432 2764800 2200
40780242 Restinpeace E July 26, 2018, 1:22 p.m. OK GNU C++17 TESTS 50 2494 6860800 2200
42616369 fblogy E Sept. 7, 2018, 1:54 p.m. OK GNU C++17 TESTS 50 2588 5017600 2200
55004640 AliShahali1382 E June 3, 2019, 6:51 a.m. OK GNU C++17 TESTS 50 2838 26316800 2200
62092625 vjudge3 E Oct. 8, 2019, 6:25 a.m. OK GNU C++17 TESTS 50 2870 6758400 2200
46827717 vjudge5 E Dec. 9, 2018, 7:36 p.m. OK GNU C++17 TESTS 50 2870 6758400 2200
1730539 uwi E May 27, 2012, 5:08 p.m. OK Java 6 TESTS 50 1450 43110400 2200
1732659 Narg E May 27, 2012, 8:21 p.m. OK Java 6 TESTS 50 5310 111001600 2200
1739231 hydrastuff E May 29, 2012, 9:38 a.m. OK Java 6 TESTS 50 5890 47820800 2200
2420678 Uncia E Oct. 24, 2012, 9:47 a.m. OK Java 7 TESTS 50 4656 307200 2200
49962372 xodiac E Feb. 15, 2019, 6:53 p.m. OK Java 8 TESTS 50 4148 16896000 2200
25594738 leign E March 18, 2017, 8:47 a.m. OK Mono C# TESTS 50 2400 23347200 2200
1730018 RAD E May 27, 2012, 4:54 p.m. OK MS C++ TESTS 50 440 5324800 2200
1742208 564ht E May 30, 2012, 7:38 a.m. OK MS C++ TESTS 50 450 4608000 2200
3810567 XilinX E June 1, 2013, 9:20 a.m. OK MS C++ TESTS 50 811 2662400 2200
1730229 pperm E May 27, 2012, 5 p.m. OK MS C++ TESTS 50 1440 4505600 2200
4958399 maghriany E Nov. 1, 2013, 8:18 p.m. OK MS C++ TESTS 50 1560 3174400 2200
2437461 vjudge1 E Oct. 26, 2012, 10:43 a.m. OK MS C++ TESTS 50 1640 2662400 2200
4936547 alex.alex E Oct. 30, 2013, 3:42 p.m. OK MS C++ TESTS 50 1808 1843200 2200
4906310 alex.alex E Oct. 26, 2013, 5:45 p.m. OK MS C++ TESTS 50 1808 1843200 2200
4958443 maghriany E Nov. 1, 2013, 8:30 p.m. OK MS C++ TESTS 50 1808 2560000 2200
4954181 khrak E Nov. 1, 2013, 6:47 p.m. OK MS C++ TESTS 50 2214 2457600 2200

remove filters

Back to search problems