Codeforces Round 600 (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
1253 Codeforces Round 600 (Div. 2) FINISHED False 7200 163524287 Nov. 16, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2888 ) E Antenna Coverage PROGRAMMING data structures dp greedy sortings 2200

B"The mayor of the Central Town wants to modernize Central Street, represented in this problem by the (Ox) axis. On this street, there are n antennas, numbered from 1 to n . The i -th antenna lies on the position x_i and has an initial scope of s_i : it covers all integer positions inside the interval [x_i - s_i; x_i + s_i] . It is possible to increment the scope of any antenna by 1 , this operation costs 1 coin. We can do this operation as much as we want (multiple times on the same antenna if we want). To modernize the street, we need to make all integer positions from 1 to m inclusive covered by at least one antenna. Note that it is authorized to cover positions outside [1; m] , even if it's not required. What is the minimum amount of coins needed to achieve this modernization? The first line contains two integers n and m ( 1 <= n <= 80 and n <= m <= 100 000 ). The i -th of the next n lines contains two integers x_i and s_i ( 1 <= x_i <= m and 0 <= s_i <= m ). On each position, there is at most one antenna (values x_i are pairwise distinct). You have to output a single integer: the minimum amount of coins required to make all integer positions from 1 to m inclusive covered by at least one antenna. In the first example, here is a possible strategy: Total cost is 40 + 210 + 31 = 281 . We can prove that it's the minimum cost required to make all positions from 1 to 595 covered by at least one antenna. Note that positions 513 and 514 are in this solution covered by two different antennas, but it's not important. -- In the second example, the first antenna already covers an interval [0; 2] so we have nothing to do. Note that the only position that we needed to cover was position 1 ; positions 0 and 2 are covered, but it's not important. "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65257214 jschr E Nov. 17, 2019, 1:49 p.m. OK GNU C11 TESTS 131 46 409600 2200
65420938 singerl E Nov. 20, 2019, 8:53 a.m. OK GNU C11 TESTS 131 46 1228800 2200
65220663 rainboy E Nov. 16, 2019, 8:41 p.m. OK GNU C11 TESTS 131 62 409600 2200
65341684 zhmeng E Nov. 19, 2019, 11:10 a.m. OK GNU C++11 TESTS 131 31 204800 2200
65436023 vjudge3 E Nov. 20, 2019, 1:25 p.m. OK GNU C++11 TESTS 131 31 409600 2200
65404247 adrianwij123 E Nov. 20, 2019, 1:57 a.m. OK GNU C++11 TESTS 131 31 409600 2200
65298644 ArArgon E Nov. 18, 2019, 12:26 p.m. OK GNU C++11 TESTS 131 31 409600 2200
66295781 vioalbert E Dec. 5, 2019, 4:11 a.m. OK GNU C++11 TESTS 131 31 409600 2200
66233378 luogu_bot4 E Dec. 3, 2019, 3:15 p.m. OK GNU C++11 TESTS 131 31 409600 2200
65510105 dailong E Nov. 22, 2019, 2:57 a.m. OK GNU C++11 TESTS 131 31 409600 2200
68643688 urchin-c E Jan. 12, 2020, 8:21 a.m. OK GNU C++11 TESTS 131 31 409600 2200
67642891 SuperDY E Dec. 26, 2019, 8:54 a.m. OK GNU C++11 TESTS 131 31 409600 2200
66551499 Undername E Dec. 9, 2019, 3:05 p.m. OK GNU C++11 TESTS 131 31 409600 2200
65725809 aabab E Nov. 25, 2019, 10:52 p.m. OK GNU C++14 TESTS 131 31 409600 2200
65720320 WaterSpellbinder E Nov. 25, 2019, 6:43 p.m. OK GNU C++14 TESTS 131 31 409600 2200
65532032 AceKing E Nov. 22, 2019, 12:48 p.m. OK GNU C++14 TESTS 131 31 409600 2200
65508996 blondie E Nov. 22, 2019, 2:03 a.m. OK GNU C++14 TESTS 131 31 409600 2200
65490160 tuananh238 E Nov. 21, 2019, 2:18 p.m. OK GNU C++14 TESTS 131 31 409600 2200
65444022 CrayonKe E Nov. 20, 2019, 3:18 p.m. OK GNU C++14 TESTS 131 31 409600 2200
65410477 chuducanhchy E Nov. 20, 2019, 3:49 a.m. OK GNU C++14 TESTS 131 31 409600 2200
68453117 S_Aditya E Jan. 9, 2020, 3:04 p.m. OK GNU C++14 TESTS 131 31 409600 2200
67603658 malviyan_shiv E Dec. 25, 2019, 12:49 p.m. OK GNU C++14 TESTS 131 31 409600 2200
66663648 jainnish98 E Dec. 12, 2019, 6:01 a.m. OK GNU C++14 TESTS 131 31 409600 2200
66501881 uddeshya E Dec. 8, 2019, 12:52 p.m. OK GNU C++17 TESTS 131 31 409600 2200
68704114 vjudge1 E Jan. 13, 2020, 10:34 a.m. OK GNU C++17 TESTS 131 31 409600 2200
68641861 vjudge2 E Jan. 12, 2020, 7:46 a.m. OK GNU C++17 TESTS 131 31 409600 2200
68145277 xucanxx E Jan. 4, 2020, 3:52 a.m. OK GNU C++17 TESTS 131 31 409600 2200
68016775 noronha E Dec. 31, 2019, 7:09 p.m. OK GNU C++17 TESTS 131 31 409600 2200
67033156 binaryLifter E Dec. 16, 2019, 4:30 p.m. OK GNU C++17 TESTS 131 31 409600 2200
66578543 vjudge5 E Dec. 10, 2019, 8:26 a.m. OK GNU C++17 TESTS 131 31 409600 2200
66187016 cdh981009 E Dec. 2, 2019, 2:54 p.m. OK GNU C++17 TESTS 131 31 409600 2200
66182127 killer_lsy E Dec. 2, 2019, 1:11 p.m. OK GNU C++17 TESTS 131 31 409600 2200
66015339 rrrtogi00 E Nov. 30, 2019, 5:08 a.m. OK GNU C++17 TESTS 131 31 409600 2200
68069502 u1s1reallycai E Jan. 2, 2020, 9:36 a.m. OK Go TESTS 131 156 69017600 2200
65248474 Anonymous E Nov. 17, 2019, 11:16 a.m. OK Java 11 TESTS 131 202 6963200 2200
68960590 beginner1010 E Jan. 17, 2020, 12:18 a.m. OK Java 11 TESTS 131 218 5222400 2200
65206258 Musin E Nov. 16, 2019, 4:29 p.m. OK Java 11 TESTS 131 218 6860800 2200
65224507 Kharouba E Nov. 17, 2019, 12:19 a.m. OK Java 11 TESTS 131 218 8396800 2200
65222527 real.emerald E Nov. 16, 2019, 10:01 p.m. OK Java 11 TESTS 131 233 0 2200
65747031 potatmen E Nov. 26, 2019, 12:39 p.m. OK Java 11 TESTS 131 249 0 2200
65220662 Dukkha E Nov. 16, 2019, 8:41 p.m. OK Java 11 TESTS 131 249 0 2200
65547610 IslamTalipovTop E Nov. 22, 2019, 5:39 p.m. OK Java 11 TESTS 131 265 0 2200
65275420 lzhang E Nov. 18, 2019, 12:15 a.m. OK Java 8 TESTS 131 140 0 2200
65954715 yaoct E Nov. 29, 2019, 12:20 p.m. OK Java 8 TESTS 131 140 0 2200
69444043 Java E Jan. 24, 2020, 12:56 a.m. OK Java 8 TESTS 131 155 0 2200
65422667 adarsh000321 E Nov. 20, 2019, 9:31 a.m. OK Java 8 TESTS 131 155 0 2200
65314800 KharYusuf E Nov. 18, 2019, 4:49 p.m. OK Java 8 TESTS 131 155 0 2200
65237877 polyakoff E Nov. 17, 2019, 7:54 a.m. OK Java 8 TESTS 131 155 0 2200
65204986 Xylenox E Nov. 16, 2019, 4:24 p.m. OK Java 8 TESTS 131 155 0 2200
65798065 htvu E Nov. 27, 2019, 6:02 a.m. OK Java 8 TESTS 131 155 0 2200
65282380 Khater E Nov. 18, 2019, 6:35 a.m. OK Java 8 TESTS 131 155 3891200 2200
65325574 mbfeci E Nov. 19, 2019, 12:41 a.m. OK Java 8 TESTS 131 155 5529600 2200
65282027 Spheniscine E Nov. 18, 2019, 6:22 a.m. OK Kotlin TESTS 131 217 0 2200
69838810 hibatibati E Jan. 30, 2020, 12:35 p.m. OK Mono C# TESTS 131 655 21504000 2200
65614276 vjudge2 E Nov. 24, 2019, 2:16 a.m. OK MS C++ TESTS 131 31 409600 2200
65614829 vjudge2 E Nov. 24, 2019, 2:44 a.m. OK MS C++ TESTS 131 31 409600 2200
65220304 r57shell E Nov. 16, 2019, 8:29 p.m. OK MS C++ TESTS 131 46 1638400 2200
65325748 vjudge3 E Nov. 19, 2019, 12:59 a.m. OK MS C++ TESTS 131 62 819200 2200
65231502 tarattata1 E Nov. 17, 2019, 5:18 a.m. OK MS C++ TESTS 131 561 123494400 2200
65824959 LightningShock E Nov. 27, 2019, 12:11 p.m. OK MS C++ 2017 TESTS 131 46 716800 2200
65825776 LightningShock E Nov. 27, 2019, 12:29 p.m. OK MS C++ 2017 TESTS 131 46 716800 2200
65822044 LightningShock E Nov. 27, 2019, 11 a.m. OK MS C++ 2017 TESTS 131 46 716800 2200
65233782 rokirovochka E Nov. 17, 2019, 6:21 a.m. OK MS C++ 2017 TESTS 131 46 716800 2200
65219865 RubyStone E Nov. 16, 2019, 8:14 p.m. OK MS C++ 2017 TESTS 131 46 1024000 2200
65240623 efyjef E Nov. 17, 2019, 8:39 a.m. OK MS C++ 2017 TESTS 131 46 1433600 2200
65215962 Kniaz E Nov. 16, 2019, 6:35 p.m. OK MS C++ 2017 TESTS 131 62 1126400 2200
68207933 CygneNoir E Jan. 4, 2020, 6:05 p.m. OK MS C++ 2017 TESTS 131 62 1126400 2200
65448446 zdbtxdy E Nov. 20, 2019, 4:57 p.m. OK PyPy 2 TESTS 131 218 2560000 2200
65448362 zdbtxdy E Nov. 20, 2019, 4:55 p.m. OK PyPy 2 TESTS 131 233 2764800 2200
65202504 pajenegod E Nov. 16, 2019, 4:13 p.m. OK PyPy 2 TESTS 131 295 34201600 2200
65397073 Bashuk E Nov. 19, 2019, 7:35 p.m. OK PyPy 2 TESTS 131 373 35532800 2200
65534568 mitribunskiy E Nov. 22, 2019, 1:42 p.m. OK PyPy 3 TESTS 131 249 5324800 2200
65905116 mdaw E Nov. 28, 2019, 10:34 a.m. OK PyPy 3 TESTS 131 264 2764800 2200
66435988 tushartyagi8750 E Dec. 7, 2019, 6:12 a.m. OK PyPy 3 TESTS 131 265 2764800 2200
65904542 mdaw E Nov. 28, 2019, 10:19 a.m. OK PyPy 3 TESTS 131 280 4300800 2200
67647936 FireBird23 E Dec. 26, 2019, 10:57 a.m. OK PyPy 3 TESTS 131 280 5427200 2200
67648093 FireBird23 E Dec. 26, 2019, 11:01 a.m. OK PyPy 3 TESTS 131 280 5939200 2200
65203364 titia E Nov. 16, 2019, 4:17 p.m. OK PyPy 3 TESTS 131 280 5939200 2200
66460691 wattaihei E Dec. 7, 2019, 2:41 p.m. OK PyPy 3 TESTS 131 296 5427200 2200
65204172 neterukun E Nov. 16, 2019, 4:20 p.m. OK PyPy 3 TESTS 131 296 34713600 2200
66233444 cftt E Dec. 3, 2019, 3:16 p.m. OK PyPy 3 TESTS 131 311 3891200 2200
67778072 gearjack E Dec. 28, 2019, 9:49 a.m. OK Rust TESTS 131 61 409600 2200
65209941 sansen E Nov. 16, 2019, 5:45 p.m. OK Rust TESTS 131 77 819200 2200
65201538 sansen E Nov. 16, 2019, 4:09 p.m. OK Rust TESTS 131 109 819200 2200
65210529 sansen E Nov. 16, 2019, 5:50 p.m. OK Rust TESTS 131 2917 819200 2200
65311482 limed E Nov. 18, 2019, 3:29 p.m. OK Scala TESTS 131 842 0 2200

remove filters

Back to search problems