Codeforces Round 186 (Div. 2)

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
313 Codeforces Round 186 (Div. 2) FINISHED False 7200 361895399 May 30, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1475 ) D Ilya and Roads PROGRAMMING dp 2100

B"Everything is great about Ilya's city, except the roads. The thing is, the only ZooVille road is represented as n holes in a row. We will consider the holes numbered from 1 to n, from left to right. Ilya is really keep on helping his city. So, he wants to fix at least k holes (perharps he can fix more) on a single ZooVille road. The city has m building companies, the i-th company needs ci money units to fix a road segment containing holes with numbers of at least li and at most ri. The companies in ZooVille are very greedy, so, if they fix a segment containing some already fixed holes, they do not decrease the price for fixing the segment. Determine the minimum money Ilya will need to fix at least k holes. The first line contains three integers n, xe2 x80 x89m, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n). The next m lines contain the companies' description. The i-th line contains three integers li, xe2 x80 x89ri, xe2 x80 x89ci (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print a single integer -- the minimum money Ilya needs to fix at least k holes. If it is impossible to fix at least k holes, print -1. Please, do not use the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specifier."...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56028956 chaorenhaha D June 25, 2019, 8:29 a.m. OK FPC TESTS 77 280 1433600 2100
40989852 ReaLNero1 D July 30, 2018, 11:21 p.m. OK GNU C++ TESTS 77 92 1331200 2100
27530693 vjudge2 D June 2, 2017, 7:28 p.m. OK GNU C++ TESTS 77 92 1331200 2100
27530676 ShinriiTin D June 2, 2017, 7:28 p.m. OK GNU C++ TESTS 77 92 1331200 2100
31980069 Idvzchuscvol D Nov. 2, 2017, 12:40 p.m. OK GNU C++ TESTS 77 124 1331200 2100
27538960 vjudge2 D June 3, 2017, 8:02 a.m. OK GNU C++ TESTS 77 124 1331200 2100
33214320 vjudge1 D Dec. 13, 2017, 1:13 p.m. OK GNU C++ TESTS 77 124 3584000 2100
29048330 vjudge5 D July 31, 2017, 12:30 p.m. OK GNU C++ TESTS 77 124 3686400 2100
24816018 __N__ D Feb. 20, 2017, 6:15 a.m. OK GNU C++ TESTS 77 154 3686400 2100
27564466 vjudge1 D June 4, 2017, 1:08 p.m. OK GNU C++ TESTS 77 154 27852800 2100
27536250 vjudge5 D June 3, 2017, 5:09 a.m. OK GNU C++ TESTS 77 156 1228800 2100
58622759 rainboy D Aug. 11, 2019, 4:22 p.m. OK GNU C11 TESTS 77 124 1126400 2100
66556446 code_cola D Dec. 9, 2019, 5:01 p.m. OK GNU C++11 TESTS 77 92 1433600 2100
28640551 Dream_Tonight D July 17, 2017, 1:18 p.m. OK GNU C++11 TESTS 77 92 3584000 2100
40047463 Trung.Ore D July 7, 2018, 12:48 a.m. OK GNU C++11 TESTS 77 92 6553600 2100
32808639 vjudge3 D Nov. 30, 2017, 2:50 p.m. OK GNU C++11 TESTS 77 124 3584000 2100
27946135 aj116 D June 21, 2017, 12:51 p.m. OK GNU C++11 TESTS 77 124 3788800 2100
28824059 aster.darkking D July 24, 2017, 12:20 p.m. OK GNU C++11 TESTS 77 124 3788800 2100
27527210 vjudge5 D June 2, 2017, 3:44 p.m. OK GNU C++11 TESTS 77 154 1331200 2100
27535931 vjudge2 D June 3, 2017, 4:47 a.m. OK GNU C++11 TESTS 77 154 1536000 2100
38464759 unicorn20141 D May 20, 2018, 4:18 p.m. OK GNU C++11 TESTS 77 154 1638400 2100
65539943 JCC_ D Nov. 22, 2019, 3:25 p.m. OK GNU C++11 TESTS 77 156 1536000 2100
52912756 Ada.Grad.Shil D April 17, 2019, 2:41 p.m. OK GNU C++14 TESTS 77 156 1638400 2100
52912947 Ada.Grad.Shil D April 17, 2019, 2:45 p.m. OK GNU C++14 TESTS 77 156 1740800 2100
25970885 joyfun D March 31, 2017, 8:02 a.m. OK GNU C++14 TESTS 77 156 3379200 2100
28907155 Hepic_Antony_Skarlatos D July 26, 2017, 2:20 p.m. OK GNU C++14 TESTS 77 156 3481600 2100
29200754 hipo D Aug. 4, 2017, 5:43 p.m. OK GNU C++14 TESTS 77 156 3584000 2100
46128588 alfadel D Nov. 23, 2018, 9:08 p.m. OK GNU C++14 TESTS 77 186 1433600 2100
21827859 Ice_Cream D Oct. 27, 2016, 3:35 p.m. OK GNU C++14 TESTS 77 186 1536000 2100
46426368 T.V_N D Dec. 1, 2018, 12:40 a.m. OK GNU C++14 TESTS 77 186 1740800 2100
46274564 dmkozyrev D Nov. 27, 2018, 10:42 a.m. OK GNU C++14 TESTS 77 186 2662400 2100
46274719 dmkozyrev D Nov. 27, 2018, 10:48 a.m. OK GNU C++14 TESTS 77 186 2662400 2100
46813795 cyg_serban D Dec. 9, 2018, 11:47 a.m. OK GNU C++17 TESTS 77 186 1433600 2100
61382396 Eran D Sept. 27, 2019, 5:53 p.m. OK GNU C++17 TESTS 77 186 1536000 2100
60364930 walidsad D Sept. 10, 2019, 8:15 p.m. OK GNU C++17 TESTS 77 186 1536000 2100
53439560 AryaKnight D April 27, 2019, 10:04 p.m. OK GNU C++17 TESTS 77 186 1638400 2100
63347429 igba D Oct. 24, 2019, 7:53 p.m. OK GNU C++17 TESTS 77 186 1740800 2100
61879589 Jefe D Oct. 4, 2019, 10:13 p.m. OK GNU C++17 TESTS 77 216 8806400 2100
63372192 AK. D Oct. 25, 2019, 9:46 a.m. OK GNU C++17 TESTS 77 218 1536000 2100
63348185 k0walsk1 D Oct. 24, 2019, 8:15 p.m. OK GNU C++17 TESTS 77 218 1536000 2100
50770730 jsh1938 D March 4, 2019, 4:31 a.m. OK GNU C++17 TESTS 77 218 1536000 2100
69675504 zaher__ D Jan. 28, 2020, 2:10 p.m. OK GNU C++17 TESTS 77 218 3379200 2100
40241648 AQT D July 12, 2018, 7:19 p.m. OK Java 8 TESTS 77 434 0 2100
31574708 Hoda_Hisham D Oct. 21, 2017, 12:59 p.m. OK Java 8 TESTS 77 436 20377600 2100
64767144 Hemose D Nov. 12, 2019, 9:15 p.m. OK Java 8 TESTS 77 466 0 2100
38465254 unicorn20141 D May 20, 2018, 4:45 p.m. OK Java 8 TESTS 77 496 0 2100
55688374 ZeyadKhattab D June 17, 2019, 4:42 p.m. OK Java 8 TESTS 77 654 0 2100
58622758 Dukkha D Aug. 11, 2019, 4:22 p.m. OK Java 8 TESTS 77 966 0 2100
41309226 Schullz D Aug. 7, 2018, 2:53 p.m. OK MS C++ TESTS 77 156 2662400 2100

remove filters

Back to search problems