CodeCraft-20 (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
1316 CodeCraft-20 (Div. 2) FINISHED False 7200 154020311 March 4, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4300 ) E Team Building PROGRAMMING bitmasks dp greedy sortings 2300

B'Alice, the president of club FCB, wants to build a team for the new volleyball tournament. The team should consist of p players playing in p different positions. She also recognizes the importance of audience support, so she wants to select k people as part of the audience. There are n people in Byteland. Alice needs to select exactly p players, one for each position, and exactly k members of the audience from this pool of n people. Her ultimate goal is to maximize the total strength of the club. The i -th of the n persons has an integer a_{i} associated with him -- the strength he adds to the club if he is selected as a member of the audience. For each person i and for each position j , Alice knows s_{i, j} -- the strength added by the i -th person to the club if he is selected to play in the j -th position. Each person can be selected at most once as a player or a member of the audience. You have to choose exactly one player for each position. Since Alice is busy, she needs you to help her find the maximum possible strength of the club that can be achieved by an optimal choice of players and the audience. The first line contains 3 integers n,p,k ( 2 <= q n <= q 10^{5}, 1 <= q p <= q 7, 1 <= k, p+k <= n ). The second line contains n integers a_{1},a_{2}, ldots,a_{n} . ( 1 <= q a_{i} <= q 10^{9} ). The i -th of the next n lines contains p integers s_{i, 1}, s_{i, 2}, ... , s_{i, p} . ( 1 <= q s_{i,j} <= q 10^{9} ) Print a single integer {res} -- the maximum possible strength of the club. In the first sample, we can select person 1 to play in the 1 -st position and persons 2 and 3 as audience members. Then the total strength of the club will be equal to a_{2}+a_{3}+s_{1,1} . '...

Tutorials

