Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + 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
1209 Codeforces Round 584 - Dasha Code Championship - Elimination Round (rated, open for everyone, Div. 1 + Div. 2) FINISHED False 9000 168972887 Sept. 14, 2019, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1200 ) F Koala and Notebook PROGRAMMING data structures dfs and similar graphs shortest paths strings trees 2600

B"Koala Land consists of m bidirectional roads connecting n cities. The roads are numbered from 1 to m by order in input. It is guaranteed, that one can reach any city from every other city. Koala starts traveling from city 1 . Whenever he travels on a road, he writes its number down in his notebook. He doesn't put spaces between the numbers, so they all get concatenated into a single number. Before embarking on his trip, Koala is curious about the resulting number for all possible destinations. For each possible destination, what is the smallest number he could have written for it? Since these numbers may be quite large, print their remainders modulo 10^9+7 . Please note, that you need to compute the remainder of the minimum possible number, not the minimum possible remainder. The first line contains two integers n and m ( 2 <= n <= 10^5, n - 1 <= m <= 10^5 ), the number of cities and the number of roads, respectively. The i -th of the following m lines contains integers x_i and y_i ( 1 <= x_i, y_i <= n , x_i ne y_i ), representing a bidirectional road between cities x_i and y_i . It is guaranteed, that for any pair of cities there is at most one road connecting them, and that one can reach any city from every other city. Print n - 1 integers, the answer for every city except for the first city. The i -th integer should be equal to the smallest number he could have written for destination i+1 . Since this number may be large, output its remainder modulo 10^9+7 . "...

Tutorials

