Codeforces Round 901 (Div. 1)

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
1874 Codeforces Round 901 (Div. 1) FINISHED False 10800 41095463 Sept. 30, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17546 ) A Jellyfish and Game PROGRAMMING brute force greedy implementation

B"Jellyfish has n green apples with values a_1, a_2, ... , a_n and Gellyfish has m green apples with values b_1,b_2, ldots,b_m . They will play a game with k rounds. For i=1,2, ldots,k in this order, they will perform the following actions: Both players want to maximize the sum of the values of their apples. Since you are one of the smartest people in the world, Jellyfish wants you to tell her the final sum of the value of her apples after all k rounds of the game. Assume that both Jellyfish and Gellyfish play optimally to maximize the sum of values of their apples. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 2000 ). The description of the test cases follows. The first line of each test case contains three integers, n , m and k ( 1 <= q n, m <= q 50 , 1 <= q k <= q 10^9 ) -- the number of green apples Jellyfish has, the number of green apples Gellyfish has and the number of rounds of the game respectively. The second line of each test case contains n integers a_1, a_2, ... , a_n ( 1 <= q a_i <= q 10^9 ) -- the values of Jellyfish's green apples. The third line of each test case contains m integers b_1, b_2, ... , b_m ( 1 <= q b_i <= q 10^9 ) -- the values of Gellyfish's green apples. Do note that the sum of n and m over all test cases are both not bounded. For each test case, output a single integer -- the final sum of the values of Jellyfish's apples. In the first test case, Jellyfish will swap the apple of value 1 and 4 . In the second test case, both players will swap the two apples 10,000 times. In the fourth test case, Jellyfish will do nothing. "...

Tutorials

