Codeforces Round 608 (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
1271 Codeforces Round 608 (Div. 2) FINISHED False 7200 155421899 Dec. 15, 2019, 9:15 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3101 ) D Portals PROGRAMMING data structures dp greedy implementation sortings 2100

B"You play a strategic video game (yeah, we ran out of good problem legends). In this game you control a large army, and your goal is to conquer n castles of your opponent. Let's describe the game process in detail. Initially you control an army of k warriors. Your enemy controls n castles; to conquer the i -th castle, you need at least a_i warriors (you are so good at this game that you don't lose any warriors while taking over a castle, so your army stays the same after the fight). After you take control over a castle, you recruit new warriors into your army -- formally, after you capture the i -th castle, b_i warriors join your army. Furthermore, after capturing a castle (or later) you can defend it: if you leave at least one warrior in a castle, this castle is considered defended. Each castle has an importance parameter c_i , and your total score is the sum of importance values over all defended castles. There are two ways to defend a castle: Obviously, when you order your warrior to defend some castle, he leaves your army. You capture the castles in fixed order: you have to capture the first one, then the second one, and so on. After you capture the castle i (but only before capturing castle i + 1 ) you may recruit new warriors from castle i , leave a warrior to defend castle i , and use any number of portals leading from castle i to other castles having smaller numbers. As soon as you capture the next castle, these actions for castle i won't be available to you. If, during some moment in the game, you don't have enough warriors to capture the next castle, you lose. Your goal is to maximize the sum of importance values over all defended castles (note that you may hire new warriors in the last castle, defend it and use portals leading from it even after you capture it -- your score will be calculated afterwards). Can you determine an optimal strategy of capturing and defendin"...

Tutorials

