Codeforces Round 933 (Div. 3)

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
1941 Codeforces Round 933 (Div. 3) FINISHED False 8100 21655499 March 11, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6093 ) F Rudolf and Imbalance PROGRAMMING binary search greedy two pointers

B'Rudolf has prepared a set of n problems with complexities a_1 < a_2 < a_3 < ... < a_n . He is not entirely satisfied with the balance, so he wants to add at most one problem to fix it. For this, Rudolf came up with m models of problems and k functions. The complexity of the i -th model is d_i , and the complexity of the j -th function is f_j . To create a problem, he selects values i and j ( 1 <= i <= m , 1 <= j <= k ) and by combining the i -th model with the j -th function, he obtains a new problem with complexity d_i + f_j (a new element is inserted into the array a ). To determine the imbalance of the set, Rudolf sorts the complexities of the problems in ascending order and finds the largest value of a_i - a_{i - 1} ( i > 1 ). What is the minimum value of imbalance that Rudolf can achieve by adding at most one problem, created according to the described rules? The first line of the input contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The first line of each test case contains three integers n , m , and k ( 2 <= n <= 10^5 , 1 <= m, k <= 2 cdot 10^5 ) -- the number of prepared problems, the number of models, and the number of functions, respectively. The second line of each test case contains n integers a_1, a_2, a_3, ... a_n ( 1 <= a_i <= 2 cdot 10^9 , a_i < a_{i+1} ) -- the complexities of the prepared problems. The third line of each test case contains m integers d_1, d_2, d_3, ... d_m ( 1 <= d_i <= 10^9 ) -- the complexities of the models. The fourth line of each test case contains k integers f_1, f_2, f_3, ... f_k ( 1 <= f_i <= 10^9 ) -- the complexities of the functions. It is guaranteed that the sum of n over all testcases does not exceed 10^5 . It is guaranteed that the sum of m over all '...

Tutorials