Codeforces Round 901 (Div. 1, Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
225940221 mban259 A Sept. 30, 2023, 2:47 p.m. OK C# 10 TESTS 10 171 4915200
225923542 KumaTachiRen A Sept. 30, 2023, 2:40 p.m. OK C# 8 TESTS 10 93 3993600
225938272 Gassa A Sept. 30, 2023, 2:45 p.m. OK D TESTS 10 77 2150400
225923527 hos.lyric A Sept. 30, 2023, 2:40 p.m. OK D TESTS 10 108 1945600
225976713 pengin_2000 A Sept. 30, 2023, 3:21 p.m. OK GNU C11 TESTS 10 374 0
225945041 jiangtaizhe001 A Sept. 30, 2023, 2:52 p.m. OK GNU C++14 TESTS 10 15 2048000
225942457 wangyian2022 A Sept. 30, 2023, 2:49 p.m. OK GNU C++14 TESTS 10 30 3686400
225929601 ImmortaLimit A Sept. 30, 2023, 2:44 p.m. OK GNU C++14 TESTS 10 30 19251200
225986252 E-ray A Sept. 30, 2023, 3:35 p.m. OK GNU C++14 TESTS 10 46 0
225960740 jinqihao2026 A Sept. 30, 2023, 3 p.m. OK GNU C++14 TESTS 10 46 0
225946362 Imdie A Sept. 30, 2023, 2:54 p.m. OK GNU C++14 TESTS 10 46 0
225941743 StarSilk A Sept. 30, 2023, 2:49 p.m. OK GNU C++14 TESTS 10 46 0
225939999 daniel071292 A Sept. 30, 2023, 2:47 p.m. OK GNU C++14 TESTS 10 46 0
225926125 al3xstr33t A Sept. 30, 2023, 2:42 p.m. OK GNU C++14 TESTS 10 46 0
226091389 gty314159 A Sept. 30, 2023, 11:59 p.m. OK GNU C++14 TESTS 10 46 0
225926763 Natsuzora A Sept. 30, 2023, 2:43 p.m. OK GNU C++17 TESTS 10 46 0
225970289 batmendbar A Sept. 30, 2023, 3:12 p.m. OK GNU C++17 TESTS 10 46 0
225937448 CepryH9 A Sept. 30, 2023, 2:45 p.m. OK GNU C++17 TESTS 10 46 102400
225938599 Onjo A Sept. 30, 2023, 2:46 p.m. OK GNU C++17 TESTS 10 46 102400
225938604 fwfjs A Sept. 30, 2023, 2:46 p.m. OK GNU C++17 TESTS 10 46 204800
225940432 Elizabeth_Liones A Sept. 30, 2023, 2:47 p.m. OK GNU C++17 TESTS 10 46 204800
225927235 _Eclipse_ A Sept. 30, 2023, 2:43 p.m. OK GNU C++17 TESTS 10 46 1638400
226097523 munna2014 A Oct. 1, 2023, 2:21 a.m. OK GNU C++17 TESTS 10 61 0
226070258 Sherif804 A Sept. 30, 2023, 6:41 p.m. OK GNU C++17 TESTS 10 61 0
226104471 Junaid_1 A Oct. 1, 2023, 4:07 a.m. OK GNU C++17 TESTS 10 61 0
225938708 zyxoi A Sept. 30, 2023, 2:46 p.m. OK GNU C++17 (64) TESTS 10 15 0
225978223 LiZnB_love_ZX A Sept. 30, 2023, 3:23 p.m. OK GNU C++17 (64) TESTS 10 31 0
225946703 xiaruize A Sept. 30, 2023, 2:54 p.m. OK GNU C++17 (64) TESTS 10 31 0
225946687 KennyD A Sept. 30, 2023, 2:54 p.m. OK GNU C++17 (64) TESTS 10 31 0
225944826 EmeraldBlock A Sept. 30, 2023, 2:52 p.m. OK GNU C++17 (64) TESTS 10 31 0
225940043 ethening A Sept. 30, 2023, 2:47 p.m. OK GNU C++17 (64) TESTS 10 31 0
226094254 Dawnq A Oct. 1, 2023, 1:20 a.m. OK GNU C++17 (64) TESTS 10 31 0
225924588 Sana A Sept. 30, 2023, 2:41 p.m. OK GNU C++17 (64) TESTS 10 31 0
225924505 TheScrasse A Sept. 30, 2023, 2:41 p.m. OK GNU C++17 (64) TESTS 10 31 0
225926268 tute7627 A Sept. 30, 2023, 2:43 p.m. OK GNU C++17 (64) TESTS 10 31 0
225944074 FIorian A Sept. 30, 2023, 2:51 p.m. OK GNU C++20 (64) TESTS 10 15 0
225941484 cmk666 A Sept. 30, 2023, 2:48 p.m. OK GNU C++20 (64) TESTS 10 15 512000
225924040 vgtcross A Sept. 30, 2023, 2:40 p.m. OK GNU C++20 (64) TESTS 10 30 0
225926088 jiangbowen A Sept. 30, 2023, 2:42 p.m. OK GNU C++20 (64) TESTS 10 30 1945600
225925635 20333333333 A Sept. 30, 2023, 2:42 p.m. OK GNU C++20 (64) TESTS 10 30 5324800
226108797 atomworkplace1234 A Oct. 1, 2023, 5:06 a.m. OK GNU C++20 (64) TESTS 10 31 0
226105900 longhaiUwU A Oct. 1, 2023, 4:27 a.m. OK GNU C++20 (64) TESTS 10 31 0
226098014 phoenix0423 A Oct. 1, 2023, 2:29 a.m. OK GNU C++20 (64) TESTS 10 31 0
226096324 PratheekCodes A Oct. 1, 2023, 2:01 a.m. OK GNU C++20 (64) TESTS 10 31 0
226112060 leducphuclong A Oct. 1, 2023, 5:43 a.m. OK GNU C++20 (64) TESTS 10 31 0
225947358 profchi A Sept. 30, 2023, 2:55 p.m. OK Java 11 TESTS 10 280 0
225924265 taran_1407 A Sept. 30, 2023, 2:40 p.m. OK Java 11 TESTS 10 358 0
225943700 lemon_codes A Sept. 30, 2023, 2:51 p.m. OK Java 17 TESTS 10 296 102400
225958790 golions A Sept. 30, 2023, 2:57 p.m. OK Java 8 TESTS 10 171 0
225965949 SecondThread A Sept. 30, 2023, 3:06 p.m. OK Java 8 TESTS 10 343 38912000
225924945 FastFreeTask A Sept. 30, 2023, 2:41 p.m. OK Kotlin 1.6 TESTS 10 233 921600
225948518 Tlatoani A Sept. 30, 2023, 2:56 p.m. OK Kotlin 1.6 TESTS 10 327 0
225943853 dyukha A Sept. 30, 2023, 2:51 p.m. OK Kotlin 1.6 TESTS 10 389 512000
225938536 Hakiobo A Sept. 30, 2023, 2:46 p.m. OK Kotlin 1.7 TESTS 10 420 8499200
226026177 darnley A Sept. 30, 2023, 4:28 p.m. OK Kotlin 1.7 TESTS 10 514 26624000
226085851 darnley A Sept. 30, 2023, 9:41 p.m. OK Kotlin 1.7 TESTS 10 702 73318400
225939864 new_acc_ A Sept. 30, 2023, 2:47 p.m. OK MS C++ 2017 TESTS 10 187 0
225938043 bcollet A Sept. 30, 2023, 2:45 p.m. OK PyPy 2 TESTS 10 171 8908800
225973760 misorin A Sept. 30, 2023, 3:17 p.m. OK PyPy 3 TESTS 10 171 7884800
225925996 brealid A Sept. 30, 2023, 2:42 p.m. OK PyPy 3 TESTS 10 436 9830400
225938143 shade34 A Sept. 30, 2023, 2:45 p.m. OK PyPy 3 TESTS 10 452 9830400
225999380 wkoo A Sept. 30, 2023, 3:56 p.m. OK PyPy 3-64 TESTS 10 155 9113600
225926514 alxwen711 A Sept. 30, 2023, 2:43 p.m. OK PyPy 3-64 TESTS 10 170 7884800
226103545 nealzane A Oct. 1, 2023, 3:54 a.m. OK PyPy 3-64 TESTS 10 171 8806400
225941479 Maruzensky A Sept. 30, 2023, 2:48 p.m. OK PyPy 3-64 TESTS 10 171 8908800
225938413 dabbler1 A Sept. 30, 2023, 2:45 p.m. OK PyPy 3-64 TESTS 10 171 9011200
225959297 jimini23kjm A Sept. 30, 2023, 2:58 p.m. OK PyPy 3-64 TESTS 10 186 9216000
225939273 Kita A Sept. 30, 2023, 2:46 p.m. OK PyPy 3-64 TESTS 10 186 9216000
225948140 codicon A Sept. 30, 2023, 2:56 p.m. OK PyPy 3-64 TESTS 10 187 5632000
225947774 alexwice A Sept. 30, 2023, 2:55 p.m. OK PyPy 3-64 TESTS 10 202 10035200
225942716 Mukundan314 A Sept. 30, 2023, 2:50 p.m. OK PyPy 3-64 TESTS 10 202 10752000
226103884 2110030203 A Oct. 1, 2023, 3:59 a.m. OK Python 3 TESTS 10 93 102400
225925838 sansen A Sept. 30, 2023, 2:42 p.m. OK Rust 2021 TESTS 10 31 4198400
225947435 andrey.m A Sept. 30, 2023, 2:55 p.m. OK Rust 2021 TESTS 10 46 512000
226021131 WaterColor2037 A Sept. 30, 2023, 4:18 p.m. OK Rust 2021 TESTS 10 46 4198400

remove filters

Back to search problems