72247

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67577189 mychen06 D Dec. 25, 2019, 3:28 a.m. OK Clang++17 Diagnostics TESTS 120 186 10649600 2100
67058551 Loi_zrq D Dec. 17, 2019, 8:04 a.m. OK GNU C++11 TESTS 113 31 204800 2100
67065131 _Clouder D Dec. 17, 2019, 10:48 a.m. OK GNU C++11 TESTS 113 31 921600 2100
66996178 huanggs D Dec. 16, 2019, 1:43 a.m. OK GNU C++11 TESTS 113 31 1433600 2100
66995640 tswdfop157 D Dec. 16, 2019, 1:03 a.m. OK GNU C++11 TESTS 113 31 3379200 2100
68119928 Peanut.Tang D Jan. 3, 2020, 12:55 p.m. OK GNU C++11 TESTS 120 46 102400 2100
66951742 Rikuki D Dec. 15, 2019, 9:56 a.m. OK GNU C++11 TESTS 113 46 102400 2100
67588628 KaiserYang D Dec. 25, 2019, 9:14 a.m. OK GNU C++11 TESTS 120 46 204800 2100
67580510 poaspoas D Dec. 25, 2019, 5:47 a.m. OK GNU C++11 TESTS 120 46 204800 2100
67483543 SakuraWuSiDa D Dec. 23, 2019, 4:43 p.m. OK GNU C++11 TESTS 119 46 204800 2100
67327862 luogu_bot3 D Dec. 21, 2019, 10:27 a.m. OK GNU C++11 TESTS 119 46 204800 2100
67656260 rhrnald D Dec. 26, 2019, 2:01 p.m. OK GNU C++14 TESTS 120 93 28364800 2100
67049905 dtc03012 D Dec. 17, 2019, 3:09 a.m. OK GNU C++14 TESTS 113 109 3072000 2100
67782503 dx6666 D Dec. 28, 2019, 11:30 a.m. OK GNU C++14 TESTS 120 124 307200 2100
67211144 mchxyz D Dec. 19, 2019, 2:04 p.m. OK GNU C++14 TESTS 119 124 307200 2100
68691070 Willem D Jan. 13, 2020, 6:09 a.m. OK GNU C++14 TESTS 120 124 409600 2100
67875750 INNERCIRCLE D Dec. 29, 2019, 1:14 p.m. OK GNU C++14 TESTS 120 124 409600 2100
67426036 derrickball D Dec. 22, 2019, 1:28 p.m. OK GNU C++14 TESTS 119 124 409600 2100
66997604 KisekiPurin2019 D Dec. 16, 2019, 3:21 a.m. OK GNU C++14 TESTS 113 124 409600 2100
67288743 Smallpotpot D Dec. 20, 2019, 2:59 p.m. OK GNU C++14 TESTS 119 124 512000 2100
67127086 Temirulan D Dec. 17, 2019, 8:41 p.m. OK GNU C++14 TESTS 119 124 512000 2100
67203533 _Clouder D Dec. 19, 2019, 11:42 a.m. OK GNU C++17 TESTS 119 46 512000 2100
67203523 _Clouder D Dec. 19, 2019, 11:41 a.m. OK GNU C++17 TESTS 119 46 512000 2100
67057860 _Clouder D Dec. 17, 2019, 7:44 a.m. OK GNU C++17 TESTS 113 46 1126400 2100
67164598 LuchkinVyacheslav D Dec. 18, 2019, 3:06 p.m. OK GNU C++17 TESTS 119 109 614400 2100
66961047 edenooo D Dec. 15, 2019, 10:51 a.m. OK GNU C++17 TESTS 113 109 2969600 2100
67029369 jschr D Dec. 16, 2019, 3:23 p.m. OK GNU C++17 TESTS 113 109 3174400 2100
68682971 zstuycz D Jan. 13, 2020, 12:52 a.m. OK GNU C++17 TESTS 120 124 102400 2100
67508195 jeremy624lolz D Dec. 24, 2019, 8:11 a.m. OK GNU C++17 TESTS 119 124 102400 2100
67069927 stArliGht D Dec. 17, 2019, 12:25 p.m. OK GNU C++17 TESTS 113 124 102400 2100
67347775 Isomorphism D Dec. 21, 2019, 11:52 a.m. OK GNU C++17 TESTS 119 124 204800 2100
66957609 caidodo0_0 D Dec. 15, 2019, 10:29 a.m. OK Go TESTS 113 670 9830400 2100
66956632 Musin D Dec. 15, 2019, 10:23 a.m. OK Java 11 TESTS 113 248 0 2100
67872162 machhra D Dec. 29, 2019, 11:54 a.m. OK Java 11 TESTS 120 311 0 2100
67023085 mathgix D Dec. 16, 2019, 1:33 p.m. OK Java 11 TESTS 113 311 0 2100
66964608 TheSawan D Dec. 15, 2019, 11:12 a.m. OK Java 11 TESTS 113 312 0 2100
67001859 potatmen D Dec. 16, 2019, 6:09 a.m. OK Java 11 TESTS 113 358 2048000 2100
66987981 sarthakmanna D Dec. 15, 2019, 6:58 p.m. OK Java 11 TESTS 113 608 0 2100
67495289 BaZ_ D Dec. 23, 2019, 10:08 p.m. OK Java 8 TESTS 119 140 0 2100
66986974 beroul D Dec. 15, 2019, 6:31 p.m. OK Java 8 TESTS 113 155 0 2100
66979704 Snow D Dec. 15, 2019, 3:55 p.m. OK Java 8 TESTS 113 156 0 2100
66958167 Drona1233 D Dec. 15, 2019, 10:33 a.m. OK Java 8 TESTS 113 186 0 2100
67771255 woshinande D Dec. 28, 2019, 6:54 a.m. OK Java 8 TESTS 120 218 0 2100
66985502 beroul D Dec. 15, 2019, 5:56 p.m. OK Java 8 TESTS 113 218 0 2100
67180721 unicorn20141 D Dec. 18, 2019, 10:48 p.m. OK Java 8 TESTS 119 249 0 2100
66986280 polyakoff D Dec. 15, 2019, 6:14 p.m. OK Java 8 TESTS 113 249 0 2100
66965250 e_is_cool D Dec. 15, 2019, 11:14 a.m. OK Java 8 TESTS 113 249 0 2100
67126136 Taran_1407 D Dec. 17, 2019, 8:13 p.m. OK Java 8 TESTS 119 264 0 2100
68041681 camypaper D Jan. 1, 2020, 2:37 p.m. OK Mono C# TESTS 120 248 57036800 2100
66961337 kichi2004 D Dec. 15, 2019, 10:53 a.m. OK Mono C# TESTS 113 265 15462400 2100
67278063 seh631638554 D Dec. 20, 2019, 10:58 a.m. OK MS C++ TESTS 119 109 307200 2100
66961945 youx D Dec. 15, 2019, 10:57 a.m. OK MS C++ 2017 TESTS 113 187 5017600 2100
66958196 Prokopiy D Dec. 15, 2019, 10:33 a.m. OK MS C++ 2017 TESTS 113 451 512000 2100
67056872 efyjef D Dec. 17, 2019, 7:17 a.m. OK MS C++ 2017 TESTS 113 467 307200 2100
67001108 Parsa84 D Dec. 16, 2019, 5:45 a.m. OK MS C++ 2017 TESTS 113 482 50380800 2100
66955891 LinusTorvaldsFan D Dec. 15, 2019, 10:19 a.m. OK MS C++ 2017 TESTS 113 499 144793600 2100
67313748 suun D Dec. 21, 2019, 4:49 a.m. OK MS C++ 2017 TESTS 119 529 206028800 2100
67313805 suun D Dec. 21, 2019, 4:51 a.m. OK MS C++ 2017 TESTS 119 530 206028800 2100
67313776 suun D Dec. 21, 2019, 4:50 a.m. OK MS C++ 2017 TESTS 119 561 206028800 2100
67312604 suun D Dec. 21, 2019, 4:01 a.m. OK MS C++ 2017 TESTS 119 592 205824000 2100
67312615 suun D Dec. 21, 2019, 4:02 a.m. OK MS C++ 2017 TESTS 119 592 205824000 2100
67256950 yumtam D Dec. 19, 2019, 11:20 p.m. OK PyPy 2 TESTS 119 358 21401600 2100
67018841 MVP D Dec. 16, 2019, 12:20 p.m. OK PyPy 2 TESTS 113 405 11468800 2100
67191962 mitribunskiy D Dec. 19, 2019, 7:26 a.m. OK PyPy 3 TESTS 119 545 10137600 2100
66950011 tamato D Dec. 15, 2019, 9:49 a.m. OK PyPy 3 TESTS 113 576 107622400 2100
68161161 xiema D Jan. 4, 2020, 10:54 a.m. OK PyPy 3 TESTS 120 670 9523200 2100
66955139 cftt D Dec. 15, 2019, 10:15 a.m. OK PyPy 3 TESTS 113 701 10444800 2100
66956782 auouo D Dec. 15, 2019, 10:24 a.m. OK PyPy 3 TESTS 113 732 13312000 2100
66955500 neterukun D Dec. 15, 2019, 10:17 a.m. OK PyPy 3 TESTS 113 857 36864000 2100
67455746 19n1900011773 D Dec. 23, 2019, 6:47 a.m. OK Python 3 TESTS 119 810 921600 2100
66957186 sansen D Dec. 15, 2019, 10:27 a.m. OK Rust TESTS 113 108 6656000 2100
67161053 gearjack D Dec. 18, 2019, 1:59 p.m. OK Rust TESTS 119 155 104857600 2100
66955144 terraformer D Dec. 15, 2019, 10:15 a.m. OK Rust TESTS 113 311 6963200 2100

remove filters

Back to search problems