69791

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60599661 lsmll F Sept. 15, 2019, 7:33 a.m. OK GNU C++11 TESTS 67 124 46284800 2600
61838147 vjudge3 F Oct. 4, 2019, 8:42 a.m. OK GNU C++11 TESTS 67 155 45670400 2600
60663472 yjher F Sept. 16, 2019, 6:31 a.m. OK GNU C++11 TESTS 67 155 273408000 2600
62362660 TimeLimitExceed F Oct. 11, 2019, 12:56 p.m. OK GNU C++11 TESTS 67 156 170086400 2600
60772024 Itst F Sept. 18, 2019, 1:03 p.m. OK GNU C++11 TESTS 67 202 16588800 2600
61808927 vjudge5 F Oct. 4, 2019, 12:36 a.m. OK GNU C++11 TESTS 67 202 61747200 2600
60934115 hotwords F Sept. 20, 2019, 2:42 p.m. OK GNU C++11 TESTS 67 218 38809600 2600
62969622 TimeLimitExceed F Oct. 20, 2019, 6:24 a.m. OK GNU C++11 TESTS 67 218 275763200 2600
60708358 lqs2015 F Sept. 17, 2019, 6:44 a.m. OK GNU C++11 TESTS 67 249 24678400 2600
60939836 Amirnasr F Sept. 20, 2019, 4:40 p.m. OK GNU C++11 TESTS 67 249 32460800 2600
60827750 gina0605 F Sept. 19, 2019, 5:13 a.m. OK GNU C++14 TESTS 67 170 22630400 2600
60575138 Motarack F Sept. 14, 2019, 4:29 p.m. OK GNU C++14 TESTS 65 186 18432000 2600
60574799 Zayin F Sept. 14, 2019, 4:25 p.m. OK GNU C++14 TESTS 65 186 126976000 2600
60757403 kqp F Sept. 18, 2019, 9:35 a.m. OK GNU C++14 TESTS 67 187 95027200 2600
60589459 beginend F Sept. 15, 2019, 12:42 a.m. OK GNU C++14 TESTS 67 202 138035200 2600
60931214 hotwords F Sept. 20, 2019, 1:49 p.m. OK GNU C++14 TESTS 67 217 39014400 2600
60575444 rushcheyo F Sept. 14, 2019, 4:33 p.m. OK GNU C++14 TESTS 65 217 86425600 2600
60568928 ppavic F Sept. 14, 2019, 3:18 p.m. OK GNU C++14 TESTS 65 217 153497600 2600
60578987 sava-cska F Sept. 14, 2019, 5:40 p.m. OK GNU C++14 TESTS 65 218 93696000 2600
60592177 zhangqingqi F Sept. 15, 2019, 2:58 a.m. OK GNU C++14 TESTS 67 218 242073600 2600
60589095 CQzhangyu F Sept. 15, 2019, 12:19 a.m. OK GNU C++17 TESTS 67 187 34713600 2600
60577508 sd0061 F Sept. 14, 2019, 5:09 p.m. OK GNU C++17 TESTS 65 187 81408000 2600
60552616 Anadi F Sept. 14, 2019, 2:08 p.m. OK GNU C++17 TESTS 65 202 63488000 2600
60562858 ko_osaga F Sept. 14, 2019, 2:51 p.m. OK GNU C++17 TESTS 65 202 103628800 2600
60556454 Kurpilyansky F Sept. 14, 2019, 2:23 p.m. OK GNU C++17 TESTS 65 218 15769600 2600
60572355 kdh9949 F Sept. 14, 2019, 3:32 p.m. OK GNU C++17 TESTS 65 218 29388800 2600
60583023 Benq F Sept. 14, 2019, 7:25 p.m. OK GNU C++17 TESTS 67 233 21401600 2600
61037794 huzecong F Sept. 21, 2019, 8:56 p.m. OK GNU C++17 TESTS 67 249 28672000 2600
60588403 saketh F Sept. 14, 2019, 11:32 p.m. OK GNU C++17 TESTS 67 249 32665600 2600
60605349 errorgorn F Sept. 15, 2019, 9:17 a.m. OK GNU C++17 TESTS 67 249 33689600 2600
60655258 smtcoder F Sept. 15, 2019, 10:33 p.m. OK Go TESTS 67 811 63692800 2600
61045435 wir F Sept. 22, 2019, 4:05 a.m. OK Java 8 TESTS 67 358 106700800 2600
60572051 eatmore F Sept. 14, 2019, 3:31 p.m. OK Java 8 TESTS 65 390 41472000 2600
60559141 Petr F Sept. 14, 2019, 2:35 p.m. OK Java 8 TESTS 65 436 106598400 2600
60555856 qwerty787788 F Sept. 14, 2019, 2:21 p.m. OK Java 8 TESTS 65 686 316825600 2600
60582629 uwi F Sept. 14, 2019, 7:14 p.m. OK Java 8 TESTS 67 1013 136089600 2600
63683360 martins F Oct. 28, 2019, 9 p.m. OK Java 8 TESTS 67 1060 163123200 2600
63683516 martins F Oct. 28, 2019, 9:06 p.m. OK Java 8 TESTS 67 1122 163225600 2600
60577131 alexyz F Sept. 14, 2019, 5:01 p.m. OK Java 8 TESTS 65 1247 143974400 2600
60687066 SpargelTarzan F Sept. 16, 2019, 3:50 p.m. OK Java 8 TESTS 67 1403 203878400 2600
60560702 VArtem F Sept. 14, 2019, 2:41 p.m. OK Java 8 TESTS 65 1606 484044800 2600
60662738 Spheniscine F Sept. 16, 2019, 6:04 a.m. OK Kotlin TESTS 67 811 129945600 2600
60663352 Spheniscine F Sept. 16, 2019, 6:26 a.m. OK Kotlin TESTS 67 857 129945600 2600
60659018 Spheniscine F Sept. 16, 2019, 3:01 a.m. OK Kotlin TESTS 67 1044 135680000 2600
60649323 Spheniscine F Sept. 15, 2019, 6:27 p.m. OK Kotlin TESTS 67 1075 133324800 2600
62740532 darnley F Oct. 16, 2019, 7:37 p.m. OK Kotlin TESTS 67 1747 146329600 2600
62740801 darnley F Oct. 16, 2019, 7:41 p.m. OK Kotlin TESTS 67 1778 144793600 2600
62742274 darnley F Oct. 16, 2019, 8:11 p.m. OK Kotlin TESTS 67 1793 141619200 2600
62742515 darnley F Oct. 16, 2019, 8:17 p.m. OK Kotlin TESTS 67 1840 141516800 2600
62742380 darnley F Oct. 16, 2019, 8:14 p.m. OK Kotlin TESTS 67 1840 141516800 2600
62741868 darnley F Oct. 16, 2019, 8:03 p.m. OK Kotlin TESTS 67 1871 141619200 2600
60828350 vjudge5 F Sept. 19, 2019, 5:35 a.m. OK MS C++ TESTS 67 498 210841600 2600
60592329 vjudge5 F Sept. 15, 2019, 3:05 a.m. OK MS C++ TESTS 67 779 372838400 2600
65501816 sansen F Nov. 21, 2019, 7:22 p.m. OK Rust TESTS 67 311 35328000 2600

remove filters

Back to search problems