Codecraft-20 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
72455986 avm E March 4, 2020, 4:19 p.m. OK D TESTS 124 421 32870400 2300
72455434 rainboy E March 4, 2020, 4:17 p.m. OK GNU C11 TESTS 124 420 3584000 2300
72499338 wannaAC E March 5, 2020, 9:25 a.m. OK GNU C++11 TESTS 124 156 80179200 2300
72444428 eriksuenderhauf E March 4, 2020, 3:36 p.m. OK GNU C++11 TESTS 124 202 9523200 2300
72480584 LHQing E March 5, 2020, 1:41 a.m. OK GNU C++11 TESTS 124 217 8908800 2300
72447268 hs-black E March 4, 2020, 3:46 p.m. OK GNU C++11 TESTS 124 218 8499200 2300
72458555 LHQing E March 4, 2020, 4:28 p.m. OK GNU C++11 TESTS 124 233 8908800 2300
72483594 Sneakoscope E March 5, 2020, 3:24 a.m. OK GNU C++11 TESTS 124 233 107008000 2300
72489378 wannape E March 5, 2020, 6:04 a.m. OK GNU C++11 TESTS 124 280 7987200 2300
72507432 yspm E March 5, 2020, 11:41 a.m. OK GNU C++11 TESTS 124 280 9625600 2300
72484264 YJJ_Konnyaku E March 5, 2020, 3:44 a.m. OK GNU C++11 TESTS 124 326 111411200 2300
72457079 lindalee E March 4, 2020, 4:23 p.m. OK GNU C++11 TESTS 124 327 3584000 2300
72497315 nitvjudge1 E March 5, 2020, 8:49 a.m. OK GNU C++14 TESTS 124 405 3788800 2300
72497477 nitvjudge2 E March 5, 2020, 8:52 a.m. OK GNU C++14 TESTS 124 420 3788800 2300
72457217 KaguraNana E March 4, 2020, 4:23 p.m. OK GNU C++14 TESTS 124 451 5734400 2300
72468244 AhmedEzzatG E March 4, 2020, 7:26 p.m. OK GNU C++14 TESTS 124 498 10240000 2300
72445222 Memory_of_summer E March 4, 2020, 3:39 p.m. OK GNU C++14 TESTS 124 499 32256000 2300
72460716 antguz E March 4, 2020, 4:34 p.m. OK GNU C++14 TESTS 124 514 3993600 2300
72468415 tokitsukaze E March 4, 2020, 7:29 p.m. OK GNU C++14 TESTS 124 514 5734400 2300
72439407 hubz E March 4, 2020, 3:19 p.m. OK GNU C++14 TESTS 124 530 10240000 2300
72455110 aneesh2312 E March 4, 2020, 4:16 p.m. OK GNU C++14 TESTS 124 546 140185600 2300
72488037 KisekiPurin2019 E March 5, 2020, 5:32 a.m. OK GNU C++14 TESTS 124 561 3174400 2300
72472865 mango_lassi E March 4, 2020, 8:53 p.m. OK GNU C++17 TESTS 124 265 8294400 2300
72453053 gratus907 E March 4, 2020, 4:08 p.m. OK GNU C++17 TESTS 124 389 17817600 2300
72562425 autoint E March 6, 2020, 9:17 a.m. OK GNU C++17 TESTS 124 421 15052800 2300
72444842 BroadwayNight E March 4, 2020, 3:38 p.m. OK GNU C++17 TESTS 124 436 3788800 2300
72585223 hnust_zhangpeng E March 6, 2020, 3:47 p.m. OK GNU C++17 TESTS 124 436 17100800 2300
72507450 Felerius E March 5, 2020, 11:42 a.m. OK GNU C++17 TESTS 124 452 3584000 2300
72453204 Edwivv E March 4, 2020, 4:09 p.m. OK GNU C++17 TESTS 124 452 209817600 2300
72461012 MaJorie E March 4, 2020, 4:34 p.m. OK GNU C++17 TESTS 124 452 218419200 2300
72467307 k291061 E March 4, 2020, 7:14 p.m. OK GNU C++17 TESTS 124 483 9420800 2300
72514851 penguin1017 E March 5, 2020, 1:29 p.m. OK GNU C++17 TESTS 124 483 155136000 2300
72471888 Jughead E March 4, 2020, 8:32 p.m. OK Go TESTS 124 951 14540800 2300
72503291 wzazzy E March 5, 2020, 10:28 a.m. OK Go TESTS 124 1294 8499200 2300
72550461 Suzukaze E March 6, 2020, 4:27 a.m. OK Java 11 TESTS 124 654 5324800 2300
72550429 Suzukaze E March 6, 2020, 4:26 a.m. OK Java 11 TESTS 124 732 5324800 2300
72444483 uwi E March 4, 2020, 3:36 p.m. OK Java 11 TESTS 124 1185 6041600 2300
72547962 Suzukaze E March 6, 2020, 3:03 a.m. OK Java 11 TESTS 124 1231 5324800 2300
72445853 Hemose E March 4, 2020, 3:41 p.m. OK Java 11 TESTS 124 1278 153907200 2300
72472753 AshrafEzz E March 4, 2020, 8:51 p.m. OK Java 11 TESTS 124 1310 172032000 2300
72485466 bleh0.5 E March 5, 2020, 4:22 a.m. OK Java 11 TESTS 124 1591 187699200 2300
72603506 Kostya E March 6, 2020, 8:55 p.m. OK Java 11 TESTS 124 2168 260608000 2300
72603483 Kostya E March 6, 2020, 8:54 p.m. OK Java 11 TESTS 124 2199 260608000 2300
72603844 Kostya E March 6, 2020, 9:05 p.m. OK Java 11 TESTS 124 2262 260608000 2300
72473283 DarLam E March 4, 2020, 9:04 p.m. OK Java 8 TESTS 124 889 4812800 2300
72609254 bluesky111 E March 7, 2020, 1:31 a.m. OK Java 8 TESTS 124 1014 3891200 2300
72472557 polyakoff E March 4, 2020, 8:46 p.m. OK Java 8 TESTS 124 1123 12492800 2300
72515834 KharYusuf E March 5, 2020, 1:43 p.m. OK Java 8 TESTS 124 1123 216883200 2300
72449370 SecondThread E March 4, 2020, 3:54 p.m. OK Java 8 TESTS 124 1138 153292800 2300
72477863 BNL E March 4, 2020, 11:51 p.m. OK Java 8 TESTS 124 1153 0 2300
72432869 barakraganosungam E March 4, 2020, 2:58 p.m. OK Java 8 TESTS 124 1201 178585600 2300
72472148 polyakoff E March 4, 2020, 8:37 p.m. OK Java 8 TESTS 124 1216 12492800 2300
72474979 gouh9qn E March 4, 2020, 9:56 p.m. OK Java 8 TESTS 124 1232 190054400 2300
72476939 Java E March 4, 2020, 11:09 p.m. OK Java 8 TESTS 124 1262 153292800 2300
72546487 Spheniscine E March 6, 2020, 2:04 a.m. OK Kotlin TESTS 124 998 6860800 2300
72546313 Spheniscine E March 6, 2020, 1:55 a.m. OK Kotlin TESTS 124 1185 6860800 2300
72496768 SlavaG E March 5, 2020, 8:40 a.m. OK Kotlin TESTS 124 1512 28160000 2300
72498090 SlavaG E March 5, 2020, 9:02 a.m. OK Kotlin TESTS 124 2011 28160000 2300
72477315 Tlatoani E March 4, 2020, 11:24 p.m. OK Kotlin TESTS 124 2323 70041600 2300
72496559 SlavaG E March 5, 2020, 8:37 a.m. OK Kotlin TESTS 124 2542 28364800 2300
72470832 Tlatoani E March 4, 2020, 8:11 p.m. OK Kotlin TESTS 124 2979 69939200 2300
72451290 pichulia E March 4, 2020, 4:01 p.m. OK MS C++ 2017 TESTS 124 296 7987200 2300
72481043 youx E March 5, 2020, 1:59 a.m. OK MS C++ 2017 TESTS 124 998 9932800 2300
72481427 Timonnable E March 5, 2020, 2:11 a.m. OK MS C++ 2017 TESTS 124 1138 111206400 2300
72459184 sansen E March 4, 2020, 4:30 p.m. OK Rust TESTS 124 545 30105600 2300
72466131 sansen E March 4, 2020, 7:02 p.m. OK Rust TESTS 124 561 30105600 2300
72561732 loujunjie E March 6, 2020, 9:02 a.m. OK Rust TESTS 124 967 130764800 2300

remove filters

Back to search problems