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 |
---|---|---|---|---|---|---|
1396 | Codeforces Round 666 (Div. 1) | FINISHED | False | 7200 | 133025099 | Aug. 30, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2608 ) | C | Monster Invaders | PROGRAMMING | dp greedy |
B'Ziota found a video game called "Monster Invaders". Similar to every other shooting RPG game, "Monster Invaders" involves killing monsters and bosses with guns. For the sake of simplicity, we only consider two different types of monsters and three different types of guns. Namely, the two types of monsters are: And the three types of guns are: The guns are initially not loaded, and the Ziota can only reload 1 gun at a time. The levels of the game can be considered as an array a_1, a_2, ldots, a_n , in which the i -th stage has a_i normal monsters and 1 boss. Due to the nature of the game, Ziota cannot use the Pistol (the first type of gun) or AWP (the third type of gun) to shoot the boss before killing all of the a_i normal monsters. If Ziota damages the boss but does not kill it immediately, he is forced to move out of the current level to an arbitrary adjacent level (adjacent levels of level i (1 < i < n) are levels i - 1 and i + 1 , the only adjacent level of level 1 is level 2 , the only adjacent level of level n is level n - 1 ). Ziota can also choose to move to an adjacent level at any time. Each move between adjacent levels are managed by portals with d teleportation time. In order not to disrupt the space-time continuum within the game, it is strictly forbidden to reload or shoot monsters during teleportation. Ziota starts the game at level 1. The objective of the game is rather simple, to kill all the bosses in all the levels. He is curious about the minimum time to finish the game (assuming it takes no time to shoot the monsters with a loaded gun and Ziota has infinite ammo on all the three guns). Please help him find this value. The first line of the input contains five integers separated by single spaces: n (2 <= n <= 10^6) -- the number of stages, r_1, r_2, r_3 (1 <= r_1 <= r_2 <= r_3 <= 10^9) -- the reload time of the three guns respe'... |
Codeforces Round #666 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
91414334 | Gassa | C | Aug. 30, 2020, 4:24 p.m. | OK | D | TESTS | 125 | 342 | 87654400 | ||
91432910 | Gassa | C | Aug. 30, 2020, 7:02 p.m. | OK | D | TESTS | 125 | 358 | 87654400 | ||
91445000 | rainboy | C | Aug. 31, 2020, 12:24 a.m. | OK | GNU C11 | TESTS | 126 | 187 | 35840000 | ||
91434341 | npng | C | Aug. 30, 2020, 7:21 p.m. | OK | GNU C++11 | TESTS | 125 | 62 | 23859200 | ||
91391291 | Fuyuki | C | Aug. 30, 2020, 3:40 p.m. | OK | GNU C++11 | TESTS | 125 | 62 | 32153600 | ||
91447584 | Rainbow_sjy | C | Aug. 31, 2020, 1:57 a.m. | OK | GNU C++11 | TESTS | 126 | 77 | 19968000 | ||
91475039 | myx12345 | C | Aug. 31, 2020, 8:58 a.m. | OK | GNU C++11 | TESTS | 126 | 77 | 21708800 | ||
91393130 | juruo1086 | C | Aug. 30, 2020, 3:43 p.m. | OK | GNU C++11 | TESTS | 125 | 77 | 28057600 | ||
91570314 | dingdingsb | C | Sept. 1, 2020, 1:42 p.m. | OK | GNU C++11 | TESTS | 126 | 77 | 28262400 | ||
91474681 | Fuyuki | C | Aug. 31, 2020, 8:52 a.m. | OK | GNU C++11 | TESTS | 126 | 77 | 32051200 | ||
91648759 | Jfeng666 | C | Sept. 2, 2020, 2:20 p.m. | OK | GNU C++11 | TESTS | 126 | 77 | 32051200 | ||
91400149 | lzr_010506 | C | Aug. 30, 2020, 3:56 p.m. | OK | GNU C++11 | TESTS | 125 | 77 | 44134400 | ||
91451936 | Neal20060701 | C | Aug. 31, 2020, 3:36 a.m. | OK | GNU C++11 | TESTS | 126 | 78 | 11878400 | ||
91471945 | MagicSpark | C | Aug. 31, 2020, 8:15 a.m. | OK | GNU C++14 | TESTS | 126 | 93 | 36044800 | ||
91402555 | SidneyUranus | C | Aug. 30, 2020, 4:01 p.m. | OK | GNU C++14 | TESTS | 125 | 202 | 23859200 | ||
91396983 | harinboy | C | Aug. 30, 2020, 3:50 p.m. | OK | GNU C++14 | TESTS | 125 | 233 | 19763200 | ||
91608575 | oipotato | C | Sept. 2, 2020, 3:36 a.m. | OK | GNU C++14 | TESTS | 126 | 249 | 28057600 | ||
91498325 | Mackerel_Pike | C | Aug. 31, 2020, 2:11 p.m. | OK | GNU C++14 | TESTS | 126 | 265 | 20070400 | ||
91380370 | Motarack | C | Aug. 30, 2020, 3:20 p.m. | OK | GNU C++14 | TESTS | 125 | 265 | 23859200 | ||
91683585 | Meple | C | Sept. 3, 2020, 3:09 a.m. | OK | GNU C++14 | TESTS | 126 | 265 | 28057600 | ||
91379956 | Gioto | C | Aug. 30, 2020, 3:19 p.m. | OK | GNU C++14 | TESTS | 125 | 265 | 31846400 | ||
91390152 | KMAASZRAA | C | Aug. 30, 2020, 3:38 p.m. | OK | GNU C++14 | TESTS | 125 | 265 | 31846400 | ||
91383986 | peehs_moorhsum | C | Aug. 30, 2020, 3:27 p.m. | OK | GNU C++14 | TESTS | 125 | 265 | 31846400 | ||
91376027 | LayCurse | C | Aug. 30, 2020, 3:12 p.m. | OK | GNU C++17 | TESTS | 125 | 77 | 37990400 | ||
91413699 | _andyli | C | Aug. 30, 2020, 4:23 p.m. | OK | GNU C++17 | TESTS | 125 | 93 | 28057600 | ||
91495524 | liouzhou_101 | C | Aug. 31, 2020, 1:37 p.m. | OK | GNU C++17 | TESTS | 126 | 93 | 34201600 | ||
91634032 | disangan233 | C | Sept. 2, 2020, 11:05 a.m. | OK | GNU C++17 | TESTS | 126 | 93 | 48537600 | ||
91634491 | disangan233 | C | Sept. 2, 2020, 11:11 a.m. | OK | GNU C++17 | TESTS | 126 | 93 | 48537600 | ||
91389853 | QwertyPi | C | Aug. 30, 2020, 3:37 p.m. | OK | GNU C++17 | TESTS | 125 | 93 | 111104000 | ||
91416368 | luisBah | C | Aug. 30, 2020, 4:28 p.m. | OK | GNU C++17 | TESTS | 125 | 218 | 24064000 | ||
91489404 | Hyperbolic | C | Aug. 31, 2020, 12:19 p.m. | OK | GNU C++17 | TESTS | 126 | 233 | 43827200 | ||
91403589 | 1252351876 | C | Aug. 30, 2020, 4:03 p.m. | OK | GNU C++17 | TESTS | 125 | 233 | 75980800 | ||
91464556 | yzh1505 | C | Aug. 31, 2020, 6:42 a.m. | OK | GNU C++17 | TESTS | 126 | 265 | 21811200 | ||
91577777 | 11235813213455 | C | Sept. 1, 2020, 3:09 p.m. | OK | GNU C++17 (64) | TESTS | 126 | 62 | 24473600 | ||
91372747 | Egor | C | Aug. 30, 2020, 3:06 p.m. | OK | GNU C++17 (64) | TESTS | 125 | 77 | 16384000 | ||
91494977 | dysyn1314 | C | Aug. 31, 2020, 1:31 p.m. | OK | GNU C++17 (64) | TESTS | 126 | 109 | 50176000 | ||
91376802 | QAQAutoMaton | C | Aug. 30, 2020, 3:14 p.m. | OK | GNU C++17 (64) | TESTS | 125 | 109 | 88780800 | ||
91606098 | devillove084 | C | Sept. 2, 2020, 2:16 a.m. | OK | GNU C++17 (64) | TESTS | 126 | 171 | 3993600 | ||
91571931 | R.Anwar | C | Sept. 1, 2020, 2:03 p.m. | OK | GNU C++17 (64) | TESTS | 126 | 171 | 8089600 | ||
91423856 | tiagoshibata | C | Aug. 30, 2020, 5:49 p.m. | OK | GNU C++17 (64) | TESTS | 125 | 171 | 12390400 | ||
91432443 | jacob.b.zhang | C | Aug. 30, 2020, 6:56 p.m. | OK | GNU C++17 (64) | TESTS | 125 | 171 | 12390400 | ||
91593667 | kempusss | C | Sept. 1, 2020, 6:45 p.m. | OK | GNU C++17 (64) | TESTS | 126 | 171 | 16076800 | ||
91377089 | kotamanegi | C | Aug. 30, 2020, 3:14 p.m. | OK | GNU C++17 (64) | TESTS | 125 | 171 | 18124800 | ||
91390816 | uwi | C | Aug. 30, 2020, 3:39 p.m. | OK | Java 11 | TESTS | 125 | 296 | 66048000 | ||
91427776 | mikit | C | Aug. 30, 2020, 6:10 p.m. | OK | Java 11 | TESTS | 125 | 296 | 66150400 | ||
91378982 | Lewin | C | Aug. 30, 2020, 3:17 p.m. | OK | Java 11 | TESTS | 125 | 311 | 98304000 | ||
91404180 | awesomelemonade | C | Aug. 30, 2020, 4:04 p.m. | OK | Java 11 | TESTS | 125 | 452 | 50688000 | ||
91481373 | Apfeloxid | C | Aug. 31, 2020, 10:26 a.m. | OK | Java 11 | TESTS | 126 | 483 | 106803200 | ||
91464507 | mphillotry | C | Aug. 31, 2020, 6:42 a.m. | OK | Java 11 | TESTS | 126 | 499 | 131993600 | ||
91412601 | PizzaLovers007 | C | Aug. 30, 2020, 4:21 p.m. | OK | Java 11 | TESTS | 125 | 514 | 75776000 | ||
91585183 | idk321 | C | Sept. 1, 2020, 4:40 p.m. | OK | Java 11 | TESTS | 126 | 639 | 122777600 | ||
91412523 | dusty.and.rusty | C | Aug. 30, 2020, 4:20 p.m. | OK | Java 11 | TESTS | 125 | 1029 | 132096000 | ||
91440161 | Dukkha | C | Aug. 30, 2020, 9:09 p.m. | OK | Java 11 | TESTS | 125 | 1232 | 42803200 | ||
91489615 | cwise | C | Aug. 31, 2020, 12:22 p.m. | OK | Java 8 | TESTS | 126 | 187 | 43212800 | ||
91513160 | overACer | C | Aug. 31, 2020, 5:19 p.m. | OK | Java 8 | TESTS | 126 | 327 | 29900800 | ||
91433182 | DarLam | C | Aug. 30, 2020, 7:05 p.m. | OK | Java 8 | TESTS | 125 | 343 | 104243200 | ||
91397497 | SecondThread | C | Aug. 30, 2020, 3:51 p.m. | OK | Java 8 | TESTS | 125 | 374 | 85708800 | ||
91420187 | beroul | C | Aug. 30, 2020, 4:34 p.m. | OK | Java 8 | TESTS | 125 | 405 | 29286400 | ||
91411967 | Slamur | C | Aug. 30, 2020, 4:19 p.m. | OK | Java 8 | TESTS | 125 | 421 | 85606400 | ||
91408007 | Failure | C | Aug. 30, 2020, 4:11 p.m. | OK | Java 8 | TESTS | 125 | 421 | 111718400 | ||
91425641 | ijxjdjd | C | Aug. 30, 2020, 5:57 p.m. | OK | Java 8 | TESTS | 125 | 452 | 125644800 | ||
91636488 | TheSawan | C | Sept. 2, 2020, 11:39 a.m. | OK | Java 8 | TESTS | 126 | 483 | 102502400 | ||
91434787 | golions | C | Aug. 30, 2020, 7:27 p.m. | OK | Java 8 | TESTS | 125 | 483 | 115609600 | ||
91412233 | Hakiobo | C | Aug. 30, 2020, 4:20 p.m. | OK | Kotlin | TESTS | 125 | 420 | 62156800 | ||
91386188 | Tlatoani | C | Aug. 30, 2020, 3:30 p.m. | OK | Kotlin | TESTS | 125 | 701 | 153907200 | ||
91391664 | Yupiteru | C | Aug. 30, 2020, 3:40 p.m. | OK | Mono C# | TESTS | 125 | 249 | 70041600 | ||
91507365 | azukun | C | Aug. 31, 2020, 4:01 p.m. | OK | Mono C# | TESTS | 126 | 374 | 124108800 | ||
91647465 | Mickey-snow | C | Sept. 2, 2020, 2:05 p.m. | OK | Mono C# | TESTS | 126 | 483 | 102912000 | ||
91407343 | shirowa | C | Aug. 30, 2020, 4:10 p.m. | OK | MS C++ 2017 | TESTS | 125 | 311 | 11980800 | ||
91404645 | Friska | C | Aug. 30, 2020, 4:05 p.m. | OK | MS C++ 2017 | TESTS | 125 | 327 | 47923200 | ||
91405533 | Catmoonlight | C | Aug. 30, 2020, 4:07 p.m. | OK | MS C++ 2017 | TESTS | 125 | 920 | 35840000 | ||
91519917 | lindlind | C | Aug. 31, 2020, 7:20 p.m. | OK | MS C++ 2017 | TESTS | 126 | 1060 | 52224000 | ||
91405414 | nwi | C | Aug. 30, 2020, 4:07 p.m. | OK | PyPy 2 | TESTS | 125 | 794 | 76390400 | ||
91404557 | alexwice | C | Aug. 30, 2020, 4:05 p.m. | OK | PyPy 2 | TESTS | 125 | 1278 | 191590400 | ||
91471683 | nehan_der_thal | C | Aug. 31, 2020, 8:12 a.m. | OK | PyPy 3 | TESTS | 126 | 966 | 90828800 | ||
91472817 | nehan_der_thal | C | Aug. 31, 2020, 8:27 a.m. | OK | PyPy 3 | TESTS | 126 | 982 | 91136000 | ||
91472911 | nehan_der_thal | C | Aug. 31, 2020, 8:29 a.m. | OK | PyPy 3 | TESTS | 126 | 982 | 91545600 | ||
91471989 | nehan_der_thal | C | Aug. 31, 2020, 8:15 a.m. | OK | PyPy 3 | TESTS | 126 | 997 | 90828800 | ||
91471272 | nehan_der_thal | C | Aug. 31, 2020, 8:06 a.m. | OK | PyPy 3 | TESTS | 126 | 998 | 91033600 | ||
91477727 | juppy | C | Aug. 31, 2020, 9:35 a.m. | OK | PyPy 3 | TESTS | 126 | 1060 | 95641600 | ||
91457375 | SPD_9X2 | C | Aug. 31, 2020, 5:05 a.m. | OK | PyPy 3 | TESTS | 126 | 1122 | 91238400 | ||
91424005 | neterukun | C | Aug. 30, 2020, 5:49 p.m. | OK | PyPy 3 | TESTS | 125 | 1216 | 162406400 | ||
91407481 | yuusanlondon | C | Aug. 30, 2020, 4:10 p.m. | OK | PyPy 3 | TESTS | 125 | 1279 | 100249600 | ||
91569585 | tamato | C | Sept. 1, 2020, 1:32 p.m. | OK | PyPy 3 | TESTS | 126 | 1341 | 78643200 | ||
91419911 | EbTech | C | Aug. 30, 2020, 4:33 p.m. | OK | Rust | TESTS | 125 | 171 | 37888000 | ||
91494356 | orz_liuwei | C | Aug. 31, 2020, 1:23 p.m. | OK | Rust | TESTS | 126 | 171 | 45465600 | ||
91420867 | tuna_salad | C | Aug. 30, 2020, 4:34 p.m. | OK | Rust | TESTS | 125 | 264 | 41267200 |
Back to search problems