Codeforces Round 597 (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
1245 Codeforces Round 597 (Div. 2) FINISHED False 7200 159204299 Nov. 1, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7680 ) D Shichikuji and Power Grid PROGRAMMING ds graphs greedy shortest paths trees 1900

B"Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follows: There are n new cities located in Prefecture X. Cities are numbered from 1 to n . City i is located x_i km North of the shrine and y_i km East of the shrine. It is possible that (x_i, y_i) = (x_j, y_j) even when i ne j . Shichikuji must provide electricity to each city either by building a power station in that city, or by making a connection between that city and another one that already has electricity. So the City has electricity if it has a power station in it or it is connected to a City which has electricity by a direct connection or via a chain of connections. Shichikuji wants to do this job spending as little money as possible, since according to her, there isn't really anything else in the world other than money. However, she died when she was only in fifth grade so she is not smart enough for this. And thus, the new resident deity asks for your help. And so, you have to provide Shichikuji with the following information: minimum amount of yen needed to provide electricity to all cities, the cities in which power stations will be built, and the connections to be made. If there are multiple ways to choose the cities and the connections to obtain the construction of minimum price, then print any of them. First line of input contains a single integer n ( 1 <= q n <= q 2000 ) -- the number of cities. Then, n lines follow. The i -th line contains two space-separated integers x_i ( 1 <= q x_i <= q 10^6 ) and y_i ( 1 <= q y_i <= q 10^6 ) -- the coordinates of the i -th city. The next line contains n space-separated integers c_1, c_2, ... , c_n ( 1 <= q c_i <= q 10^9 ) -- the cost of building a power station in the i -th city. The last line contains n space-separated integers k_1, k_2, ... , k_n ( 1 <= q k_i <= q 10^9 ). In th"...

Tutorials