127018

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
250858740 Mohamed_M.M.R F March 12, 2024, 12:07 a.m. OK C++14 (GCC 6-32) TESTS 10 171 2355200
250872808 yumingsk F March 12, 2024, 3:51 a.m. OK C++14 (GCC 6-32) TESTS 10 171 2457600
250827951 controlunit19 F March 11, 2024, 6:08 p.m. OK C++14 (GCC 6-32) TESTS 10 171 2867200
250877390 goldplus F March 12, 2024, 4:47 a.m. OK C++14 (GCC 6-32) TESTS 10 171 3584000
250863752 phongphu10097777 F March 12, 2024, 1:36 a.m. OK C++14 (GCC 6-32) TESTS 10 171 4812800
250838689 Hitler_Adolf F March 11, 2024, 7:39 p.m. OK C++14 (GCC 6-32) TESTS 10 171 5017600
250877047 goldplus F March 12, 2024, 4:44 a.m. OK C++14 (GCC 6-32) TESTS 10 186 3993600
250841571 katyal_01 F March 11, 2024, 8:05 p.m. OK C++14 (GCC 6-32) TESTS 10 186 3993600
250863536 GoymyGo F March 12, 2024, 1:33 a.m. OK C++14 (GCC 6-32) TESTS 10 187 3993600
250822127 Fenix_Crow F March 11, 2024, 5:30 p.m. OK C++14 (GCC 6-32) TESTS 10 187 3993600
250861795 threethreetwothree F March 12, 2024, 1:02 a.m. OK C++17 (GCC 7-32) TESTS 10 109 32460800
250861742 threethreetwothree F March 12, 2024, 1:02 a.m. OK C++17 (GCC 7-32) TESTS 10 140 32460800
250823979 unkn0t F March 11, 2024, 5:40 p.m. OK C++17 (GCC 7-32) TESTS 10 155 2048000
250870325 darcop F March 12, 2024, 3:19 a.m. OK C++17 (GCC 7-32) TESTS 10 155 2867200
250876404 xiaossr F March 12, 2024, 4:36 a.m. OK C++17 (GCC 7-32) TESTS 10 156 2048000
250871114 Learn_cute_k F March 12, 2024, 3:30 a.m. OK C++17 (GCC 7-32) TESTS 10 156 2048000
250851435 omeganot F March 11, 2024, 9:51 p.m. OK C++17 (GCC 7-32) TESTS 10 156 2048000
250841424 MaxKon F March 11, 2024, 8:04 p.m. OK C++17 (GCC 7-32) TESTS 10 156 2048000
250824380 liushengfeng_2023 F March 11, 2024, 5:43 p.m. OK C++17 (GCC 7-32) TESTS 10 156 2048000
250823279 liushengfeng_2023 F March 11, 2024, 5:36 p.m. OK C++17 (GCC 7-32) TESTS 10 156 2048000
250834431 nguyenquocthao00 F March 11, 2024, 6:59 p.m. OK Go TESTS 10 140 21196800
250827329 Rememorio F March 11, 2024, 6:03 p.m. OK Go TESTS 10 296 9523200
250851573 xorfftdp F March 11, 2024, 9:53 p.m. OK Java 21 TESTS 10 358 6348800
250825435 HWJHWJ F March 11, 2024, 5:50 p.m. OK Java 21 TESTS 10 404 9625600
250867335 mapleKing F March 12, 2024, 2:37 a.m. OK Java 21 TESTS 10 405 10240000
250871361 Zhanzhe_Lee F March 12, 2024, 3:33 a.m. OK Java 21 TESTS 10 420 8704000
250867115 mapleKing F March 12, 2024, 2:34 a.m. OK Java 21 TESTS 10 420 10035200
250824956 HWJHWJ F March 11, 2024, 5:47 p.m. OK Java 21 TESTS 10 436 10342400
250868178 mapleKing F March 12, 2024, 2:49 a.m. OK Java 21 TESTS 10 468 9728000
250822691 HWJHWJ F March 11, 2024, 5:33 p.m. OK Java 21 TESTS 10 482 10444800
250835259 egor4444ik F March 11, 2024, 7:06 p.m. OK Java 21 TESTS 10 498 9728000
250831178 is_this_greedy F March 11, 2024, 6:32 p.m. OK Java 21 TESTS 10 546 8294400
250824607 madmax_27 F March 11, 2024, 5:45 p.m. OK Java 8 TESTS 10 311 17715200
250825815 wat2 F March 11, 2024, 5:53 p.m. OK Java 8 TESTS 10 358 20582400
250854162 Yousef_Badr F March 11, 2024, 10:38 p.m. OK Java 8 TESTS 10 389 27033600
250841074 NerfThis F March 11, 2024, 8:01 p.m. OK Java 8 TESTS 10 467 25292800
250832575 samy10127 F March 11, 2024, 6:43 p.m. OK Java 8 TESTS 10 467 27136000
250874440 2100031465 F March 12, 2024, 4:11 a.m. OK Java 8 TESTS 10 1606 28672000
250824918 ahtoh_ F March 11, 2024, 5:47 p.m. OK Node.js TESTS 10 358 62156800
250876559 Shiso F March 12, 2024, 4:38 a.m. OK Node.js TESTS 10 546 75366400
250845009 Surajk21 F March 11, 2024, 8:38 p.m. OK PyPy 3-64 TESTS 10 343 40755200
250882884 whatCanISay-ggl F March 12, 2024, 5:41 a.m. OK PyPy 3-64 TESTS 10 373 40857600
250840446 kibr F March 11, 2024, 7:55 p.m. OK PyPy 3-64 TESTS 10 374 34611200
250845392 Surajk21 F March 11, 2024, 8:42 p.m. OK PyPy 3-64 TESTS 10 374 41267200
250848376 the_last_smilodon F March 11, 2024, 9:14 p.m. OK PyPy 3-64 TESTS 10 374 45875200
250857830 voicon F March 11, 2024, 11:49 p.m. OK PyPy 3-64 TESTS 10 405 52940800
250844785 shash4321 F March 11, 2024, 8:35 p.m. OK PyPy 3-64 TESTS 10 498 180531200
250868065 cybsbbb F March 12, 2024, 2:47 a.m. OK PyPy 3-64 TESTS 10 514 41164800
250839017 kidus72 F March 11, 2024, 7:42 p.m. OK PyPy 3-64 TESTS 10 529 36761600
250838971 kylianm7 F March 11, 2024, 7:41 p.m. OK PyPy 3-64 TESTS 10 529 36761600
250825276 OLOGY F March 11, 2024, 5:49 p.m. OK Python 2 TESTS 10 624 21606400
250826264 OLOGY F March 11, 2024, 5:56 p.m. OK Python 2 TESTS 10 639 21504000
250824900 OLOGY F March 11, 2024, 5:47 p.m. OK Python 2 TESTS 10 639 21504000
250826026 OLOGY F March 11, 2024, 5:54 p.m. OK Python 2 TESTS 10 654 21606400
250879988 Shalamagando F March 12, 2024, 5:16 a.m. OK Python 3 TESTS 10 498 40140800
250832996 aayush.mishra F March 11, 2024, 6:46 p.m. OK Python 3 TESTS 10 639 45465600
250854486 billythebishop4 F March 11, 2024, 10:44 p.m. OK Python 3 TESTS 10 2807 41267200
250837229 vstiff F March 11, 2024, 7:25 p.m. OK Rust 2021 TESTS 10 78 10444800
250835992 vstiff F March 11, 2024, 7:13 p.m. OK Rust 2021 TESTS 10 78 10444800

remove filters

Back to search problems