Codeforces Round 200 (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
343 Codeforces Round 200 (Div. 1) FINISHED False 7800 397233023 Sept. 14, 2013, 3:30 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 910 ) E Pumping Stations PROGRAMMING brute force dfs and similar divide and conquer flows graphs greedy trees 2800

Mad scientist Mike has applied for a job. His task is to manage a system of water pumping stations. The system consists of n pumping stations, which are numbered by integers from 1 to n . Some pairs of stations are connected by bidirectional pipes through which water can flow in either direction (but only in one at a time). For each pipe you know its bandwidth — the maximum number of liters of water that can flow through it in one hour. Each pumping station can pump incoming water from some stations to other stations through the pipes, provided that in one hour the total influx of water to the station is equal to the total outflux of water from the station. It is Mike's responsibility to pump water between stations. From station a to station b through the pipes (possibly through other stations) within one hour one can transmit a certain number of liters of water according to the rules described above. During this time, water from other stations can not flow into station a , and can not flow out of the station b . However, any amount of water can flow out of station a or in station b . If a total of x litres of water flows out of the station a in an hour, then Mike gets x bollars more to his salary. To get paid, Mike needs to work for n - 1 days, according to the contract. On the first day he selects two stations v 1 and v 2 , and within one hour he pumps a certain amount of water from v 1 to v 2 . Next, on the i -th day Mike chooses a station v i + 1 that has been never selected before, and pumps a certain amount of water out of the station v i to station v i + 1 for one hour. The quantity of water he pumps on the i -th day does not depend on the amount of water pumped on the ( i - 1) -th day. Mike needs to earn as much bollars as he can for his projects. Help Mike find such a permutation of station numbers v 1 , v 2 , ... , v n so Mike will be able to earn the highest possible salary. The first line of the input contains two space-separated integers n and

Tutorials