Codeforces Round #597 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64084660 sash0 D Nov. 2, 2019, 11:06 a.m. OK D TESTS 53 78 4198400 1900
64090900 sash0 D Nov. 2, 2019, 12:36 p.m. OK D TESTS 53 78 4198400 1900
64053863 sash0 D Nov. 1, 2019, 11:49 p.m. OK D TESTS 53 764 107110400 1900
64053681 sash0 D Nov. 1, 2019, 11:39 p.m. OK D TESTS 53 811 72396800 1900
64083802 sash0 D Nov. 2, 2019, 10:54 a.m. OK D TESTS 53 841 70451200 1900
64053978 sash0 D Nov. 1, 2019, 11:55 p.m. OK D TESTS 53 1419 67276800 1900
64034997 ruban D Nov. 1, 2019, 4:29 p.m. OK Delphi TESTS 53 202 99020800 1900
64557436 dblark D Nov. 9, 2019, 4:33 a.m. OK FPC TESTS 54 342 96460800 1900
64568476 dblark D Nov. 9, 2019, 8:21 a.m. OK FPC TESTS 54 358 96460800 1900
64072449 YOK D Nov. 2, 2019, 7:51 a.m. OK GNU C11 TESTS 53 62 307200 1900
64027745 jschr D Nov. 1, 2019, 4 p.m. OK GNU C11 TESTS 53 608 64204800 1900
64072171 WingsWings D Nov. 2, 2019, 7:46 a.m. OK GNU C++11 TESTS 53 46 0 1900
64347575 CTP_314 D Nov. 6, 2019, 7:02 a.m. OK GNU C++11 TESTS 54 46 0 1900
64524810 ACMman D Nov. 8, 2019, 1:27 p.m. OK GNU C++11 TESTS 54 46 102400 1900
64496256 prodipdatta7 D Nov. 8, 2019, 12:08 a.m. OK GNU C++11 TESTS 54 46 102400 1900
64308007 lizzzzzzzzzz D Nov. 5, 2019, 11:56 a.m. OK GNU C++11 TESTS 54 46 102400 1900
64218309 19130X D Nov. 4, 2019, 1:32 p.m. OK GNU C++11 TESTS 54 46 102400 1900
64127999 rOhaS0rL4Q5 D Nov. 3, 2019, 5:44 a.m. OK GNU C++11 TESTS 54 46 102400 1900
64095911 ChthollyNotaSeniorious D Nov. 2, 2019, 1:54 p.m. OK GNU C++11 TESTS 53 46 102400 1900
64027561 uprainsun D Nov. 1, 2019, 4 p.m. OK GNU C++11 TESTS 53 46 102400 1900
65218830 roadbike80 D Nov. 16, 2019, 7:44 p.m. OK GNU C++11 TESTS 54 46 102400 1900
65468953 Mr.Robot_28 D Nov. 21, 2019, 7:32 a.m. OK GNU C++14 TESTS 54 46 102400 1900
66605669 ujj_wal D Dec. 10, 2019, 6:22 p.m. OK GNU C++14 TESTS 54 46 102400 1900
66139264 ijevtic D Dec. 1, 2019, 1:39 p.m. OK GNU C++14 TESTS 54 46 102400 1900
64755171 mindol D Nov. 12, 2019, 4:39 p.m. OK GNU C++14 TESTS 54 46 102400 1900
64687982 __peossp D Nov. 11, 2019, 12:19 p.m. OK GNU C++14 TESTS 54 46 102400 1900
64258120 pashka D Nov. 4, 2019, 3:38 p.m. OK GNU C++14 TESTS 54 46 102400 1900
64253654 pashka D Nov. 4, 2019, 3:06 p.m. OK GNU C++14 TESTS 54 46 102400 1900
64072631 Smiekids D Nov. 2, 2019, 7:54 a.m. OK GNU C++14 TESTS 53 46 102400 1900
64069105 yonsweng D Nov. 2, 2019, 6:48 a.m. OK GNU C++14 TESTS 53 46 102400 1900
64067437 supriyanta D Nov. 2, 2019, 6:17 a.m. OK GNU C++14 TESTS 53 46 102400 1900
64092334 laosijiddiannaosiji D Nov. 2, 2019, 12:59 p.m. OK GNU C++17 TESTS 53 46 0 1900
67287009 Noelheit D Dec. 20, 2019, 2:33 p.m. OK GNU C++17 TESTS 54 46 102400 1900
66216571 .tx D Dec. 3, 2019, 9:10 a.m. OK GNU C++17 TESTS 54 46 102400 1900
65703702 Guaguapi D Nov. 25, 2019, 11:47 a.m. OK GNU C++17 TESTS 54 46 102400 1900
65520865 cyg_serban D Nov. 22, 2019, 8:15 a.m. OK GNU C++17 TESTS 54 46 102400 1900
65401535 krijgertje D Nov. 19, 2019, 10:44 p.m. OK GNU C++17 TESTS 54 46 102400 1900
64701054 POWERRR D Nov. 11, 2019, 2:50 p.m. OK GNU C++17 TESTS 54 46 102400 1900
64534082 From_Earth_to_Mars D Nov. 8, 2019, 4:24 p.m. OK GNU C++17 TESTS 54 46 102400 1900
68620051 UwU_OwO D Jan. 11, 2020, 7:10 p.m. OK GNU C++17 TESTS 54 46 102400 1900
67956607 mikuz D Dec. 30, 2019, 9:54 a.m. OK GNU C++17 TESTS 54 46 102400 1900
64055145 synapse D Nov. 2, 2019, 12:54 a.m. OK Go TESTS 53 109 35635200 1900
68240219 maguroguma D Jan. 5, 2020, 12:31 p.m. OK Go TESTS 54 233 32256000 1900
64034445 reanimatorzon D Nov. 1, 2019, 4:27 p.m. OK Go TESTS 53 1528 218624000 1900
64045741 synapse D Nov. 1, 2019, 7:21 p.m. OK Go TESTS 53 1684 71372800 1900
64145578 sultan17 D Nov. 3, 2019, 9:45 a.m. OK Haskell TESTS 54 249 1126400 1900
64144713 sultan17 D Nov. 3, 2019, 9:30 a.m. OK Haskell TESTS 54 249 1126400 1900
64144462 sultan17 D Nov. 3, 2019, 9:26 a.m. OK Haskell TESTS 54 249 1126400 1900
64107827 sultan17 D Nov. 2, 2019, 5:23 p.m. OK Haskell TESTS 53 264 1126400 1900
64108704 sultan17 D Nov. 2, 2019, 5:45 p.m. OK Haskell TESTS 53 265 1126400 1900
64144156 sultan17 D Nov. 3, 2019, 9:21 a.m. OK Haskell TESTS 54 280 2150400 1900
64165531 TheSawan D Nov. 3, 2019, 4:07 p.m. OK Java 11 TESTS 54 280 0 1900
64040413 IslamTalipovTop D Nov. 1, 2019, 5:46 p.m. OK Java 11 TESTS 53 296 0 1900
64457845 lpls1 D Nov. 7, 2019, 9:18 a.m. OK Java 11 TESTS 54 296 39628800 1900
64137598 liquidity D Nov. 3, 2019, 7:35 a.m. OK Java 11 TESTS 54 467 10444800 1900
65166013 serafimkoo D Nov. 16, 2019, 1:18 p.m. OK Java 11 TESTS 54 1357 87040000 1900
64043871 Dukkha D Nov. 1, 2019, 6:45 p.m. OK Java 11 TESTS 53 1622 95232000 1900
64179736 DATVN D Nov. 3, 2019, 11:15 p.m. OK Java 11 TESTS 54 1777 87449600 1900
64594118 potatmen D Nov. 9, 2019, 3:56 p.m. OK Java 11 TESTS 54 1855 143974400 1900
64335710 adarsh000321 D Nov. 5, 2019, 9:42 p.m. OK Java 8 TESTS 54 171 0 1900
64261898 Nutella3000 D Nov. 4, 2019, 4:51 p.m. OK Java 8 TESTS 54 171 0 1900
64113122 vjvjain0 D Nov. 2, 2019, 7:30 p.m. OK Java 8 TESTS 53 171 0 1900
64063221 bluesky111 D Nov. 2, 2019, 4:47 a.m. OK Java 8 TESTS 53 171 0 1900
64031546 StayAwayFromBitches D Nov. 1, 2019, 4:15 p.m. OK Java 8 TESTS 53 171 0 1900
64091817 YJq D Nov. 2, 2019, 12:51 p.m. OK Java 8 TESTS 53 186 0 1900
64315148 polyakoff D Nov. 5, 2019, 1:54 p.m. OK Java 8 TESTS 54 187 0 1900
64069092 goyalnikhil064 D Nov. 2, 2019, 6:48 a.m. OK Java 8 TESTS 53 202 0 1900
64189925 chojh1222 D Nov. 4, 2019, 7:16 a.m. OK Java 8 TESTS 54 218 0 1900
64082679 rmyak D Nov. 2, 2019, 10:39 a.m. OK Java 8 TESTS 53 218 0 1900
64105394 Spheniscine D Nov. 2, 2019, 4:26 p.m. OK Kotlin TESTS 53 202 204800 1900
64104857 Spheniscine D Nov. 2, 2019, 4:14 p.m. OK Kotlin TESTS 53 217 204800 1900
64025327 claw88 D Nov. 1, 2019, 3:52 p.m. OK Mono C# TESTS 53 139 1126400 1900
64278092 camypaper D Nov. 4, 2019, 11:13 p.m. OK Mono C# TESTS 54 156 33484800 1900
64021601 Yupiteru D Nov. 1, 2019, 3:40 p.m. OK Mono C# TESTS 53 217 172032000 1900
64514007 tomomo2b2 D Nov. 8, 2019, 9:57 a.m. OK Mono C# TESTS 54 280 103526400 1900
64513574 tomomo2b2 D Nov. 8, 2019, 9:46 a.m. OK Mono C# TESTS 54 404 156160000 1900
64024770 plasma-effect D Nov. 1, 2019, 3:50 p.m. OK Mono C# TESTS 53 982 57753600 1900
66699500 vjudge3 D Dec. 12, 2019, 2:21 p.m. OK MS C++ TESTS 54 61 102400 1900
64313521 vjudge1 D Nov. 5, 2019, 1:27 p.m. OK MS C++ TESTS 54 61 32358400 1900
66635749 vjudge2 D Dec. 11, 2019, 12:51 p.m. OK MS C++ TESTS 54 109 102400 1900
64155204 vjudge2 D Nov. 3, 2019, 12:36 p.m. OK MS C++ TESTS 54 295 64512000 1900
66715405 vjudge4 D Dec. 12, 2019, 3:11 p.m. OK MS C++ TESTS 54 343 95846400 1900
66298248 vjudge1 D Dec. 5, 2019, 5:46 a.m. OK MS C++ TESTS 54 343 123904000 1900
64025417 tarattata1 D Nov. 1, 2019, 3:52 p.m. OK MS C++ TESTS 53 358 63590400 1900
66972458 vjudge3 D Dec. 15, 2019, 1:37 p.m. OK MS C++ TESTS 54 358 95846400 1900
66748618 vjudge5 D Dec. 13, 2019, 4:35 a.m. OK MS C++ TESTS 54 436 64819200 1900
66749566 vjudge5 D Dec. 13, 2019, 5:11 a.m. OK MS C++ TESTS 54 436 64921600 1900
64027096 TAImatem D Nov. 1, 2019, 3:58 p.m. OK MS C++ 2017 TESTS 53 61 614400 1900
64041929 D9RS D Nov. 1, 2019, 6:08 p.m. OK MS C++ 2017 TESTS 53 62 102400 1900
66700192 Jimmyokok D Dec. 12, 2019, 2:23 p.m. OK MS C++ 2017 TESTS 54 62 102400 1900
64025828 ndhp2000 D Nov. 1, 2019, 3:54 p.m. OK MS C++ 2017 TESTS 53 62 409600 1900
64186310 MIG29 D Nov. 4, 2019, 5:22 a.m. OK MS C++ 2017 TESTS 54 77 102400 1900
64058481 Y_is_sunshine D Nov. 2, 2019, 2:39 a.m. OK MS C++ 2017 TESTS 53 77 9625600 1900
64703697 Koropok D Nov. 11, 2019, 3:40 p.m. OK MS C++ 2017 TESTS 54 78 307200 1900
64033979 taekop D Nov. 1, 2019, 4:25 p.m. OK MS C++ 2017 TESTS 53 171 64000000 1900
66822000 vjudge5 D Dec. 14, 2019, 7:42 a.m. OK MS C++ 2017 TESTS 54 217 64000000 1900
64292340 taekop D Nov. 5, 2019, 7:29 a.m. OK MS C++ 2017 TESTS 54 233 64000000 1900
64143112 pajenegod D Nov. 3, 2019, 9:05 a.m. OK PyPy 2 TESTS 54 295 34508800 1900
64584541 zdbtxdy D Nov. 9, 2019, 1 p.m. OK PyPy 2 TESTS 54 296 34406400 1900
64589700 zdbtxdy D Nov. 9, 2019, 2:22 p.m. OK PyPy 2 TESTS 54 358 35020800 1900
64142879 pajenegod D Nov. 3, 2019, 9:01 a.m. OK PyPy 2 TESTS 54 467 36147200 1900
64040866 bcollet D Nov. 1, 2019, 5:52 p.m. OK PyPy 2 TESTS 53 1591 226508800 1900
64025178 pajenegod D Nov. 1, 2019, 3:51 p.m. OK PyPy 2 TESTS 53 1700 87244800 1900
64587023 zdbtxdy D Nov. 9, 2019, 1:37 p.m. OK PyPy 2 TESTS 54 1996 132915200 1900
64314809 takakin D Nov. 5, 2019, 1:48 p.m. OK PyPy 3 TESTS 54 389 9318400 1900
64314403 takakin D Nov. 5, 2019, 1:41 p.m. OK PyPy 3 TESTS 54 420 9523200 1900
64046681 mitribunskiy D Nov. 1, 2019, 7:42 p.m. OK PyPy 3 TESTS 53 421 7270400 1900
64315062 takakin D Nov. 5, 2019, 1:53 p.m. OK PyPy 3 TESTS 54 421 9932800 1900
64265407 yfo D Nov. 4, 2019, 5:17 p.m. OK PyPy 3 TESTS 54 468 9011200 1900
64097598 deadguy D Nov. 2, 2019, 2:23 p.m. OK PyPy 3 TESTS 53 545 9625600 1900
66265732 cftt D Dec. 4, 2019, 10:24 a.m. OK PyPy 3 TESTS 54 576 9318400 1900
64023056 nagiss D Nov. 1, 2019, 3:44 p.m. OK PyPy 3 TESTS 53 607 9625600 1900
64097438 jkuomcf D Nov. 2, 2019, 2:20 p.m. OK PyPy 3 TESTS 53 608 9728000 1900
64105276 wol D Nov. 2, 2019, 4:23 p.m. OK PyPy 3 TESTS 53 623 10137600 1900
64051295 sansen D Nov. 1, 2019, 9:49 p.m. OK Rust TESTS 53 62 307200 1900
64625070 kobae964 D Nov. 10, 2019, 8:16 a.m. OK Rust TESTS 54 264 50790400 1900
64195056 yuya178 D Nov. 4, 2019, 9:20 a.m. OK Rust TESTS 54 421 51200000 1900
64034913 yakamoto D Nov. 1, 2019, 4:28 p.m. OK Scala TESTS 53 608 0 1900

remove filters

Back to search problems