Good Bye 2022: 2023 is NEAR

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
1770 Good Bye 2022: 2023 is NEAR FINISHED False 9000 64855463 Dec. 30, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23990 ) A Koxia and Whiteboards PROGRAMMING brute force greedy

B'Kiyora has n whiteboards numbered from 1 to n . Initially, the i -th whiteboard has the integer a_i written on it. Koxia performs m operations. The j -th operation is to choose one of the whiteboards and change the integer written on it to b_j . Find the maximum possible sum of integers written on the whiteboards after performing all m operations. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The description of test cases follows. The first line of each test case contains two integers n and m ( 1 <= n,m <= 100 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ). The third line of each test case contains m integers b_1, b_2, ldots, b_m ( 1 <= b_i <= 10^9 ). For each test case, output a single integer -- the maximum possible sum of integers written on whiteboards after performing all m operations. In the first test case, Koxia can perform the operations as follows: After performing all operations, the numbers on the three whiteboards are 4 , 5 and 3 respectively, and their sum is 12 . It can be proven that this is the maximum possible sum achievable. In the second test case, Koxia can perform the operations as follows: The sum is 4 + 5 = 9 . It can be proven that this is the maximum possible sum achievable. '...

Tutorials

Good Bye 2022 -- Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
187399831 chrisTris A Dec. 31, 2022, 2:35 a.m. OK C# 10 TESTS 8 62 3174400
187493505 arafamin A Jan. 1, 2023, 4:58 a.m. OK C# 10 TESTS 8 93 3379200
187493447 arafamin A Jan. 1, 2023, 4:57 a.m. OK C# 10 TESTS 8 109 3379200
187492924 arafamin A Jan. 1, 2023, 4:42 a.m. OK C# 10 TESTS 8 124 3481600
187493421 arafamin A Jan. 1, 2023, 4:56 a.m. OK C# 10 TESTS 8 124 3481600
187492816 arafamin A Jan. 1, 2023, 4:39 a.m. OK C# 10 TESTS 8 139 3276800
187492669 arafamin A Jan. 1, 2023, 4:34 a.m. OK C# 10 TESTS 8 155 3379200
187402381 bluemegane A Dec. 31, 2022, 3:36 a.m. OK C# 8 TESTS 8 249 3686400
187405229 Sasikumar_22 A Dec. 31, 2022, 4:37 a.m. OK Clang++17 Diagnostics TESTS 8 514 8396800
187425692 Darkshadow123624 A Dec. 31, 2022, 8:49 a.m. OK GNU C11 TESTS 8 61 0
187494915 Adiat A Jan. 1, 2023, 5:34 a.m. OK GNU C11 TESTS 8 62 0
187413751 Vansh_Motwani A Dec. 31, 2022, 6:34 a.m. OK GNU C11 TESTS 8 62 0
187451617 Harry_03 A Dec. 31, 2022, 1:47 p.m. OK GNU C11 TESTS 8 436 0
187449104 Codeforces.c A Dec. 31, 2022, 1:18 p.m. OK GNU C11 TESTS 8 468 0
187425122 hanguang A Dec. 31, 2022, 8:43 a.m. OK GNU C11 TESTS 8 592 819200
187404110 Pious A Dec. 31, 2022, 4:13 a.m. OK GNU C++14 TESTS 8 46 0
187407844 _fengxiaoyi A Dec. 31, 2022, 5:20 a.m. OK GNU C++14 TESTS 8 46 0
187411224 Kuldeep0901 A Dec. 31, 2022, 6:06 a.m. OK GNU C++14 TESTS 8 46 0
187413420 sk-pro A Dec. 31, 2022, 6:30 a.m. OK GNU C++14 TESTS 8 46 0
187439413 Fantasyli A Dec. 31, 2022, 11:28 a.m. OK GNU C++14 TESTS 8 46 0
187460143 ryan570 A Dec. 31, 2022, 3:29 p.m. OK GNU C++14 TESTS 8 46 0
187486788 icyM3tra A Jan. 1, 2023, 12:41 a.m. OK GNU C++14 TESTS 8 46 0
187462814 cvanshul A Dec. 31, 2022, 4:01 p.m. OK GNU C++14 TESTS 8 46 102400
187469578 Omik_07 A Dec. 31, 2022, 5:25 p.m. OK GNU C++14 TESTS 8 46 102400
187494613 kingdomsouth A Jan. 1, 2023, 5:27 a.m. OK GNU C++14 TESTS 8 46 102400
187412571 wananan A Dec. 31, 2022, 6:21 a.m. OK GNU C++17 TESTS 8 31 0
187415730 shreyas_25 A Dec. 31, 2022, 6:53 a.m. OK GNU C++17 TESTS 8 46 0
187403184 _past A Dec. 31, 2022, 3:53 a.m. OK GNU C++17 TESTS 8 46 0
187391089 aadarshsinha A Dec. 30, 2022, 9:30 p.m. OK GNU C++17 TESTS 8 46 0
187490871 dfd A Jan. 1, 2023, 3:36 a.m. OK GNU C++17 TESTS 8 46 0
187432152 Shorya_1 A Dec. 31, 2022, 10:04 a.m. OK GNU C++17 TESTS 8 46 0
187493177 oipotato A Jan. 1, 2023, 4:49 a.m. OK GNU C++17 TESTS 8 46 102400
187493625 pursuit_of_happiness A Jan. 1, 2023, 5:02 a.m. OK GNU C++17 TESTS 8 46 102400
187484066 Ajex0 A Dec. 31, 2022, 10:23 p.m. OK GNU C++17 TESTS 8 46 102400
187488416 Ap0stoL A Jan. 1, 2023, 1:57 a.m. OK GNU C++17 TESTS 8 46 102400
187397262 _chroneZ A Dec. 31, 2022, 1:14 a.m. OK GNU C++17 (64) TESTS 8 31 0
187445244 knatwila A Dec. 31, 2022, 12:35 p.m. OK GNU C++17 (64) TESTS 8 31 0
187403689 1potato2potato A Dec. 31, 2022, 4:04 a.m. OK GNU C++17 (64) TESTS 8 31 0
187394253 maxwellzen A Dec. 30, 2022, 11:10 p.m. OK GNU C++17 (64) TESTS 8 31 0
187391200 osamaBelal A Dec. 30, 2022, 9:33 p.m. OK GNU C++17 (64) TESTS 8 31 0
187420603 pursuit_of_happiness A Dec. 31, 2022, 7:47 a.m. OK GNU C++17 (64) TESTS 8 31 102400
187396270 Hytidel A Dec. 31, 2022, 12:36 a.m. OK GNU C++17 (64) TESTS 8 31 102400
187450447 lgxyes A Dec. 31, 2022, 1:34 p.m. OK GNU C++17 (64) TESTS 8 31 1638400
187492499 CongJyu A Jan. 1, 2023, 4:29 a.m. OK GNU C++17 (64) TESTS 8 46 0
187490524 RohitRKS A Jan. 1, 2023, 3:24 a.m. OK GNU C++17 (64) TESTS 8 46 0
187441892 randow A Dec. 31, 2022, 11:57 a.m. OK GNU C++20 (64) TESTS 8 15 8294400
187430029 aniket22 A Dec. 31, 2022, 9:39 a.m. OK GNU C++20 (64) TESTS 8 30 0
187471328 baokhanh A Dec. 31, 2022, 5:46 p.m. OK GNU C++20 (64) TESTS 8 31 0
187471202 Bitsman A Dec. 31, 2022, 5:44 p.m. OK GNU C++20 (64) TESTS 8 31 0
187471968 attaullah A Dec. 31, 2022, 5:54 p.m. OK GNU C++20 (64) TESTS 8 31 0
187486583 Primesz A Jan. 1, 2023, 12:29 a.m. OK GNU C++20 (64) TESTS 8 31 0
187490530 salrehan A Jan. 1, 2023, 3:24 a.m. OK GNU C++20 (64) TESTS 8 31 0
187491509 suvomoy_maitra A Jan. 1, 2023, 3:57 a.m. OK GNU C++20 (64) TESTS 8 31 0
187495031 mann_forces A Jan. 1, 2023, 5:37 a.m. OK GNU C++20 (64) TESTS 8 31 0
187495498 .Abhinav A Jan. 1, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 8 31 0
187407244 Traveller11 A Dec. 31, 2022, 5:12 a.m. OK Java 11 TESTS 8 187 0
187410078 La_Pagla A Dec. 31, 2022, 5:52 a.m. OK Java 11 TESTS 8 202 0
187411271 Jon.Snow_ A Dec. 31, 2022, 6:07 a.m. OK Java 11 TESTS 8 233 0
187399481 ArjunPatel A Dec. 31, 2022, 2:25 a.m. OK Java 11 TESTS 8 233 0
187391656 uttaran_das A Dec. 30, 2022, 9:44 p.m. OK Java 11 TESTS 8 233 0
187379346 wat2 A Dec. 30, 2022, 6:39 p.m. OK Java 11 TESTS 8 233 0
187486943 newdoct A Jan. 1, 2023, 12:50 a.m. OK Java 11 TESTS 8 234 0
187456433 Yousef_Badr A Dec. 31, 2022, 2:45 p.m. OK Java 11 TESTS 8 248 0
187432909 mi7hata1 A Dec. 31, 2022, 10:13 a.m. OK Java 11 TESTS 8 249 0
187416251 Harshit-Jain A Dec. 31, 2022, 6:59 a.m. OK Java 11 TESTS 8 249 0
187427016 Faizan2.0 A Dec. 31, 2022, 9:05 a.m. OK Java 17 TESTS 8 187 307200
187389511 NutrinoDaya A Dec. 30, 2022, 8:53 p.m. OK Java 17 TESTS 8 249 307200
187380958 mareshkau A Dec. 30, 2022, 6:55 p.m. OK Java 17 TESTS 8 264 614400
187384077 CrinklyGolem A Dec. 30, 2022, 7:31 p.m. OK Java 17 TESTS 8 265 716800
187399757 iamJatinYadav A Dec. 31, 2022, 2:33 a.m. OK Java 17 TESTS 8 265 5120000
187472092 KarMa_ A Dec. 31, 2022, 5:55 p.m. OK Java 17 TESTS 8 280 614400
187449394 Srisaivamshi A Dec. 31, 2022, 1:22 p.m. OK Java 17 TESTS 8 327 819200
187459318 Flatfoot A Dec. 31, 2022, 3:19 p.m. OK Java 17 TESTS 8 514 512000
187463897 balajirudrawar123 A Dec. 31, 2022, 4:15 p.m. OK Java 17 TESTS 8 529 921600
187409326 VX3007 A Dec. 31, 2022, 5:42 a.m. OK Java 17 TESTS 8 530 921600
187390430 Sussykin A Dec. 30, 2022, 9:14 p.m. OK Java 8 TESTS 8 109 0
187492523 deepoX A Jan. 1, 2023, 4:30 a.m. OK Java 8 TESTS 8 155 0
187439288 Mohamed308 A Dec. 31, 2022, 11:27 a.m. OK Java 8 TESTS 8 155 0
187423838 icpc_loser A Dec. 31, 2022, 8:28 a.m. OK Java 8 TESTS 8 155 0
187402680 Cromyl A Dec. 31, 2022, 3:41 a.m. OK Java 8 TESTS 8 155 0
187380303 Saoge A Dec. 30, 2022, 6:48 p.m. OK Java 8 TESTS 8 170 0
187392772 EricM08 A Dec. 30, 2022, 10:14 p.m. OK Java 8 TESTS 8 171 0
187380410 Saoge A Dec. 30, 2022, 6:49 p.m. OK Java 8 TESTS 8 171 0
187379345 Koka A Dec. 30, 2022, 6:39 p.m. OK Java 8 TESTS 8 171 0
187455683 pollu A Dec. 31, 2022, 2:37 p.m. OK Java 8 TESTS 8 171 17920000
187440949 katy_tokareva A Dec. 31, 2022, 11:45 a.m. OK JavaScript TESTS 8 155 3174400
187405313 eneskayiklik A Dec. 31, 2022, 4:39 a.m. OK Kotlin 1.7 TESTS 8 436 15462400
187473685 cptahahab A Dec. 31, 2022, 6:16 p.m. OK MS C++ 2017 TESTS 8 202 0
187401315 1434314294 A Dec. 31, 2022, 3:09 a.m. OK MS C++ 2017 TESTS 8 202 0
187456237 agniv123 A Dec. 31, 2022, 2:43 p.m. OK MS C++ 2017 TESTS 8 265 0
187413828 yosefeyad024 A Dec. 31, 2022, 6:35 a.m. OK MS C++ 2017 TESTS 8 265 102400
187383340 Kanon11 A Dec. 30, 2022, 7:21 p.m. OK Node.js TESTS 8 217 12595200
187382987 grawlixes A Dec. 30, 2022, 7:17 p.m. OK PyPy 3 TESTS 8 187 9420800
187393574 albertsbored A Dec. 30, 2022, 10:43 p.m. OK PyPy 3 TESTS 8 264 7987200
187439418 rajeshpenugonda A Dec. 31, 2022, 11:28 a.m. OK PyPy 3 TESTS 8 311 16588800
187429833 yashvashistha958 A Dec. 31, 2022, 9:37 a.m. OK PyPy 3 TESTS 8 343 10035200
187489639 Calabash_yang A Jan. 1, 2023, 2:49 a.m. OK PyPy 3 TESTS 8 389 9830400
187410410 torqueaj A Dec. 31, 2022, 5:56 a.m. OK PyPy 3 TESTS 8 389 9830400
187396490 Rute A Dec. 31, 2022, 12:45 a.m. OK PyPy 3 TESTS 8 436 10035200
187409556 Secret_19 A Dec. 31, 2022, 5:45 a.m. OK PyPy 3 TESTS 8 467 10240000
187414483 astha17 A Dec. 31, 2022, 6:41 a.m. OK PyPy 3 TESTS 8 514 9932800
187444862 xy961218 A Dec. 31, 2022, 12:31 p.m. OK PyPy 3-64 TESTS 8 124 4300800
187401944 Youarenotgood A Dec. 31, 2022, 3:25 a.m. OK PyPy 3-64 TESTS 8 124 6041600
187399973 Varad A Dec. 31, 2022, 2:38 a.m. OK PyPy 3-64 TESTS 8 124 6348800
187451004 anshumannandan A Dec. 31, 2022, 1:40 p.m. OK PyPy 3-64 TESTS 8 139 4915200
187425160 V.Karthik A Dec. 31, 2022, 8:43 a.m. OK PyPy 3-64 TESTS 8 140 7475200
187404295 kimdozzi A Dec. 31, 2022, 4:17 a.m. OK PyPy 3-64 TESTS 8 155 5529600
187407861 gesuta A Dec. 31, 2022, 5:21 a.m. OK PyPy 3-64 TESTS 8 171 5324800
187390733 CharmMaster A Dec. 30, 2022, 9:21 p.m. OK PyPy 3-64 TESTS 8 171 9420800
187380437 ManasJain A Dec. 30, 2022, 6:49 p.m. OK PyPy 3-64 TESTS 8 171 9625600
187414363 vwcpjhringimr A Dec. 31, 2022, 6:40 a.m. OK PyPy 3-64 TESTS 8 186 8806400
187445627 Rahulsust A Dec. 31, 2022, 12:39 p.m. OK Python 3 TESTS 8 124 204800
187407566 jicheboy A Dec. 31, 2022, 5:16 a.m. OK Python 3 TESTS 8 124 204800
187390432 Maanas23 A Dec. 30, 2022, 9:14 p.m. OK Python 3 TESTS 8 124 204800
187383005 dmikhalin A Dec. 30, 2022, 7:17 p.m. OK Python 3 TESTS 8 124 204800
187438414 deepkalsariya A Dec. 31, 2022, 11:16 a.m. OK Python 3 TESTS 8 139 512000
187461509 arjo A Dec. 31, 2022, 3:46 p.m. OK Python 3 TESTS 8 139 614400
187432122 kumar_333 A Dec. 31, 2022, 10:04 a.m. OK Python 3 TESTS 8 140 1638400
187433852 nagarjuna97c A Dec. 31, 2022, 10:23 a.m. OK Python 3 TESTS 8 155 512000
187379975 bkifhr9 A Dec. 30, 2022, 6:45 p.m. OK Python 3 TESTS 8 155 512000
187429300 prabal10 A Dec. 31, 2022, 9:30 a.m. OK Python 3 TESTS 8 155 614400
187464549 vjudge2 A Dec. 31, 2022, 4:24 p.m. OK Rust 2021 TESTS 8 15 307200
187397889 Spheniscine A Dec. 31, 2022, 1:37 a.m. OK Rust 2021 TESTS 8 31 102400
187467403 bkifhr7 A Dec. 31, 2022, 5 p.m. OK Rust 2021 TESTS 8 31 307200
187464932 rumanbhuiyan A Dec. 31, 2022, 4:29 p.m. OK Rust 2021 TESTS 8 46 307200
187464377 bkifhr7 A Dec. 31, 2022, 4:22 p.m. OK Rust 2021 TESTS 8 46 307200

remove filters

Back to search problems