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 157908299 Nov. 16, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1857 ) F Cheap Robot PROGRAMMING binary search ds graphs shortest paths trees 2600

B"You're given a simple, undirected, connected, weighted graph with n nodes and m edges. Nodes are numbered from 1 to n . There are exactly k centrals (recharge points), which are nodes 1, 2, ldots, k . We consider a robot moving into this graph, with a battery of capacity c , not fixed by the constructor yet. At any time, the battery contains an integer amount x of energy between 0 and c inclusive. Traversing an edge of weight w_i is possible only if x ge w_i , and costs w_i energy points ( x := x - w_i ). Moreover, when the robot reaches a central, its battery is entirely recharged ( x := c ). You're given q independent missions, the i -th mission requires to move the robot from central a_i to central b_i . For each mission, you should tell the minimum capacity required to acheive it. The first line contains four integers n , m , k and q ( 2 <= k <= n <= 10^5 and 1 <= m, q <= 3 cdot 10^5 ). The i -th of the next m lines contains three integers u_i , v_i and w_i ( 1 <= u_i, v_i <= n , u_i neq v_i , 1 <= w_i <= 10^9 ), that mean that there's an edge between nodes u and v , with a weight w_i . It is guaranteed that the given graph is simple (there is no self-loop, and there is at most one edge between every pair of nodes) and connected. The i -th of the next q lines contains two integers a_i and b_i ( 1 <= a_i, b_i <= k , a_i neq b_i ). You have to output q lines, where the i -th line contains a single integer : the minimum capacity required to acheive the i -th mission. In the first example, the graph is the chain 10 - 9 - 2^C - 4 - 1^C - 5 - 7 - 3^C - 8 - 6 , where centrals are nodes 1 , 2 and 3 . For the mission (2, 3) , there is only one simple path possible. Here is a simulat"...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65221343 rainboy F Nov. 16, 2019, 9:07 p.m. OK GNU C11 TESTS 124 1591 34099200 2600
65616879 tyler178 F Nov. 24, 2019, 4:13 a.m. OK GNU C++11 TESTS 125 249 18739200 2600
65591765 nantf F Nov. 23, 2019, 2:22 p.m. OK GNU C++11 TESTS 125 311 57344000 2600
65325699 wannaAC F Nov. 19, 2019, 12:53 a.m. OK GNU C++11 TESTS 125 311 288563200 2600
69517659 urchin-c F Jan. 25, 2020, 12:30 p.m. OK GNU C++11 TESTS 125 327 20889600 2600
66254586 crybymyself F Dec. 4, 2019, 5:06 a.m. OK GNU C++11 TESTS 125 343 80179200 2600
65313964 wannaAC F Nov. 18, 2019, 4:27 p.m. OK GNU C++11 TESTS 125 358 285388800 2600
65409785 EncodeTalker F Nov. 20, 2019, 3:18 a.m. OK GNU C++11 TESTS 125 374 53760000 2600
65290155 lyyyyy F Nov. 18, 2019, 9:31 a.m. OK GNU C++11 TESTS 125 389 29696000 2600
65409830 EncodeTalker F Nov. 20, 2019, 3:20 a.m. OK GNU C++11 TESTS 125 389 53760000 2600
66585913 Fishdeer F Dec. 10, 2019, 11:09 a.m. OK GNU C++11 TESTS 125 420 20889600 2600
65702899 onlystar F Nov. 25, 2019, 11:29 a.m. OK GNU C++14 TESTS 125 483 42905600 2600
65433934 vjudge1 F Nov. 20, 2019, 12:50 p.m. OK GNU C++14 TESTS 125 498 18534400 2600
65225423 beginend F Nov. 17, 2019, 1:17 a.m. OK GNU C++14 TESTS 125 498 20889600 2600
65236991 babydragon1 F Nov. 17, 2019, 7:35 a.m. OK GNU C++14 TESTS 125 499 20889600 2600
65608627 wleung_bvg F Nov. 23, 2019, 10:49 p.m. OK GNU C++14 TESTS 125 514 33177600 2600
65434235 zhanggengchen F Nov. 20, 2019, 12:55 p.m. OK GNU C++14 TESTS 125 530 18534400 2600
65612907 Adson_S F Nov. 24, 2019, 1:04 a.m. OK GNU C++14 TESTS 125 530 43929600 2600
66492252 FayeValentine F Dec. 8, 2019, 8:59 a.m. OK GNU C++14 TESTS 125 545 25395200 2600
65612886 Adson_S F Nov. 24, 2019, 1:03 a.m. OK GNU C++14 TESTS 125 545 43929600 2600
66288215 mateusz F Dec. 4, 2019, 8:25 p.m. OK GNU C++14 TESTS 125 545 58777600 2600
65384849 shurongwang F Nov. 19, 2019, 4:21 p.m. OK GNU C++17 TESTS 125 374 92672000 2600
65382202 vjudge1 F Nov. 19, 2019, 4:12 p.m. OK GNU C++17 TESTS 125 389 92672000 2600
65382170 shurongwang F Nov. 19, 2019, 4:12 p.m. OK GNU C++17 TESTS 125 405 92569600 2600
65261310 Kevin_Zhang-TW F Nov. 17, 2019, 3:08 p.m. OK GNU C++17 TESTS 125 467 106393600 2600
66050853 vjudge5 F Nov. 30, 2019, 5:10 p.m. OK GNU C++17 TESTS 125 498 21196800 2600
65491524 Changyu F Nov. 21, 2019, 2:51 p.m. OK GNU C++17 TESTS 125 529 34611200 2600
65335481 typhigh F Nov. 19, 2019, 8:44 a.m. OK GNU C++17 TESTS 125 545 39219200 2600
65610724 LeoRiether F Nov. 23, 2019, 11:53 p.m. OK GNU C++17 TESTS 125 577 23859200 2600
65307383 Tourist_Sa_Dec F Nov. 18, 2019, 3:24 p.m. OK GNU C++17 TESTS 125 577 35532800 2600
69889030 WaluntOvO F Jan. 31, 2020, 9:18 a.m. OK GNU C++17 TESTS 125 577 131891200 2600
65209769 Dukkha F Nov. 16, 2019, 5:43 p.m. OK Java 11 TESTS 124 717 67481600 2600
65224129 insert_cool_handle F Nov. 16, 2019, 11:46 p.m. OK Java 11 TESTS 125 1388 132812800 2600
66000594 DATVN F Nov. 29, 2019, 6:59 p.m. OK Java 11 TESTS 125 1700 124825600 2600
66262378 IslamTalipovTop F Dec. 4, 2019, 8:59 a.m. OK Java 11 TESTS 125 1746 108236800 2600
66071207 DATVN F Nov. 30, 2019, 7:36 p.m. OK Java 11 TESTS 125 2245 214425600 2600
65279848 SpargelTarzan F Nov. 18, 2019, 4:51 a.m. OK Java 8 TESTS 125 1341 82329600 2600
65223871 insert_cool_handle F Nov. 16, 2019, 11:28 p.m. OK Java 8 TESTS 125 1372 142950400 2600
65229639 dalt F Nov. 17, 2019, 4:10 a.m. OK Java 8 TESTS 125 1481 95744000 2600
65203815 Jeel_Vaishnav F Nov. 16, 2019, 4:19 p.m. OK Java 8 TESTS 124 1825 154726400 2600
65274539 barakraganosungam F Nov. 17, 2019, 10:50 p.m. OK Java 8 TESTS 125 1918 180019200 2600
65271397 nikolay.v.mikhaylov F Nov. 17, 2019, 8 p.m. OK Java 8 TESTS 125 2090 122265600 2600
69495344 Java F Jan. 25, 2020, 3:27 a.m. OK Java 8 TESTS 125 2105 155750400 2600
65264733 nikolay.v.mikhaylov F Nov. 17, 2019, 4:28 p.m. OK Java 8 TESTS 125 2106 132505600 2600
65271039 nikolay.v.mikhaylov F Nov. 17, 2019, 7:47 p.m. OK Java 8 TESTS 125 2215 122265600 2600
65271008 nikolay.v.mikhaylov F Nov. 17, 2019, 7:46 p.m. OK Java 8 TESTS 125 2215 132608000 2600
65459877 Spheniscine F Nov. 21, 2019, 12:48 a.m. OK Kotlin TESTS 125 2214 192409600 2600
65435290 Spheniscine F Nov. 20, 2019, 1:13 p.m. OK Kotlin TESTS 125 2292 192409600 2600
65287923 Spheniscine F Nov. 18, 2019, 8:46 a.m. OK Kotlin TESTS 125 2386 222310400 2600
65286049 Spheniscine F Nov. 18, 2019, 8:07 a.m. OK Kotlin TESTS 125 2464 212172800 2600
65288070 Spheniscine F Nov. 18, 2019, 8:49 a.m. OK Kotlin TESTS 125 2464 222310400 2600
65287473 Spheniscine F Nov. 18, 2019, 8:37 a.m. OK Kotlin TESTS 125 2495 208998400 2600
65314027 Spheniscine F Nov. 18, 2019, 4:28 p.m. OK Kotlin TESTS 125 2542 211660800 2600
65285879 Spheniscine F Nov. 18, 2019, 8:03 a.m. OK Kotlin TESTS 125 2651 193126400 2600
69452862 hibatibati F Jan. 24, 2020, 7:05 a.m. OK Mono C# TESTS 125 1434 64409600 2600
65615458 vjudge5 F Nov. 24, 2019, 3:14 a.m. OK MS C++ TESTS 125 420 21913600 2600
65220917 r57shell F Nov. 16, 2019, 8:50 p.m. OK MS C++ TESTS 124 811 49049600 2600
65217538 r57shell F Nov. 16, 2019, 7:12 p.m. OK MS C++ TESTS 124 811 49049600 2600
65240989 wp32pw F Nov. 17, 2019, 8:45 a.m. OK MS C++ 2017 TESTS 125 1419 135270400 2600
66517553 Yagyu_1 F Dec. 8, 2019, 7:48 p.m. OK MS C++ 2017 TESTS 125 1606 44134400 2600
65240440 wp32pw F Nov. 17, 2019, 8:37 a.m. OK MS C++ 2017 TESTS 125 2214 135168000 2600
65240330 wp32pw F Nov. 17, 2019, 8:35 a.m. OK MS C++ 2017 TESTS 125 2261 126873600 2600
65239261 wp32pw F Nov. 17, 2019, 8:20 a.m. OK MS C++ 2017 TESTS 125 2292 125849600 2600
65239068 wp32pw F Nov. 17, 2019, 8:16 a.m. OK MS C++ 2017 TESTS 125 2324 134144000 2600
65238973 wp32pw F Nov. 17, 2019, 8:15 a.m. OK MS C++ 2017 TESTS 125 2386 146124800 2600
65239293 wp32pw F Nov. 17, 2019, 8:20 a.m. OK MS C++ 2017 TESTS 125 2479 125849600 2600
65239179 wp32pw F Nov. 17, 2019, 8:18 a.m. OK MS C++ 2017 TESTS 125 2589 134246400 2600
65239151 wp32pw F Nov. 17, 2019, 8:18 a.m. OK MS C++ 2017 TESTS 125 2714 134246400 2600
65216125 sansen F Nov. 16, 2019, 6:38 p.m. OK Rust TESTS 124 358 66969600 2600
67426010 gearjack F Dec. 22, 2019, 1:27 p.m. OK Rust TESTS 125 1060 93184000 2600

remove filters

Back to search problems