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 |
---|---|---|---|---|---|---|
1266 | Codeforces Global Round 6 | FINISHED | False | 9000 | 160844087 | Dec. 17, 2019, 3:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2263 ) | E | Spaceship Solitaire | PROGRAMMING | data structures greedy implementation | 2100 |
B'Bob is playing a game of Spaceship Solitaire. The goal of this game is to build a spaceship. In order to do this, he first needs to accumulate enough resources for the construction. There are n types of resources, numbered 1 through n . Bob needs at least a_i pieces of the i -th resource to build the spaceship. The number a_i is called the goal for resource i . Each resource takes 1 turn to produce and in each turn only one resource can be produced. However, there are certain milestones that speed up production. Every milestone is a triple (s_j, t_j, u_j) , meaning that as soon as Bob has t_j units of the resource s_j , he receives one unit of the resource u_j for free, without him needing to spend a turn. It is possible that getting this free resource allows Bob to claim reward for another milestone. This way, he can obtain a large number of resources in a single turn. The game is constructed in such a way that there are never two milestones that have the same s_j and t_j , that is, the award for reaching t_j units of resource s_j is at most one additional resource. A bonus is never awarded for 0 of any resource, neither for reaching the goal a_i nor for going past the goal -- formally, for every milestone 0 < t_j < a_{s_j} . A bonus for reaching certain amount of a resource can be the resource itself, that is, s_j = u_j . Initially there are no milestones. You are to process q updates, each of which adds, removes or modifies a milestone. After every update, output the minimum number of turns needed to finish the game, that is, to accumulate at least a_i of i -th resource for each i in [1, n] . The first line contains a single integer n ( 1 <= q n <= q 2 cdot 10^5 ) -- the number of types of resources. The second line contains n space separated integers a_1, a_2, ... , a_n ( 1 <= q a_i <= q 10^'... |
Codeforces Global Round 6 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
67109741 | Gassa | E | Dec. 17, 2019, 4:40 p.m. | OK | D | TESTS | 68 | 233 | 22425600 | 2100 | |
67096445 | hos.lyric | E | Dec. 17, 2019, 3:49 p.m. | OK | D | TESTS | 68 | 249 | 36352000 | 2100 | |
67118623 | Chipe1 | E | Dec. 17, 2019, 5:31 p.m. | OK | GNU C11 | TESTS | 68 | 545 | 3993600 | 2100 | |
67124891 | rainboy | E | Dec. 17, 2019, 7:36 p.m. | OK | GNU C11 | TESTS | 69 | 904 | 3993600 | 2100 | |
68849716 | chenyewei_1234 | E | Jan. 15, 2020, 8:33 a.m. | OK | GNU C++11 | TESTS | 69 | 93 | 9625600 | 2100 | |
67987069 | yasugongshang | E | Dec. 31, 2019, 12:04 a.m. | OK | GNU C++11 | TESTS | 69 | 93 | 9625600 | 2100 | |
67100296 | LJC00118 | E | Dec. 17, 2019, 4:01 p.m. | OK | GNU C++11 | TESTS | 68 | 93 | 9625600 | 2100 | |
67089886 | 1919810 | E | Dec. 17, 2019, 3:32 p.m. | OK | GNU C++11 | TESTS | 68 | 93 | 9625600 | 2100 | |
67156752 | lyzqs | E | Dec. 18, 2019, 12:44 p.m. | OK | GNU C++11 | TESTS | 69 | 93 | 11264000 | 2100 | |
67105932 | memset0c | E | Dec. 17, 2019, 4:22 p.m. | OK | GNU C++11 | TESTS | 68 | 93 | 12083200 | 2100 | |
68329117 | luogu_bot3 | E | Jan. 6, 2020, 6 p.m. | OK | GNU C++11 | TESTS | 69 | 93 | 12083200 | 2100 | |
67139090 | myx12345 | E | Dec. 18, 2019, 5:54 a.m. | OK | GNU C++11 | TESTS | 69 | 108 | 35328000 | 2100 | |
67211000 | Rubblsh12345 | E | Dec. 19, 2019, 2:01 p.m. | OK | GNU C++11 | TESTS | 69 | 109 | 9625600 | 2100 | |
67195548 | xht37 | E | Dec. 19, 2019, 8:53 a.m. | OK | GNU C++11 | TESTS | 69 | 109 | 9932800 | 2100 | |
67107802 | MyLegendaryTime | E | Dec. 17, 2019, 4:30 p.m. | OK | GNU C++14 | TESTS | 68 | 124 | 7577600 | 2100 | |
67124943 | rainboy | E | Dec. 17, 2019, 7:38 p.m. | OK | GNU C++14 | TESTS | 69 | 139 | 3993600 | 2100 | |
68600295 | tokitsukaze | E | Jan. 11, 2020, 1:55 p.m. | OK | GNU C++14 | TESTS | 69 | 140 | 6656000 | 2100 | |
67109907 | KaguraNana | E | Dec. 17, 2019, 4:40 p.m. | OK | GNU C++14 | TESTS | 68 | 140 | 6656000 | 2100 | |
67294330 | dtc03012 | E | Dec. 20, 2019, 4:28 p.m. | OK | GNU C++14 | TESTS | 69 | 155 | 10547200 | 2100 | |
67106964 | Sciorz | E | Dec. 17, 2019, 4:27 p.m. | OK | GNU C++14 | TESTS | 68 | 171 | 9830400 | 2100 | |
67175595 | Hsx | E | Dec. 18, 2019, 7:05 p.m. | OK | GNU C++14 | TESTS | 69 | 171 | 9830400 | 2100 | |
67135862 | KisekiPurin2019 | E | Dec. 18, 2019, 4:09 a.m. | OK | GNU C++14 | TESTS | 69 | 171 | 9830400 | 2100 | |
67106205 | Andreasyan | E | Dec. 17, 2019, 4:23 p.m. | OK | GNU C++14 | TESTS | 68 | 171 | 9830400 | 2100 | |
67105941 | Motarack | E | Dec. 17, 2019, 4:22 p.m. | OK | GNU C++14 | TESTS | 68 | 171 | 9830400 | 2100 | |
67100522 | yosupo | E | Dec. 17, 2019, 4:01 p.m. | OK | GNU C++17 | TESTS | 68 | 139 | 7475200 | 2100 | |
67093885 | whzzt | E | Dec. 17, 2019, 3:42 p.m. | OK | GNU C++17 | TESTS | 68 | 140 | 9932800 | 2100 | |
67121212 | iaNTU | E | Dec. 17, 2019, 6:25 p.m. | OK | GNU C++17 | TESTS | 68 | 171 | 5734400 | 2100 | |
67111060 | edenooo | E | Dec. 17, 2019, 4:47 p.m. | OK | GNU C++17 | TESTS | 68 | 171 | 5836800 | 2100 | |
67121719 | TonySnark | E | Dec. 17, 2019, 6:32 p.m. | OK | GNU C++17 | TESTS | 68 | 171 | 9011200 | 2100 | |
67603985 | Leonardo_Blanger | E | Dec. 25, 2019, 12:55 p.m. | OK | GNU C++17 | TESTS | 69 | 171 | 9011200 | 2100 | |
67147978 | Ardor | E | Dec. 18, 2019, 9:37 a.m. | OK | GNU C++17 | TESTS | 69 | 171 | 9830400 | 2100 | |
67770129 | Diorvh | E | Dec. 28, 2019, 6:24 a.m. | OK | GNU C++17 | TESTS | 69 | 171 | 9830400 | 2100 | |
67147903 | Ardor | E | Dec. 18, 2019, 9:35 a.m. | OK | GNU C++17 | TESTS | 69 | 171 | 9830400 | 2100 | |
67658352 | despair | E | Dec. 26, 2019, 2:45 p.m. | OK | GNU C++17 | TESTS | 69 | 186 | 4710400 | 2100 | |
67109320 | caidodo0_0 | E | Dec. 17, 2019, 4:37 p.m. | OK | Go | TESTS | 68 | 483 | 9728000 | 2100 | |
67098255 | eatmore | E | Dec. 17, 2019, 3:54 p.m. | OK | Java 11 | TESTS | 68 | 343 | 4198400 | 2100 | |
67122002 | vaibhavpulastya | E | Dec. 17, 2019, 6:36 p.m. | OK | Java 11 | TESTS | 68 | 374 | 17408000 | 2100 | |
67124100 | machhra | E | Dec. 17, 2019, 7:17 p.m. | OK | Java 11 | TESTS | 69 | 451 | 11673600 | 2100 | |
67120903 | Dukkha | E | Dec. 17, 2019, 6:22 p.m. | OK | Java 11 | TESTS | 68 | 998 | 4915200 | 2100 | |
67105591 | cwise | E | Dec. 17, 2019, 4:21 p.m. | OK | Java 8 | TESTS | 68 | 186 | 39219200 | 2100 | |
67120782 | aman28rwt | E | Dec. 17, 2019, 6:21 p.m. | OK | Java 8 | TESTS | 68 | 233 | 3993600 | 2100 | |
67102492 | uwi | E | Dec. 17, 2019, 4:08 p.m. | OK | Java 8 | TESTS | 68 | 233 | 3993600 | 2100 | |
67120854 | StayAwayFromBitches | E | Dec. 17, 2019, 6:22 p.m. | OK | Java 8 | TESTS | 68 | 248 | 4198400 | 2100 | |
67858661 | mufaddalnaya | E | Dec. 29, 2019, 7:08 a.m. | OK | Java 8 | TESTS | 69 | 280 | 3788800 | 2100 | |
67108040 | icpc_loser | E | Dec. 17, 2019, 4:32 p.m. | OK | Java 8 | TESTS | 68 | 280 | 10035200 | 2100 | |
67111227 | spar5h | E | Dec. 17, 2019, 4:48 p.m. | OK | Java 8 | TESTS | 68 | 280 | 18432000 | 2100 | |
67103652 | CouponKaka-ChutteNahiHai | E | Dec. 17, 2019, 4:13 p.m. | OK | Java 8 | TESTS | 68 | 295 | 16998400 | 2100 | |
67120785 | SecondThread | E | Dec. 17, 2019, 6:21 p.m. | OK | Java 8 | TESTS | 68 | 296 | 13004800 | 2100 | |
67121662 | martins | E | Dec. 17, 2019, 6:31 p.m. | OK | Java 8 | TESTS | 68 | 327 | 13516800 | 2100 | |
67126873 | Tlatoani | E | Dec. 17, 2019, 8:34 p.m. | OK | Kotlin | TESTS | 69 | 686 | 24371200 | 2100 | |
67156344 | Yupiteru | E | Dec. 18, 2019, 12:37 p.m. | OK | Mono C# | TESTS | 69 | 467 | 189849600 | 2100 | |
67632419 | camypaper | E | Dec. 26, 2019, 4:55 a.m. | OK | Mono C# | TESTS | 69 | 951 | 66150400 | 2100 | |
67997603 | vjudge4 | E | Dec. 31, 2019, 9:03 a.m. | OK | MS C++ | TESTS | 69 | 171 | 4915200 | 2100 | |
69392828 | vjudge3 | E | Jan. 23, 2020, 4:43 a.m. | OK | MS C++ | TESTS | 69 | 171 | 14540800 | 2100 | |
67117748 | tarattata1 | E | Dec. 17, 2019, 5:26 p.m. | OK | MS C++ | TESTS | 68 | 187 | 8089600 | 2100 | |
67113358 | r57shell | E | Dec. 17, 2019, 5 p.m. | OK | MS C++ | TESTS | 68 | 202 | 5632000 | 2100 | |
67121205 | youx | E | Dec. 17, 2019, 6:25 p.m. | OK | MS C++ 2017 | TESTS | 68 | 249 | 7987200 | 2100 | |
67119024 | nukeykt | E | Dec. 17, 2019, 5:33 p.m. | OK | MS C++ 2017 | TESTS | 68 | 265 | 5836800 | 2100 | |
67105083 | pichulia | E | Dec. 17, 2019, 4:19 p.m. | OK | MS C++ 2017 | TESTS | 68 | 280 | 29696000 | 2100 | |
67108448 | Schullz | E | Dec. 17, 2019, 4:34 p.m. | OK | MS C++ 2017 | TESTS | 68 | 343 | 10649600 | 2100 | |
67112781 | Simon_Chen | E | Dec. 17, 2019, 4:56 p.m. | OK | MS C++ 2017 | TESTS | 68 | 872 | 5632000 | 2100 | |
67099341 | altunyanv | E | Dec. 17, 2019, 3:57 p.m. | OK | MS C++ 2017 | TESTS | 68 | 919 | 5939200 | 2100 | |
67150266 | efyjef | E | Dec. 18, 2019, 10:29 a.m. | OK | MS C++ 2017 | TESTS | 69 | 951 | 8294400 | 2100 | |
67120499 | ppoi | E | Dec. 17, 2019, 6:20 p.m. | OK | MS C++ 2017 | TESTS | 68 | 951 | 14438400 | 2100 | |
67116517 | MrLolthe1st | E | Dec. 17, 2019, 5:18 p.m. | OK | MS C++ 2017 | TESTS | 68 | 982 | 6758400 | 2100 | |
67111909 | Pyar.Mahobat.Dhoka.Hai | E | Dec. 17, 2019, 4:51 p.m. | OK | PyPy 2 | TESTS | 68 | 358 | 28774400 | 2100 | |
67111917 | pajenegod | E | Dec. 17, 2019, 4:51 p.m. | OK | PyPy 2 | TESTS | 68 | 358 | 38912000 | 2100 | |
67135205 | MVP | E | Dec. 18, 2019, 3:41 a.m. | OK | PyPy 2 | TESTS | 69 | 389 | 21913600 | 2100 | |
67118499 | su565fx | E | Dec. 17, 2019, 5:30 p.m. | OK | PyPy 3 | TESTS | 68 | 655 | 23040000 | 2100 | |
67111189 | vinuthegr8 | E | Dec. 17, 2019, 4:47 p.m. | OK | PyPy 3 | TESTS | 68 | 795 | 18841600 | 2100 | |
67115172 | titia | E | Dec. 17, 2019, 5:10 p.m. | OK | PyPy 3 | TESTS | 68 | 826 | 18841600 | 2100 | |
67107851 | pineriver | E | Dec. 17, 2019, 4:31 p.m. | OK | PyPy 3 | TESTS | 68 | 826 | 39936000 | 2100 | |
67123165 | Ormlis | E | Dec. 17, 2019, 6:57 p.m. | OK | PyPy 3 | TESTS | 69 | 826 | 41164800 | 2100 | |
67136405 | FireBird23 | E | Dec. 18, 2019, 4:31 a.m. | OK | PyPy 3 | TESTS | 69 | 951 | 19148800 | 2100 | |
67149868 | sansen | E | Dec. 18, 2019, 10:20 a.m. | OK | Rust | TESTS | 69 | 93 | 16588800 | 2100 | |
67107820 | tuna_salad | E | Dec. 17, 2019, 4:31 p.m. | OK | Rust | TESTS | 68 | 124 | 15974400 | 2100 |
Back to search problems