Codeforces Round #200 Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
11135279 yubaby E May 18, 2015, 1:16 p.m. OK FPC TESTS 38 186 819200 2800
11143988 louisja1 E May 19, 2015, 12:47 p.m. OK FPC TESTS 38 966 512000 2800
22724121 vjudge4 E Dec. 6, 2016, 6:30 a.m. OK GNU C++ TESTS 38 30 0 2800
14049682 130705009 E Nov. 3, 2015, 11:29 p.m. OK GNU C++ TESTS 38 30 0 2800
19215134 RNS_CUS E July 18, 2016, 3:02 p.m. OK GNU C++ TESTS 38 30 102400 2800
14086441 bnuvjudge2 E Nov. 5, 2015, 10:21 a.m. OK GNU C++ TESTS 38 30 102400 2800
12140313 syc1999 E July 21, 2015, 1:14 a.m. OK GNU C++ TESTS 38 30 102400 2800
8644902 pwecar E Nov. 11, 2014, 2:43 a.m. OK GNU C++ TESTS 38 30 102400 2800
15397429 WuHongxun E Jan. 16, 2016, 4:36 a.m. OK GNU C++ TESTS 38 30 204800 2800
8949719 wwx E Dec. 3, 2014, 8:27 a.m. OK GNU C++ TESTS 38 30 204800 2800
4507308 hza E Sept. 20, 2013, 2:34 a.m. OK GNU C++ TESTS 38 30 204800 2800
4482257 dnk E Sept. 16, 2013, 8:59 a.m. OK GNU C++ TESTS 38 30 204800 2800
5872013 Nero E Feb. 3, 2014, 6:58 a.m. OK GNU C++0x TESTS 38 30 204800 2800
5871978 Nero E Feb. 3, 2014, 6:46 a.m. OK GNU C++0x TESTS 38 30 204800 2800
4931486 hex539 E Oct. 30, 2013, 1:23 a.m. OK GNU C++0x TESTS 38 62 307200 2800
6133869 danielfleischman E March 24, 2014, 10:21 p.m. OK GNU C++0x TESTS 38 92 512000 2800
9002889 savinov E Dec. 6, 2014, 4:38 p.m. OK GNU C++0x TESTS 38 92 716800 2800
7446956 kraskevich E Aug. 14, 2014, 4:35 p.m. OK GNU C++0x TESTS 38 92 2355200 2800
4759700 itytwt E Oct. 12, 2013, 3:33 p.m. OK GNU C++0x TESTS 38 124 614400 2800
4467502 KADR E Sept. 14, 2013, 4:59 p.m. OK GNU C++0x TESTS 38 1154 204800 2800
4472396 KADR E Sept. 14, 2013, 7:26 p.m. OK GNU C++0x TESTS 38 1184 204800 2800
10165526 -XraY- E March 5, 2015, 2:52 p.m. OK GNU C++0x TESTS 38 1278 204800 2800
31187274 tourist E Oct. 10, 2017, 10:54 a.m. OK GNU C++11 TESTS 38 30 102400 2800
31186747 tourist E Oct. 10, 2017, 10:28 a.m. OK GNU C++11 TESTS 38 30 102400 2800
13139081 wyxourlove E Sept. 22, 2015, 10:48 a.m. OK GNU C++11 TESTS 38 30 1536000 2800
17131792 freebsdx E April 2, 2016, 2:26 p.m. OK GNU C++11 TESTS 38 30 1945600 2800
35158977 Kino E Feb. 11, 2018, 4:52 p.m. OK GNU C++11 TESTS 38 30 2252800 2800
29030057 ofi E July 31, 2017, 12:45 a.m. OK GNU C++11 TESTS 38 30 2355200 2800
21404876 joyfun E Oct. 13, 2016, 2:02 p.m. OK GNU C++11 TESTS 38 30 2662400 2800
31986060 sehun01 E Nov. 2, 2017, 4:24 p.m. OK GNU C++11 TESTS 38 60 102400 2800
31188435 tourist E Oct. 10, 2017, 11:48 a.m. OK GNU C++11 TESTS 38 60 102400 2800
31177811 tourist E Oct. 9, 2017, 9:25 p.m. OK GNU C++11 TESTS 38 60 102400 2800
30553313 Lucky_Sanae E Sept. 20, 2017, 5:10 p.m. OK GNU C++14 TESTS 38 30 204800 2800
32662834 marcoskwkm E Nov. 26, 2017, 5:59 a.m. OK GNU C++14 TESTS 38 30 2252800 2800
32662784 marcoskwkm E Nov. 26, 2017, 5:56 a.m. OK GNU C++14 TESTS 38 30 2252800 2800
31617724 victoragnez E Oct. 23, 2017, 2:11 a.m. OK GNU C++14 TESTS 38 30 2355200 2800
31617681 victoragnez E Oct. 23, 2017, 2:08 a.m. OK GNU C++14 TESTS 38 30 2457600 2800
31617668 victoragnez E Oct. 23, 2017, 2:07 a.m. OK GNU C++14 TESTS 38 30 2457600 2800
22025664 marX E Nov. 4, 2016, 2:35 a.m. OK GNU C++14 TESTS 38 60 307200 2800
66168134 vjudge3 E Dec. 2, 2019, 8:49 a.m. OK GNU C++14 TESTS 38 62 0 2800
66168083 vjudge4 E Dec. 2, 2019, 8:47 a.m. OK GNU C++14 TESTS 38 62 0 2800
66262294 vjudge4 E Dec. 4, 2019, 8:57 a.m. OK GNU C++14 TESTS 38 62 307200 2800
68190739 LJZ_C E Jan. 4, 2020, 1:51 p.m. OK GNU C++17 TESTS 38 62 409600 2800
54871772 ruo E May 31, 2019, 9:38 a.m. OK GNU C++17 TESTS 38 62 409600 2800
47547238 ONE_DAY_I_WILL E Dec. 27, 2018, 10:53 a.m. OK GNU C++17 TESTS 38 62 614400 2800
51548384 YouKn0wWho E March 19, 2019, 9:41 p.m. OK GNU C++17 TESTS 38 92 307200 2800
58946013 Roundgod E Aug. 17, 2019, 9 a.m. OK GNU C++17 TESTS 38 92 409600 2800
46264006 Deanamic_Programming E Nov. 26, 2018, 11:29 p.m. OK GNU C++17 TESTS 38 92 819200 2800
64850729 vjudge2 E Nov. 13, 2019, 7:29 p.m. OK GNU C++17 TESTS 38 92 1024000 2800
69659356 cuiaoxiang E Jan. 28, 2020, 8:47 a.m. OK GNU C++17 TESTS 38 92 1433600 2800
51940243 0w1 E March 28, 2019, 2:10 p.m. OK GNU C++17 TESTS 38 92 1433600 2800
66167591 vjudge4 E Dec. 2, 2019, 8:30 a.m. OK GNU C++17 TESTS 38 92 4812800 2800
4532289 uwi E Sept. 21, 2013, 4:26 p.m. OK Java 6 TESTS 38 186 0 2800
4469391 niyaznigmatul E Sept. 14, 2013, 5:24 p.m. OK Java 7 TESTS 38 248 409600 2800
16766908 sroyal E March 17, 2016, 3:51 p.m. OK Java 7 TESTS 38 404 0 2800
4478054 Petr E Sept. 15, 2013, 2:23 p.m. OK Java 7 TESTS 38 498 614400 2800
4489367 ftiasch E Sept. 17, 2013, 4:45 p.m. OK Java 7 TESTS 38 1060 204800 2800
25155118 DEGwer E March 2, 2017, 6:02 p.m. OK MS C++ TESTS 38 278 3072000 2800
4498782 Milanin E Sept. 18, 2013, 6:50 p.m. OK MS C++ TESTS 38 1092 819200 2800
4498789 Milanin E Sept. 18, 2013, 6:51 p.m. OK MS C++ TESTS 38 1122 819200 2800
4498609 Milanin E Sept. 18, 2013, 6:23 p.m. OK MS C++ TESTS 38 1122 819200 2800
4498792 Milanin E Sept. 18, 2013, 6:53 p.m. OK MS C++ TESTS 38 1248 819200 2800
4497955 Milanin E Sept. 18, 2013, 5:02 p.m. OK MS C++ TESTS 38 1340 819200 2800
4498762 Milanin E Sept. 18, 2013, 6:47 p.m. OK MS C++ TESTS 38 1622 819200 2800
4489920 Milanin E Sept. 17, 2013, 6:21 p.m. OK MS C++ TESTS 38 1746 819200 2800
15141926 HappyNewYearMike E Dec. 31, 2015, 9:58 p.m. OK MS C++ TESTS 38 1776 819200 2800
4497644 Milanin E Sept. 18, 2013, 4:36 p.m. OK MS C++ TESTS 38 1778 819200 2800

remove filters

Back to search problems