Codeforces Round 486 (Div. 3)

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
988 Codeforces Round 486 (Div. 3) FINISHED False 7200 209661924 June 1, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2375 ) F Rain and Umbrellas PROGRAMMING dp 2300

B"Polycarp lives on a coordinate line at the point x = 0 . He goes to his friend that lives at the point x = a . Polycarp can move only from left to right, he can pass one unit of length each second. Now it's raining, so some segments of his way are in the rain. Formally, it's raining on n non-intersecting segments, the i -th segment which is in the rain is represented as [l_i, r_i] ( 0 <= l_i < r_i <= a ). There are m umbrellas lying on the line, the i -th umbrella is located at point x_i ( 0 <= x_i <= a ) and has weight p_i . When Polycarp begins his journey, he doesn't have any umbrellas. During his journey from x = 0 to x = a Polycarp can pick up and throw away umbrellas. Polycarp picks up and throws down any umbrella instantly. He can carry any number of umbrellas at any moment of time. Because Polycarp doesn't want to get wet, he must carry at least one umbrella while he moves from x to x + 1 if a segment [x, x + 1] is in the rain (i.e. if there exists some i such that l_i <= x and x + 1 <= r_i ). The condition above is the only requirement. For example, it is possible to go without any umbrellas to a point where some rain segment starts, pick up an umbrella at this point and move along with an umbrella. Polycarp can swap umbrellas while he is in the rain. Each unit of length passed increases Polycarp's fatigue by the sum of the weights of umbrellas he carries while moving. Can Polycarp make his way from point x = 0 to point x = a ? If yes, find the minimum total fatigue after reaching x = a , if Polycarp picks up and throws away umbrellas optimally. The first line contains three integers a , n and m ( 1 <= a, m <= 2000, 1 <= n <= lceil frac{a}{2} rceil ) -- the point at which Polycarp's friend lives, the number of the segments in the rain and the number of umbrellas. Each of the next n lines con"...

Tutorials

