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 |
---|---|---|---|---|---|---|
1369 | Codeforces Round 652 (Div. 2) | FINISHED | False | 7200 | 138902099 | June 23, 2020, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2279 ) | E | DeadLee | PROGRAMMING | constructive algorithms data structures graphs greedy implementation sortings | 2400 |
B"Lee bought some food for dinner time, but Lee's friends eat dinner in a deadly way. Lee is so scared, he doesn't want to die, at least not before seeing Online IOI 2020... There are n different types of food and m Lee's best friends. Lee has w_i plates of the i -th type of food and each friend has two different favorite types of food: the i -th friend's favorite types of food are x_i and y_i ( x_i ne y_i ). Lee will start calling his friends one by one. Whoever is called will go to the kitchen and will try to eat one plate of each of his favorite food types. Each of the friends will go to the kitchen exactly once. The only problem is the following: if a friend will eat at least one plate of food (in total) then he will be harmless. But if there is nothing left for him to eat (neither x_i nor y_i ), he will eat Lee instead x _ x . Lee can choose the order of friends to call, so he'd like to determine if he can survive dinner or not. Also, he'd like to know the order itself. The first line contains two integers n and m ( 2 <= n <= 10^5 ; 1 <= m <= 2 cdot 10^5 ) -- the number of different food types and the number of Lee's friends. The second line contains n integers w_1, w_2, ldots, w_n ( 0 <= w_i <= 10^6 ) -- the number of plates of each food type. The i -th line of the next m lines contains two integers x_i and y_i ( 1 <= x_i, y_i <= n ; x_i ne y_i ) -- the favorite types of food of the i -th friend. If Lee can survive the dinner then print ALIVE (case insensitive), otherwise print DEAD (case insensitive). Also, if he can survive the dinner, print the order Lee should call friends. If there are multiple valid orders, print any of them. In the first example, any of the following orders of friends are correct : [1, 3, 2] , [3, 1, 2] , [2, 3, 1] , [3, 2, 1] . In the second exampl"... |
Codeforces Round #652 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
84802501 | rainboy | E | June 23, 2020, 3:26 p.m. | OK | GNU C11 | TESTS | 54 | 623 | 11366400 | 2400 | |
84856925 | Bill_Benation | E | June 24, 2020, 5:52 a.m. | OK | GNU C++11 | TESTS | 54 | 78 | 12492800 | 2400 | |
84816566 | Wall_breaker | E | June 23, 2020, 4:04 p.m. | OK | GNU C++11 | TESTS | 54 | 78 | 18841600 | 2400 | |
84843960 | jhknmj | E | June 24, 2020, 12:36 a.m. | OK | GNU C++11 | TESTS | 54 | 78 | 64716800 | 2400 | |
84847681 | DWAE86 | E | June 24, 2020, 2:45 a.m. | OK | GNU C++11 | TESTS | 54 | 93 | 16588800 | 2400 | |
84843231 | yuyue | E | June 24, 2020, 12:11 a.m. | OK | GNU C++11 | TESTS | 54 | 93 | 23142400 | 2400 | |
84802992 | yajnun | E | June 23, 2020, 3:27 p.m. | OK | GNU C++11 | TESTS | 54 | 93 | 24473600 | 2400 | |
84804072 | Random_chen | E | June 23, 2020, 3:30 p.m. | OK | GNU C++11 | TESTS | 54 | 93 | 41164800 | 2400 | |
84806758 | npng | E | June 23, 2020, 3:37 p.m. | OK | GNU C++11 | TESTS | 54 | 124 | 12492800 | 2400 | |
84809300 | DarkoLoveRuby | E | June 23, 2020, 3:44 p.m. | OK | GNU C++11 | TESTS | 54 | 124 | 13004800 | 2400 | |
84849781 | JJLeo | E | June 24, 2020, 3:38 a.m. | OK | GNU C++11 | TESTS | 54 | 124 | 14028800 | 2400 | |
84829252 | Leppin | E | June 23, 2020, 6:31 p.m. | OK | GNU C++14 | TESTS | 54 | 124 | 13414400 | 2400 | |
84807161 | KonomoriKanon | E | June 23, 2020, 3:38 p.m. | OK | GNU C++14 | TESTS | 54 | 124 | 14028800 | 2400 | |
84826141 | misir | E | June 23, 2020, 5:51 p.m. | OK | GNU C++14 | TESTS | 54 | 139 | 14336000 | 2400 | |
84844490 | socho | E | June 24, 2020, 12:58 a.m. | OK | GNU C++14 | TESTS | 54 | 140 | 13107200 | 2400 | |
84855695 | xwd456 | E | June 24, 2020, 5:34 a.m. | OK | GNU C++14 | TESTS | 54 | 140 | 13209600 | 2400 | |
84848339 | Yoluok | E | June 24, 2020, 3:02 a.m. | OK | GNU C++14 | TESTS | 54 | 140 | 39424000 | 2400 | |
84830552 | AD_3572 | E | June 23, 2020, 6:49 p.m. | OK | GNU C++14 | TESTS | 54 | 155 | 11776000 | 2400 | |
84828993 | danya090699 | E | June 23, 2020, 6:27 p.m. | OK | GNU C++14 | TESTS | 54 | 155 | 13107200 | 2400 | |
84799276 | jo_on | E | June 23, 2020, 3:18 p.m. | OK | GNU C++14 | TESTS | 54 | 155 | 14950400 | 2400 | |
84813125 | antguz | E | June 23, 2020, 3:55 p.m. | OK | GNU C++14 | TESTS | 54 | 155 | 15462400 | 2400 | |
84806395 | liouzhou_101 | E | June 23, 2020, 3:36 p.m. | OK | GNU C++17 | TESTS | 54 | 93 | 27648000 | 2400 | |
84802417 | Austin_Griffin2 | E | June 23, 2020, 3:26 p.m. | OK | GNU C++17 | TESTS | 54 | 124 | 11264000 | 2400 | |
84829274 | mt1802103015 | E | June 23, 2020, 6:31 p.m. | OK | GNU C++17 | TESTS | 54 | 139 | 14745600 | 2400 | |
84853135 | prateek3110 | E | June 24, 2020, 4:53 a.m. | OK | GNU C++17 | TESTS | 54 | 139 | 14745600 | 2400 | |
84821167 | namanbansal013 | E | June 23, 2020, 4:57 p.m. | OK | GNU C++17 | TESTS | 54 | 139 | 15564800 | 2400 | |
84804797 | natsugiri | E | June 23, 2020, 3:32 p.m. | OK | GNU C++17 | TESTS | 54 | 139 | 16384000 | 2400 | |
84810094 | ShJ | E | June 23, 2020, 3:46 p.m. | OK | GNU C++17 | TESTS | 54 | 140 | 12083200 | 2400 | |
84828897 | sayeedt | E | June 23, 2020, 6:26 p.m. | OK | GNU C++17 | TESTS | 54 | 140 | 12492800 | 2400 | |
84848757 | yzh1505 | E | June 24, 2020, 3:13 a.m. | OK | GNU C++17 | TESTS | 54 | 140 | 15360000 | 2400 | |
84840674 | arshiamoeini | E | June 23, 2020, 10:20 p.m. | OK | GNU C++17 | TESTS | 54 | 140 | 16896000 | 2400 | |
84855512 | pao214 | E | June 24, 2020, 5:31 a.m. | OK | GNU C++17 (64) | TESTS | 54 | 109 | 14028800 | 2400 | |
84844349 | heyuhhh | E | June 24, 2020, 12:52 a.m. | OK | GNU C++17 (64) | TESTS | 54 | 109 | 16691200 | 2400 | |
84850671 | thtsshz_bgwrswh | E | June 24, 2020, 3:59 a.m. | OK | GNU C++17 (64) | TESTS | 54 | 124 | 15974400 | 2400 | |
84780191 | jiangly | E | June 23, 2020, 2:40 p.m. | OK | GNU C++17 (64) | TESTS | 54 | 124 | 17408000 | 2400 | |
84832360 | errorgorn | E | June 23, 2020, 7:17 p.m. | OK | GNU C++17 (64) | TESTS | 54 | 124 | 17817600 | 2400 | |
84822107 | haruki_K | E | June 23, 2020, 5:06 p.m. | OK | GNU C++17 (64) | TESTS | 54 | 124 | 28262400 | 2400 | |
84786383 | neal | E | June 23, 2020, 2:51 p.m. | OK | GNU C++17 (64) | TESTS | 54 | 139 | 15974400 | 2400 | |
84778667 | Geothermal | E | June 23, 2020, 2:38 p.m. | OK | GNU C++17 (64) | TESTS | 54 | 139 | 16896000 | 2400 | |
84791942 | Marckess | E | June 23, 2020, 3:02 p.m. | OK | GNU C++17 (64) | TESTS | 54 | 139 | 19046400 | 2400 | |
84856173 | shajal | E | June 24, 2020, 5:41 a.m. | OK | GNU C++17 (64) | TESTS | 54 | 139 | 19456000 | 2400 | |
84803431 | uwi | E | June 23, 2020, 3:29 p.m. | OK | Java 11 | TESTS | 54 | 327 | 42700800 | 2400 | |
84819165 | fivefourthreeone | E | June 23, 2020, 4:42 p.m. | OK | Java 11 | TESTS | 54 | 374 | 67788800 | 2400 | |
84802305 | SecondThread | E | June 23, 2020, 3:26 p.m. | OK | Java 11 | TESTS | 54 | 530 | 41984000 | 2400 | |
84847640 | PizzaLovers007 | E | June 24, 2020, 2:44 a.m. | OK | Java 11 | TESTS | 54 | 530 | 65945600 | 2400 | |
84836221 | dusty.and.rusty | E | June 23, 2020, 8:24 p.m. | OK | Java 11 | TESTS | 54 | 920 | 97792000 | 2400 | |
84840978 | spar5h | E | June 23, 2020, 10:32 p.m. | OK | Java 8 | TESTS | 54 | 327 | 61337600 | 2400 | |
84814746 | barakraganosungam | E | June 23, 2020, 4 p.m. | OK | Java 8 | TESTS | 54 | 436 | 56320000 | 2400 | |
84797849 | procrastinate7 | E | June 23, 2020, 3:15 p.m. | OK | Java 8 | TESTS | 54 | 499 | 68608000 | 2400 | |
84844875 | MagentaCobra | E | June 24, 2020, 1:14 a.m. | OK | Java 8 | TESTS | 54 | 514 | 69324800 | 2400 | |
84844835 | JHope | E | June 24, 2020, 1:12 a.m. | OK | Java 8 | TESTS | 54 | 514 | 69324800 | 2400 | |
84825170 | KharYusuf | E | June 23, 2020, 5:40 p.m. | OK | Java 8 | TESTS | 54 | 655 | 95334400 | 2400 | |
84824369 | robinz62 | E | June 23, 2020, 5:31 p.m. | OK | Java 8 | TESTS | 54 | 811 | 82534400 | 2400 | |
84799368 | Hakiobo | E | June 23, 2020, 3:18 p.m. | OK | Kotlin | TESTS | 54 | 451 | 64409600 | 2400 | |
84793001 | MikasaAckermann | E | June 23, 2020, 3:04 p.m. | OK | Kotlin | TESTS | 54 | 873 | 82944000 | 2400 | |
84849593 | EmK | E | June 24, 2020, 3:33 a.m. | OK | Mono C# | TESTS | 54 | 186 | 33689600 | 2400 | |
84849549 | EmK | E | June 24, 2020, 3:32 a.m. | OK | Mono C# | TESTS | 54 | 202 | 33689600 | 2400 | |
84827281 | hibatibati | E | June 23, 2020, 6:05 p.m. | OK | Mono C# | TESTS | 54 | 467 | 36454400 | 2400 | |
84812720 | Yupiteru | E | June 23, 2020, 3:54 p.m. | OK | Mono C# | TESTS | 54 | 561 | 65024000 | 2400 | |
84803395 | pichulia | E | June 23, 2020, 3:28 p.m. | OK | MS C++ 2017 | TESTS | 54 | 202 | 21708800 | 2400 | |
84841437 | xsc | E | June 23, 2020, 10:52 p.m. | OK | MS C++ 2017 | TESTS | 54 | 389 | 15052800 | 2400 | |
84813756 | AnnSuperstar | E | June 23, 2020, 3:57 p.m. | OK | MS C++ 2017 | TESTS | 54 | 483 | 20070400 | 2400 | |
84821010 | zsmith3 | E | June 23, 2020, 4:56 p.m. | OK | MS C++ 2017 | TESTS | 54 | 717 | 28057600 | 2400 | |
84811211 | kupriyanov | E | June 23, 2020, 3:50 p.m. | OK | MS C++ 2017 | TESTS | 54 | 810 | 48742400 | 2400 | |
84800146 | pajenegod | E | June 23, 2020, 3:20 p.m. | OK | PyPy 2 | TESTS | 54 | 343 | 52940800 | 2400 | |
84822443 | chinerist | E | June 23, 2020, 5:10 p.m. | OK | PyPy 3 | TESTS | 54 | 701 | 45977600 | 2400 | |
84820896 | mkawa2 | E | June 23, 2020, 4:55 p.m. | OK | PyPy 3 | TESTS | 54 | 794 | 55398400 | 2400 | |
84823921 | Bruteforceman | E | June 23, 2020, 5:26 p.m. | OK | PyPy 3 | TESTS | 54 | 951 | 60006400 | 2400 | |
84821798 | sh1194 | E | June 23, 2020, 5:03 p.m. | OK | PyPy 3 | TESTS | 54 | 1153 | 60723200 | 2400 | |
84821490 | sh1194 | E | June 23, 2020, 5 p.m. | OK | PyPy 3 | TESTS | 54 | 1185 | 60825600 | 2400 | |
84821189 | sh1194 | E | June 23, 2020, 4:58 p.m. | OK | PyPy 3 | TESTS | 54 | 1185 | 60928000 | 2400 | |
84822034 | sh1194 | E | June 23, 2020, 5:05 p.m. | OK | PyPy 3 | TESTS | 54 | 1232 | 60416000 | 2400 | |
84820628 | sh1194 | E | June 23, 2020, 4:53 p.m. | OK | PyPy 3 | TESTS | 54 | 1232 | 60416000 | 2400 | |
84820817 | sh1194 | E | June 23, 2020, 4:55 p.m. | OK | PyPy 3 | TESTS | 54 | 1232 | 60518400 | 2400 | |
84822076 | sh1194 | E | June 23, 2020, 5:06 p.m. | OK | PyPy 3 | TESTS | 54 | 1247 | 60620800 | 2400 | |
84805033 | sansen | E | June 23, 2020, 3:33 p.m. | OK | Rust | TESTS | 54 | 109 | 17920000 | 2400 | |
84808166 | cotton100pc | E | June 23, 2020, 3:41 p.m. | OK | Rust | TESTS | 54 | 139 | 15769600 | 2400 | |
84832958 | gepardo | E | June 23, 2020, 7:26 p.m. | OK | Rust | TESTS | 54 | 155 | 16384000 | 2400 | |
84837836 | pandrei | E | June 23, 2020, 8:58 p.m. | OK | Rust | TESTS | 54 | 187 | 17612800 | 2400 | |
84806322 | robostac | E | June 23, 2020, 3:36 p.m. | OK | Rust | TESTS | 54 | 202 | 20070400 | 2400 |
Back to search problems