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 |
---|---|---|---|---|---|---|
1361 | Codeforces Round 647 (Div. 1) - Thanks, Algo Muse! | FINISHED | False | 9000 | 140541899 | June 4, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 8443 ) | A | Johnny and Contribution | PROGRAMMING | constructive algorithms graphs greedy sortings | 1700 |
B"Today Johnny wants to increase his contribution. His plan assumes writing n blogs. One blog covers one topic, but one topic can be covered by many blogs. Moreover, some blogs have references to each other. Each pair of blogs that are connected by a reference has to cover different topics because otherwise, the readers can notice that they are split just for more contribution. Set of blogs and bidirectional references between some pairs of them is called blogs network. There are n different topics, numbered from 1 to n sorted by Johnny's knowledge. The structure of the blogs network is already prepared. Now Johnny has to write the blogs in some order. He is lazy, so each time before writing a blog, he looks at it's already written neighbors (the blogs referenced to current one) and chooses the topic with the smallest number which is not covered by neighbors. It's easy to see that this strategy will always allow him to choose a topic because there are at most n - 1 neighbors. For example, if already written neighbors of the current blog have topics number 1 , 3 , 1 , 5 , and 2 , Johnny will choose the topic number 4 for the current blog, because topics number 1 , 2 and 3 are already covered by neighbors and topic number 4 isn't covered. As a good friend, you have done some research and predicted the best topic for each blog. Can you tell Johnny, in which order he has to write the blogs, so that his strategy produces the topic assignment chosen by you? The first line contains two integers n (1 <= q n <= q 5 cdot 10^5) and m (0 <= q m <= q 5 cdot 10^5) -- the number of blogs and references, respectively. Each of the following m lines contains two integers a and b ( a neq b ; 1 <= q a, b <= q n ), which mean that there is a reference between blogs a and b . It's guaranteed that the graph doesn't contain multiple "... |
Codeforces Round #647 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
82493858 | Gassa | A | June 4, 2020, 2:42 p.m. | OK | D | TESTS | 41 | 873 | 43417600 | 1700 | |
82583512 | 2018LZY | A | June 5, 2020, 12:10 a.m. | OK | GNU C++11 | TESTS | 43 | 140 | 20070400 | 1700 | |
82498956 | 01191020csl | A | June 4, 2020, 2:49 p.m. | OK | GNU C++11 | TESTS | 41 | 155 | 24780800 | 1700 | |
82500309 | Binary_Search_Tree | A | June 4, 2020, 2:51 p.m. | OK | GNU C++11 | TESTS | 41 | 171 | 28057600 | 1700 | |
82495308 | forxen | A | June 4, 2020, 2:44 p.m. | OK | GNU C++11 | TESTS | 41 | 202 | 16588800 | 1700 | |
82581886 | hanyuwei | A | June 4, 2020, 10:57 p.m. | OK | GNU C++11 | TESTS | 43 | 202 | 19865600 | 1700 | |
82632912 | suxxsfe | A | June 5, 2020, 1:11 p.m. | OK | GNU C++11 | TESTS | 45 | 202 | 28774400 | 1700 | |
82612142 | CaoRui2019 | A | June 5, 2020, 8:29 a.m. | OK | GNU C++11 | TESTS | 44 | 217 | 72192000 | 1700 | |
82520607 | jiedai | A | June 4, 2020, 3:21 p.m. | OK | GNU C++11 | TESTS | 41 | 233 | 30822400 | 1700 | |
82503678 | xyz32768 | A | June 4, 2020, 2:55 p.m. | OK | GNU C++11 | TESTS | 41 | 234 | 18534400 | 1700 | |
82496031 | OYJason | A | June 4, 2020, 2:45 p.m. | OK | GNU C++11 | TESTS | 41 | 249 | 18022400 | 1700 | |
83175410 | Linkus | A | June 8, 2020, 11:29 p.m. | OK | GNU C++14 | TESTS | 45 | 390 | 30105600 | 1700 | |
82497187 | Tomukaro | A | June 4, 2020, 2:47 p.m. | OK | GNU C++14 | TESTS | 41 | 420 | 112230400 | 1700 | |
82605432 | ConfusedBerzerk | A | June 5, 2020, 7:08 a.m. | OK | GNU C++14 | TESTS | 44 | 483 | 30515200 | 1700 | |
82585555 | 913887524gsd | A | June 5, 2020, 1:18 a.m. | OK | GNU C++14 | TESTS | 43 | 483 | 48742400 | 1700 | |
82592473 | Holmes7 | A | June 5, 2020, 4:01 a.m. | OK | GNU C++14 | TESTS | 43 | 514 | 21708800 | 1700 | |
82606372 | civin1128 | A | June 5, 2020, 7:21 a.m. | OK | GNU C++14 | TESTS | 44 | 514 | 24985600 | 1700 | |
82493617 | PedyD | A | June 4, 2020, 2:41 p.m. | OK | GNU C++14 | TESTS | 41 | 514 | 32256000 | 1700 | |
82591522 | CSQ31 | A | June 5, 2020, 3:43 a.m. | OK | GNU C++14 | TESTS | 43 | 514 | 32460800 | 1700 | |
83344253 | EmptySoulist | A | June 11, 2020, 2:53 a.m. | OK | GNU C++14 | TESTS | 45 | 529 | 20275200 | 1700 | |
82507093 | shashanka136 | A | June 4, 2020, 3 p.m. | OK | GNU C++14 | TESTS | 41 | 529 | 23244800 | 1700 | |
82495719 | LayCurse | A | June 4, 2020, 2:45 p.m. | OK | GNU C++17 | TESTS | 41 | 139 | 112537600 | 1700 | |
83356122 | _andyli | A | June 11, 2020, 6:57 a.m. | OK | GNU C++17 | TESTS | 45 | 327 | 18432000 | 1700 | |
82508009 | limbo.null | A | June 4, 2020, 3:01 p.m. | OK | GNU C++17 | TESTS | 41 | 343 | 36352000 | 1700 | |
82894148 | nickluo | A | June 7, 2020, 11:28 p.m. | OK | GNU C++17 | TESTS | 45 | 358 | 23347200 | 1700 | |
82496947 | liouzhou_101 | A | June 4, 2020, 2:46 p.m. | OK | GNU C++17 | TESTS | 41 | 358 | 28876800 | 1700 | |
82616559 | dijks | A | June 5, 2020, 9:24 a.m. | OK | GNU C++17 | TESTS | 44 | 452 | 16076800 | 1700 | |
82500665 | 156250lcy | A | June 4, 2020, 2:51 p.m. | OK | GNU C++17 | TESTS | 41 | 467 | 24268800 | 1700 | |
82494886 | 9baka_Cirno | A | June 4, 2020, 2:43 p.m. | OK | GNU C++17 | TESTS | 41 | 467 | 40345600 | 1700 | |
82513304 | iamhpp | A | June 4, 2020, 3:09 p.m. | OK | GNU C++17 | TESTS | 41 | 467 | 40755200 | 1700 | |
82508971 | Dark_Phoenix | A | June 4, 2020, 3:02 p.m. | OK | GNU C++17 | TESTS | 41 | 483 | 18227200 | 1700 | |
82494389 | yosupo | A | June 4, 2020, 2:43 p.m. | OK | GNU C++17 (64) | TESTS | 41 | 265 | 30515200 | 1700 | |
82691839 | interestingLSY | A | June 6, 2020, 9:33 a.m. | OK | GNU C++17 (64) | TESTS | 45 | 358 | 35020800 | 1700 | |
82495934 | Egor | A | June 4, 2020, 2:45 p.m. | OK | GNU C++17 (64) | TESTS | 41 | 373 | 41881600 | 1700 | |
82888001 | aurinegro | A | June 7, 2020, 8:24 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 451 | 31744000 | 1700 | |
83178406 | zjsdut | A | June 9, 2020, 1:34 a.m. | OK | GNU C++17 (64) | TESTS | 45 | 452 | 26624000 | 1700 | |
82571507 | tyler | A | June 4, 2020, 7:03 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 452 | 28569600 | 1700 | |
82495383 | gabrielwu | A | June 4, 2020, 2:44 p.m. | OK | GNU C++17 (64) | TESTS | 41 | 452 | 30515200 | 1700 | |
82496241 | FlowerOfSorrow | A | June 4, 2020, 2:45 p.m. | OK | GNU C++17 (64) | TESTS | 41 | 467 | 26521600 | 1700 | |
82493429 | kort0n | A | June 4, 2020, 2:41 p.m. | OK | GNU C++17 (64) | TESTS | 41 | 467 | 29900800 | 1700 | |
82741631 | neal | A | June 6, 2020, 11:55 p.m. | OK | GNU C++17 (64) | TESTS | 45 | 468 | 28569600 | 1700 | |
82666298 | meooow | A | June 6, 2020, 12:15 a.m. | OK | Go | TESTS | 45 | 265 | 35532800 | 1700 | |
82666332 | meooow | A | June 6, 2020, 12:16 a.m. | OK | Go | TESTS | 45 | 327 | 35532800 | 1700 | |
82665960 | meooow | A | June 5, 2020, 11:57 p.m. | OK | Go | TESTS | 45 | 327 | 42598400 | 1700 | |
82665950 | meooow | A | June 5, 2020, 11:56 p.m. | OK | Go | TESTS | 45 | 327 | 42598400 | 1700 | |
82665636 | meooow | A | June 5, 2020, 11:39 p.m. | OK | Go | TESTS | 45 | 373 | 55910400 | 1700 | |
82663995 | meooow | A | June 5, 2020, 10:16 p.m. | OK | Go | TESTS | 45 | 373 | 55910400 | 1700 | |
82663882 | meooow | A | June 5, 2020, 10:11 p.m. | OK | Go | TESTS | 45 | 405 | 55910400 | 1700 | |
82665556 | meooow | A | June 5, 2020, 11:35 p.m. | OK | Go | TESTS | 45 | 421 | 55910400 | 1700 | |
82663739 | meooow | A | June 5, 2020, 10:05 p.m. | OK | Go | TESTS | 45 | 1809 | 55910400 | 1700 | |
82504407 | uwi | A | June 4, 2020, 2:56 p.m. | OK | Java 11 | TESTS | 41 | 482 | 28160000 | 1700 | |
82584751 | Lewin | A | June 5, 2020, 12:53 a.m. | OK | Java 11 | TESTS | 43 | 997 | 125440000 | 1700 | |
82509682 | PizzaLovers007 | A | June 4, 2020, 3:03 p.m. | OK | Java 11 | TESTS | 41 | 1263 | 109260800 | 1700 | |
82575266 | anhpp | A | June 4, 2020, 7:56 p.m. | OK | Java 11 | TESTS | 43 | 1590 | 159436800 | 1700 | |
82569863 | iceburst | A | June 4, 2020, 6:46 p.m. | OK | Java 8 | TESTS | 41 | 545 | 33177600 | 1700 | |
82596988 | ahmadhoumani | A | June 5, 2020, 5:19 a.m. | OK | Java 8 | TESTS | 43 | 560 | 55705600 | 1700 | |
82497518 | StayAwayFromBitches | A | June 4, 2020, 2:47 p.m. | OK | Java 8 | TESTS | 41 | 576 | 55705600 | 1700 | |
82494703 | cwise | A | June 4, 2020, 2:43 p.m. | OK | Java 8 | TESTS | 41 | 732 | 95129600 | 1700 | |
82494779 | Taran_1407 | A | June 4, 2020, 2:43 p.m. | OK | Java 8 | TESTS | 41 | 733 | 48025600 | 1700 | |
82580649 | DarLam | A | June 4, 2020, 10:05 p.m. | OK | Java 8 | TESTS | 43 | 873 | 23347200 | 1700 | |
82689822 | manishsharmaa__ | A | June 6, 2020, 9 a.m. | OK | Java 8 | TESTS | 45 | 873 | 87347200 | 1700 | |
82585644 | 7dan | A | June 5, 2020, 1:21 a.m. | OK | Java 8 | TESTS | 43 | 936 | 100454400 | 1700 | |
82599137 | tsumit023 | A | June 5, 2020, 5:51 a.m. | OK | Java 8 | TESTS | 43 | 982 | 120524800 | 1700 | |
82690694 | beroul | A | June 6, 2020, 9:14 a.m. | OK | Java 8 | TESTS | 45 | 998 | 133120000 | 1700 | |
82589542 | Spheniscine | A | June 5, 2020, 3:04 a.m. | OK | Kotlin | TESTS | 43 | 873 | 152576000 | 1700 | |
82589103 | Spheniscine | A | June 5, 2020, 2:56 a.m. | OK | Kotlin | TESTS | 43 | 1028 | 152576000 | 1700 | |
82584369 | Spheniscine | A | June 5, 2020, 12:41 a.m. | OK | Kotlin | TESTS | 43 | 1216 | 250060800 | 1700 | |
82507992 | Hakiobo | A | June 4, 2020, 3:01 p.m. | OK | Kotlin | TESTS | 41 | 1294 | 145100800 | 1700 | |
82584196 | Spheniscine | A | June 5, 2020, 12:35 a.m. | OK | Kotlin | TESTS | 43 | 1341 | 181862400 | 1700 | |
82525183 | koboshi | A | June 4, 2020, 3:30 p.m. | OK | Kotlin | TESTS | 41 | 1372 | 156467200 | 1700 | |
82493191 | Tlatoani | A | June 4, 2020, 2:41 p.m. | OK | Kotlin | TESTS | 41 | 1700 | 142950400 | 1700 | |
82504721 | elizarov | A | June 4, 2020, 2:56 p.m. | OK | Kotlin | TESTS | 41 | 1716 | 108032000 | 1700 | |
82496234 | keymoon | A | June 4, 2020, 2:45 p.m. | OK | Mono C# | TESTS | 41 | 1574 | 74240000 | 1700 | |
82544357 | Yupiteru | A | June 4, 2020, 4:16 p.m. | OK | Mono C# | TESTS | 41 | 1606 | 97382400 | 1700 | |
82578387 | lxhgww | A | June 4, 2020, 9:02 p.m. | OK | MS C++ | TESTS | 43 | 530 | 28467200 | 1700 | |
82499077 | Seyaua | A | June 4, 2020, 2:49 p.m. | OK | MS C++ 2017 | TESTS | 41 | 717 | 24678400 | 1700 | |
82495548 | Vedensky | A | June 4, 2020, 2:44 p.m. | OK | MS C++ 2017 | TESTS | 41 | 732 | 20889600 | 1700 | |
82499581 | P___ | A | June 4, 2020, 2:50 p.m. | OK | MS C++ 2017 | TESTS | 41 | 732 | 28774400 | 1700 | |
82497870 | alex_36 | A | June 4, 2020, 2:47 p.m. | OK | MS C++ 2017 | TESTS | 41 | 779 | 26624000 | 1700 | |
82513771 | tarattata1 | A | June 4, 2020, 3:10 p.m. | OK | MS C++ 2017 | TESTS | 41 | 857 | 29388800 | 1700 | |
82740143 | reikiriyama | A | June 6, 2020, 10:32 p.m. | OK | MS C++ 2017 | TESTS | 45 | 1481 | 32563200 | 1700 | |
82543636 | Pasqual45 | A | June 4, 2020, 4:14 p.m. | OK | MS C++ 2017 | TESTS | 41 | 1575 | 41676800 | 1700 | |
82578874 | Staticity | A | June 4, 2020, 9:15 p.m. | OK | MS C++ 2017 | TESTS | 43 | 1591 | 20480000 | 1700 | |
82505433 | kupriyanov | A | June 4, 2020, 2:57 p.m. | OK | MS C++ 2017 | TESTS | 41 | 1591 | 30105600 | 1700 | |
82698780 | getN1ght | A | June 6, 2020, 11:18 a.m. | OK | MS C++ 2017 | TESTS | 45 | 1606 | 20992000 | 1700 | |
83113448 | bcollet | A | June 8, 2020, 8:11 a.m. | OK | PyPy 2 | TESTS | 45 | 1653 | 75878400 | 1700 | |
83139369 | keep__calm | A | June 8, 2020, 1:30 p.m. | OK | PyPy 3 | TESTS | 45 | 1559 | 104960000 | 1700 | |
82619189 | goalfix | A | June 5, 2020, 9:59 a.m. | OK | PyPy 3 | TESTS | 45 | 1621 | 104038400 | 1700 | |
82582019 | taoboquan1 | A | June 4, 2020, 11:04 p.m. | OK | PyPy 3 | TESTS | 43 | 1747 | 99942400 | 1700 | |
83374302 | YMSeah | A | June 11, 2020, 11:09 a.m. | OK | PyPy 3 | TESTS | 45 | 1762 | 109670400 | 1700 | |
82517851 | Shee11 | A | June 4, 2020, 3:16 p.m. | OK | PyPy 3 | TESTS | 41 | 1762 | 118067200 | 1700 | |
82501656 | titia | A | June 4, 2020, 2:52 p.m. | OK | PyPy 3 | TESTS | 41 | 1793 | 101683200 | 1700 | |
82501451 | nebocco | A | June 4, 2020, 2:52 p.m. | OK | PyPy 3 | TESTS | 41 | 1840 | 91750400 | 1700 | |
82539332 | mkawa2 | A | June 4, 2020, 4:03 p.m. | OK | PyPy 3 | TESTS | 41 | 1840 | 127283200 | 1700 | |
82530798 | pineriver | A | June 4, 2020, 3:42 p.m. | OK | PyPy 3 | TESTS | 41 | 1855 | 111104000 | 1700 | |
83374664 | YMSeah | A | June 11, 2020, 11:14 a.m. | OK | PyPy 3 | TESTS | 45 | 1856 | 105164800 | 1700 | |
82669046 | user202729_ | A | June 6, 2020, 2:20 a.m. | OK | Rust | TESTS | 45 | 358 | 23142400 | 1700 | |
82494686 | sansen | A | June 4, 2020, 2:43 p.m. | OK | Rust | TESTS | 41 | 436 | 40550400 | 1700 | |
82535133 | EbTech | A | June 4, 2020, 3:52 p.m. | OK | Rust | TESTS | 41 | 452 | 19148800 | 1700 | |
82667470 | pinnellisumanth1234 | A | June 6, 2020, 1:16 a.m. | OK | Rust | TESTS | 45 | 717 | 31436800 | 1700 | |
82667358 | kobae964 | A | June 6, 2020, 1:10 a.m. | OK | Rust | TESTS | 45 | 763 | 31129600 | 1700 | |
82642048 | kobae964 | A | June 5, 2020, 3:09 p.m. | OK | Rust | TESTS | 45 | 857 | 35225600 | 1700 |
Back to search problems