59810

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39011564 anirudhbansal F June 7, 2018, 7:27 a.m. OK GNU C TESTS 37 15 0 2300
38994727 forlfs F June 6, 2018, 12:33 p.m. OK GNU C TESTS 37 31 16179200 2300
41989677 vjudge3 F Aug. 23, 2018, 8:05 a.m. OK GNU C++ TESTS 37 30 0 2300
39818342 vjudge5 F July 1, 2018, 10:17 a.m. OK GNU C++ TESTS 37 30 0 2300
39731216 vjudge3 F June 28, 2018, 2:52 a.m. OK GNU C++ TESTS 37 30 0 2300
39286161 luogu_bot2 F June 16, 2018, 11:35 a.m. OK GNU C++ TESTS 37 30 1228800 2300
39286057 luogu_bot4 F June 16, 2018, 11:30 a.m. OK GNU C++ TESTS 37 30 1228800 2300
38935471 npu_xhd F June 4, 2018, 5:56 a.m. OK GNU C++ TESTS 37 30 3584000 2300
38935442 npu_xhd F June 4, 2018, 5:54 a.m. OK GNU C++ TESTS 37 30 3584000 2300
38935357 npu_xhd F June 4, 2018, 5:50 a.m. OK GNU C++ TESTS 37 30 3584000 2300
38914628 Ha_Lin F June 3, 2018, 8:22 a.m. OK GNU C++ TESTS 37 30 3584000 2300
42324155 vjudge2 F Sept. 1, 2018, 2:39 a.m. OK GNU C++ TESTS 37 31 0 2300
38914572 LudwigVanBeethoven F June 3, 2018, 8:20 a.m. OK GNU C11 TESTS 37 30 3379200 2300
39404863 20133707 F June 19, 2018, 9:17 a.m. OK GNU C++11 TESTS 37 15 102400 2300
38910262 xiaofeng19 F June 3, 2018, 5:33 a.m. OK GNU C++11 TESTS 37 15 3379200 2300
38958466 zy1997 F June 5, 2018, 3:28 a.m. OK GNU C++11 TESTS 37 15 3584000 2300
39031039 Copper F June 7, 2018, 8:19 p.m. OK GNU C++11 TESTS 37 30 0 2300
39279843 66666a F June 16, 2018, 5:52 a.m. OK GNU C++11 TESTS 37 30 102400 2300
40572278 afyuabfasb F July 20, 2018, 8:49 a.m. OK GNU C++11 TESTS 37 30 102400 2300
38964194 Good F June 5, 2018, 8:57 a.m. OK GNU C++11 TESTS 37 30 3584000 2300
38947865 mr.Rosha F June 4, 2018, 2:39 p.m. OK GNU C++11 TESTS 37 30 3584000 2300
38940512 mr.Rosha F June 4, 2018, 9:49 a.m. OK GNU C++11 TESTS 37 30 3584000 2300
38971571 5a6sas F June 5, 2018, 2:38 p.m. OK GNU C++11 TESTS 37 30 3584000 2300
38986419 yangshuang F June 6, 2018, 7:11 a.m. OK GNU C++14 TESTS 37 15 0 2300
55012472 17je003275 F June 3, 2019, 10:46 a.m. OK GNU C++14 TESTS 37 15 102400 2300
39816572 hackerwizard F July 1, 2018, 8:54 a.m. OK GNU C++14 TESTS 37 15 512000 2300
38928427 jarakcyc F June 3, 2018, 6:45 p.m. OK GNU C++14 TESTS 37 15 3379200 2300
38922870 PrimeG F June 3, 2018, 2:03 p.m. OK GNU C++14 TESTS 37 15 3379200 2300
38916963 Gaga_liao F June 3, 2018, 9:51 a.m. OK GNU C++14 TESTS 37 15 3379200 2300
38953863 Heartr F June 4, 2018, 7:30 p.m. OK GNU C++14 TESTS 37 15 3379200 2300
46726617 markotee F Dec. 7, 2018, 3:20 p.m. OK GNU C++14 TESTS 37 30 0 2300
41009126 wfrm F July 31, 2018, 11:38 a.m. OK GNU C++14 TESTS 37 30 0 2300
51449373 vjudge2 F March 18, 2019, 1:59 p.m. OK GNU C++14 TESTS 37 30 0 2300
55472430 oskarfiuk1 F June 11, 2019, 7:42 p.m. OK GNU C++17 TESTS 37 15 0 2300
38948728 614984177 F June 4, 2018, 3:14 p.m. OK GNU C++17 TESTS 37 15 3379200 2300
68207477 clu-hash-de F Jan. 4, 2020, 5:55 p.m. OK GNU C++17 TESTS 37 30 0 2300
53178016 trungvthe130284 F April 23, 2019, 5:38 a.m. OK GNU C++17 TESTS 37 30 0 2300
40530901 juneking F July 19, 2018, 2:38 a.m. OK GNU C++17 TESTS 37 30 0 2300
39455661 vjudge5 F June 21, 2018, 8:29 a.m. OK GNU C++17 TESTS 37 30 0 2300
39455659 vjudge3 F June 21, 2018, 8:29 a.m. OK GNU C++17 TESTS 37 30 0 2300
39242129 vjudge1 F June 14, 2018, 11:41 a.m. OK GNU C++17 TESTS 37 30 0 2300
39216483 704817104 F June 13, 2018, 12:42 p.m. OK GNU C++17 TESTS 37 30 0 2300
53182535 trungvthe130284 F April 23, 2019, 8:26 a.m. OK GNU C++17 TESTS 37 30 0 2300
42887885 Marii F Sept. 15, 2018, 11 a.m. OK Go TESTS 37 31 0 2300
38917737 megaspazz F June 3, 2018, 10:31 a.m. OK Go TESTS 37 389 87552000 2300
69549300 luchy0120 F Jan. 26, 2020, 5:33 a.m. OK Java 8 TESTS 37 124 0 2300
66476261 Agnimandur F Dec. 7, 2019, 9 p.m. OK Java 8 TESTS 37 124 0 2300
52057571 mikkk F March 30, 2019, 8:49 p.m. OK Java 8 TESTS 37 124 0 2300
39060571 DeadPigCreateDaNiuBright F June 9, 2018, 5:32 a.m. OK Java 8 TESTS 37 124 0 2300
38987278 dyhu083 F June 6, 2018, 7:44 a.m. OK Java 8 TESTS 37 139 0 2300
38986745 dyhu083 F June 6, 2018, 7:21 a.m. OK Java 8 TESTS 37 139 0 2300
38953709 hulk_man F June 4, 2018, 7:19 p.m. OK Java 8 TESTS 37 139 20684800 2300
42288105 vadimmm F Aug. 30, 2018, 6:37 p.m. OK Java 8 TESTS 37 140 0 2300
39233516 mr_smith F June 14, 2018, 6:53 a.m. OK Java 8 TESTS 37 140 0 2300
39051384 DeadPigCreateDaNiuBright F June 8, 2018, 5:02 p.m. OK Java 8 TESTS 37 140 0 2300
38955132 0442A403 F June 4, 2018, 9:16 p.m. OK Kotlin TESTS 37 171 21708800 2300
52202564 hongquanntct F April 1, 2019, 4:57 p.m. OK Mono C# TESTS 37 77 4403200 2300
52205172 hongquanntct F April 1, 2019, 5:10 p.m. OK Mono C# TESTS 37 77 4403200 2300
39142111 artworks F June 11, 2018, 9:38 a.m. OK Mono C# TESTS 37 280 33894400 2300
39255727 henudhl F June 15, 2018, 2:06 a.m. OK MS C++ TESTS 37 31 0 2300
43277906 vjudge1 F Sept. 23, 2018, 2:04 a.m. OK MS C++ TESTS 37 31 0 2300
45907159 vjudge2 F Nov. 18, 2018, 9:02 a.m. OK MS C++ TESTS 37 31 0 2300
43287917 vjudge1 F Sept. 23, 2018, 9:10 a.m. OK MS C++ TESTS 37 31 102400 2300
40562332 vjudge4 F July 20, 2018, 1:54 a.m. OK MS C++ TESTS 37 31 102400 2300
43181297 vjudge5 F Sept. 21, 2018, 1:28 p.m. OK MS C++ TESTS 37 31 307200 2300
43114540 vjudge3 F Sept. 20, 2018, 1:08 p.m. OK MS C++ TESTS 37 31 307200 2300
40654456 vjudge1 F July 23, 2018, 2:33 a.m. OK MS C++ TESTS 37 46 0 2300
39893755 MenOfPassion F July 3, 2018, 12:35 p.m. OK MS C++ TESTS 37 46 16179200 2300
43507001 mayflower F Sept. 27, 2018, 7:57 p.m. OK MS C++ TESTS 37 46 17305600 2300
50631099 work_hard. F March 1, 2019, 9:10 a.m. OK MS C++ 2017 TESTS 37 31 0 2300
39445263 kevinsogo F June 20, 2018, 7:49 p.m. OK PyPy 2 TESTS 37 327 7577600 2300
52280374 aleonov drobucs F April 3, 2019, 4:42 p.m. OK PyPy 3 TESTS 37 171 1638400 2300
38962448 stark_C F June 5, 2018, 7:37 a.m. OK PyPy 3 TESTS 37 265 24268800 2300
53845872 yfo F May 7, 2019, 10:53 a.m. OK PyPy 3 TESTS 37 405 54988800 2300
38929616 Stephan F June 3, 2018, 8 p.m. OK PyPy 3 TESTS 37 467 42393600 2300
39059279 Yee_172 F June 9, 2018, 3:59 a.m. OK Python 3 TESTS 37 280 15155200 2300
39010426 bigcat111 F June 7, 2018, 6:29 a.m. OK Python 3 TESTS 37 280 15564800 2300
38960108 brauliobz F June 5, 2018, 5:34 a.m. OK Rust TESTS 37 46 20275200 2300
39285065 kobae964 F June 16, 2018, 10:45 a.m. OK Rust TESTS 37 77 137318400 2300
39073905 vamsi1281977 F June 9, 2018, 4:18 p.m. OK Rust TESTS 37 234 614400 2300
39078083 vamsi1281977 F June 9, 2018, 8:18 p.m. OK Rust TESTS 37 249 614400 2300
39078220 vamsi1281977 F June 9, 2018, 8:26 p.m. OK Rust TESTS 37 265 614400 2300
39161823 sunsflower F June 11, 2018, 2:42 p.m. OK Scala TESTS 37 779 12185600 2300
39182886 sunsflower F June 12, 2018, 7 a.m. OK Scala TESTS 37 1403 26009600 2300

remove filters

Back to search problems