Codeforces Round 763 (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
1623 Codeforces Round 763 (Div. 2) FINISHED False 7200 91124699 Dec. 28, 2021, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12275 ) C Balanced Stone Heaps PROGRAMMING binary search greedy

B'There are n heaps of stone. The i -th heap has h_i stones. You want to change the number of stones in the heap by performing the following process once: What is the maximum number of stones in the smallest heap after the process? Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 2 cdot 10^5 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 3 <= n <= 2 cdot 10^5 ). The second lines of each test case contains n integers h_1, h_2, h_3, ldots, h_n ( 1 <= h_i <= 10^9 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, print the maximum number of stones that the smallest heap can contain. In the first test case, the initial heap sizes are [1, 2, 10, 100] . We can move the stones as follows. In the second test case, the last heap is 1 , and we can not increase its size. In the third test case, it is better not to move any stones. In the last test case, the final achievable configuration of the heaps can be [3, 5, 3, 4, 3, 3] . '...

Tutorials

Codeforces Round #763 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
140936533 daut-dlang C Dec. 28, 2021, 3:11 p.m. OK D TESTS 48 171 54476800
140935530 allegrogiken C Dec. 28, 2021, 3:08 p.m. OK D TESTS 48 265 37683200
140968985 darkkcyan C Dec. 28, 2021, 10:03 p.m. OK FPC TESTS 48 264 1638400
140981958 Zollo757347 C Dec. 29, 2021, 5:18 a.m. OK GNU C11 TESTS 48 93 1638400
140942319 RealArtist C Dec. 28, 2021, 3:33 p.m. OK GNU C11 TESTS 48 108 2457600
140969299 saker.hajji C Dec. 28, 2021, 10:15 p.m. OK GNU C11 TESTS 48 108 2457600
140931930 YtTheBot C Dec. 28, 2021, 2:55 p.m. OK GNU C11 TESTS 48 108 2457600
140944159 rainboy C Dec. 28, 2021, 4:01 p.m. OK GNU C11 TESTS 48 124 3174400
140947232 Linx. C Dec. 28, 2021, 4:21 p.m. OK GNU C11 TESTS 48 702 3174400
140973577 AstralLing C Dec. 29, 2021, 1:46 a.m. OK GNU C++14 TESTS 48 46 3686400
140952828 royalsflush C Dec. 28, 2021, 5:18 p.m. OK GNU C++14 TESTS 48 62 1638400
140980265 win10 C Dec. 29, 2021, 4:47 a.m. OK GNU C++14 TESTS 48 62 4505600
140983358 _bella_ciao_ C Dec. 29, 2021, 5:42 a.m. OK GNU C++14 TESTS 48 78 1638400
140957521 Nanami-Chiaki C Dec. 28, 2021, 6:14 p.m. OK GNU C++14 TESTS 48 78 1638400
140940951 alavrov C Dec. 28, 2021, 3:29 p.m. OK GNU C++14 TESTS 48 78 1638400
140938792 RoderickWen C Dec. 28, 2021, 3:20 p.m. OK GNU C++14 TESTS 48 78 1638400
140932921 dgsvygd C Dec. 28, 2021, 2:58 p.m. OK GNU C++14 TESTS 48 78 1638400
140947789 swk_swk C Dec. 28, 2021, 4:26 p.m. OK GNU C++14 TESTS 48 78 2457600
140974236 LBRhhhh C Dec. 29, 2021, 2:12 a.m. OK GNU C++14 TESTS 48 78 2457600
140944536 aves C Dec. 28, 2021, 4:02 p.m. OK GNU C++17 TESTS 48 62 1536000
140933183 WingsySgen C Dec. 28, 2021, 2:59 p.m. OK GNU C++17 TESTS 48 78 1536000
140956894 _LeMur_ C Dec. 28, 2021, 6:06 p.m. OK GNU C++17 TESTS 48 78 1638400
140945652 Ydot C Dec. 28, 2021, 4:08 p.m. OK GNU C++17 TESTS 48 78 1638400
140942346 PotremZ C Dec. 28, 2021, 3:33 p.m. OK GNU C++17 TESTS 48 78 1638400
140965430 Hozifa-Abulyaman C Dec. 28, 2021, 8:24 p.m. OK GNU C++17 TESTS 48 78 1638400
140973591 BlueHeart0621 C Dec. 29, 2021, 1:47 a.m. OK GNU C++17 TESTS 48 78 2457600
140938556 sunalwaysknows C Dec. 28, 2021, 3:19 p.m. OK GNU C++17 TESTS 48 78 2457600
140947376 arximed C Dec. 28, 2021, 4:22 p.m. OK GNU C++17 TESTS 48 93 819200
140936162 CreeperKnight C Dec. 28, 2021, 3:10 p.m. OK GNU C++17 TESTS 48 93 819200
140933123 N00Borz C Dec. 28, 2021, 2:59 p.m. OK GNU C++17 (64) TESTS 48 62 1638400
140937179 wistful23 C Dec. 28, 2021, 3:14 p.m. OK GNU C++17 (64) TESTS 48 62 1638400
140930478 TigerBear C Dec. 28, 2021, 2:50 p.m. OK GNU C++17 (64) TESTS 48 62 3174400
140940226 Saimun_Islam C Dec. 28, 2021, 3:26 p.m. OK GNU C++17 (64) TESTS 48 62 3174400
140973304 gqf123 C Dec. 29, 2021, 1:34 a.m. OK GNU C++17 (64) TESTS 48 62 3174400
140959883 morete C Dec. 28, 2021, 6:46 p.m. OK GNU C++17 (64) TESTS 48 62 6451200
140950396 coderjr C Dec. 28, 2021, 4:51 p.m. OK GNU C++17 (64) TESTS 48 62 16793600
140974411 yaoweiliu C Dec. 29, 2021, 2:18 a.m. OK GNU C++17 (64) TESTS 48 77 1638400
140944725 ianahao C Dec. 28, 2021, 4:03 p.m. OK GNU C++17 (64) TESTS 48 77 1638400
140935526 thehunterjames C Dec. 28, 2021, 3:08 p.m. OK GNU C++17 (64) TESTS 48 77 1638400
140934363 sakurahashu C Dec. 28, 2021, 3:04 p.m. OK GNU C++20 (64) TESTS 48 61 1638400
140937727 Snow_raw C Dec. 28, 2021, 3:16 p.m. OK GNU C++20 (64) TESTS 48 61 3174400
140937993 westsideganster C Dec. 28, 2021, 3:17 p.m. OK GNU C++20 (64) TESTS 48 61 3174400
140967518 cosenza C Dec. 28, 2021, 9:16 p.m. OK GNU C++20 (64) TESTS 48 62 1638400
140959456 salakhutdinov1 C Dec. 28, 2021, 6:40 p.m. OK GNU C++20 (64) TESTS 48 62 1638400
140978110 don2001 C Dec. 29, 2021, 4:01 a.m. OK GNU C++20 (64) TESTS 48 62 1638400
140982744 Lhohelhohehmm C Dec. 29, 2021, 5:32 a.m. OK GNU C++20 (64) TESTS 48 62 1638400
140977977 Boboge C Dec. 29, 2021, 3:58 a.m. OK GNU C++20 (64) TESTS 48 62 1638400
140977947 Zaychik C Dec. 29, 2021, 3:57 a.m. OK GNU C++20 (64) TESTS 48 62 1638400
140974441 happypotato1207 C Dec. 29, 2021, 2:19 a.m. OK GNU C++20 (64) TESTS 48 62 1638400
140944419 sersht C Dec. 28, 2021, 4:02 p.m. OK Go TESTS 48 561 19968000
140951016 MubtasimShahriar C Dec. 28, 2021, 4:58 p.m. OK Java 11 TESTS 48 202 0
140963858 ak_ankit C Dec. 28, 2021, 7:52 p.m. OK Java 11 TESTS 48 265 0
140948423 LucunJi C Dec. 28, 2021, 4:31 p.m. OK Java 11 TESTS 48 280 0
140952092 yogii_123 C Dec. 28, 2021, 5:09 p.m. OK Java 11 TESTS 48 295 204800
140940335 Tykonan C Dec. 28, 2021, 3:26 p.m. OK Java 11 TESTS 48 296 0
140937010 naveen4737 C Dec. 28, 2021, 3:13 p.m. OK Java 11 TESTS 48 311 102400
140961340 SaberXpro C Dec. 28, 2021, 7:07 p.m. OK Java 11 TESTS 48 311 102400
140982137 amritagg C Dec. 29, 2021, 5:21 a.m. OK Java 11 TESTS 48 327 0
140947641 long2142453426 C Dec. 28, 2021, 4:24 p.m. OK Java 11 TESTS 48 358 0
140932732 niolsson C Dec. 28, 2021, 2:57 p.m. OK Java 11 TESTS 48 373 4300800
140984044 DEMO23 C Dec. 29, 2021, 5:53 a.m. OK Java 8 TESTS 48 202 0
140972074 smahajan54842 C Dec. 29, 2021, 12:38 a.m. OK Java 8 TESTS 48 202 3174400
140946613 NoobAk C Dec. 28, 2021, 4:16 p.m. OK Java 8 TESTS 48 202 3686400
140936246 Aabhas99 C Dec. 28, 2021, 3:10 p.m. OK Java 8 TESTS 48 202 10137600
140953868 _anhTimeLimitExceeded C Dec. 28, 2021, 5:30 p.m. OK Java 8 TESTS 48 233 3686400
140946363 lzwjava C Dec. 28, 2021, 4:14 p.m. OK Java 8 TESTS 48 233 4505600
140973110 ytu_czl C Dec. 29, 2021, 1:26 a.m. OK Java 8 TESTS 48 249 0
140945251 kkkkush C Dec. 28, 2021, 4:06 p.m. OK Java 8 TESTS 48 249 3891200
140945764 NerfThis C Dec. 28, 2021, 4:09 p.m. OK Java 8 TESTS 48 249 3993600
140954956 lzwjava C Dec. 28, 2021, 5:43 p.m. OK Java 8 TESTS 48 249 4505600
140939132 linxiaotian C Dec. 28, 2021, 3:22 p.m. OK Kotlin 1.4 TESTS 48 530 8601600
140934972 _Astron C Dec. 28, 2021, 3:06 p.m. OK Kotlin 1.4 TESTS 48 639 20889600
140950693 wuchaojie1097 C Dec. 28, 2021, 4:54 p.m. OK Kotlin 1.4 TESTS 48 748 22016000
140948617 wuchaojie1097 C Dec. 28, 2021, 4:33 p.m. OK Kotlin 1.4 TESTS 48 764 20480000
140950289 wuchaojie1097 C Dec. 28, 2021, 4:50 p.m. OK Kotlin 1.4 TESTS 48 811 21811200
140948188 wuchaojie1097 C Dec. 28, 2021, 4:29 p.m. OK Kotlin 1.4 TESTS 48 841 20480000
140947793 wuchaojie1097 C Dec. 28, 2021, 4:26 p.m. OK Kotlin 1.4 TESTS 48 888 19865600
140947488 wuchaojie1097 C Dec. 28, 2021, 4:23 p.m. OK Kotlin 1.4 TESTS 48 904 19968000
140946948 wuchaojie1097 C Dec. 28, 2021, 4:18 p.m. OK Kotlin 1.4 TESTS 48 982 19865600
140949753 mishagam C Dec. 28, 2021, 4:44 p.m. OK Kotlin 1.5 TESTS 48 436 17510400
140934936 CrispX_X C Dec. 28, 2021, 3:06 p.m. OK Kotlin 1.5 TESTS 48 467 17510400
140984092 sgly33 C Dec. 29, 2021, 5:54 a.m. OK MS C++ 2017 TESTS 48 218 1638400
140980014 Agumon C Dec. 29, 2021, 4:42 a.m. OK MS C++ 2017 TESTS 48 234 1638400
140979669 vjudge2 C Dec. 29, 2021, 4:36 a.m. OK MS C++ 2017 TESTS 48 264 1638400
140977935 A_Pier C Dec. 29, 2021, 3:57 a.m. OK MS C++ 2017 TESTS 48 265 1638400
140981858 bhanu_nelluri C Dec. 29, 2021, 5:16 a.m. OK MS C++ 2017 TESTS 48 280 1638400
140934876 gerald422442 C Dec. 28, 2021, 3:06 p.m. OK MS C++ 2017 TESTS 48 343 3174400
140947869 M7md3sam070 C Dec. 28, 2021, 4:27 p.m. OK MS C++ 2017 TESTS 48 358 4812800
140936156 fatant C Dec. 28, 2021, 3:10 p.m. OK MS C++ 2017 TESTS 48 358 4812800
140950183 dino_merlin C Dec. 28, 2021, 4:49 p.m. OK MS C++ 2017 TESTS 48 404 4812800
140973039 SinaLIze C Dec. 29, 2021, 1:23 a.m. OK MS C++ 2017 TESTS 48 639 3174400
140944355 kakel_san C Dec. 28, 2021, 4:01 p.m. OK .NET Core C# TESTS 48 233 54579200
140940501 you1234 C Dec. 28, 2021, 3:27 p.m. OK PyPy 2 TESTS 48 202 28672000
140964876 sangram03 C Dec. 28, 2021, 8:13 p.m. OK PyPy 2 TESTS 48 280 25497600
140966976 OLOGY C Dec. 28, 2021, 9:01 p.m. OK PyPy 2 TESTS 48 327 18841600
140935379 14_15_16 C Dec. 28, 2021, 3:07 p.m. OK PyPy 2 TESTS 48 342 27033600
140944815 1_2_3_4_5_9 C Dec. 28, 2021, 4:03 p.m. OK PyPy 2 TESTS 48 342 27033600
140944480 OLOGY C Dec. 28, 2021, 4:02 p.m. OK PyPy 2 TESTS 48 389 18841600
140944576 Marshmello C Dec. 28, 2021, 4:02 p.m. OK PyPy 2 TESTS 48 997 19353600
140934914 Beacon C Dec. 28, 2021, 3:06 p.m. OK PyPy 3 TESTS 48 280 26112000
140945121 sangram03 C Dec. 28, 2021, 4:05 p.m. OK PyPy 3 TESTS 48 327 27750400
140964838 sangram03 C Dec. 28, 2021, 8:12 p.m. OK PyPy 3 TESTS 48 327 31232000
140976046 Bad_day_toCode C Dec. 29, 2021, 3:10 a.m. OK PyPy 3 TESTS 48 343 25600000
140972582 Liberator187 C Dec. 29, 2021, 1:02 a.m. OK PyPy 3 TESTS 48 373 22323200
140947970 Justin_Foley C Dec. 28, 2021, 4:28 p.m. OK PyPy 3 TESTS 48 374 22630400
140969796 whatshisbucket C Dec. 28, 2021, 10:33 p.m. OK PyPy 3 TESTS 48 405 22732800
140966751 unknownSolver C Dec. 28, 2021, 8:55 p.m. OK PyPy 3 TESTS 48 405 25088000
140938771 nrkt C Dec. 28, 2021, 3:20 p.m. OK PyPy 3 TESTS 48 405 25088000
140956958 SgnJp C Dec. 28, 2021, 6:07 p.m. OK PyPy 3 TESTS 48 436 19353600
140932289 googol_S0 C Dec. 28, 2021, 2:56 p.m. OK PyPy 3-64 TESTS 48 296 35123200
140957938 nitish420 C Dec. 28, 2021, 6:19 p.m. OK PyPy 3-64 TESTS 48 312 38809600
140957514 four2zero C Dec. 28, 2021, 6:14 p.m. OK PyPy 3-64 TESTS 48 312 38809600
140932677 lemiao12 C Dec. 28, 2021, 2:57 p.m. OK PyPy 3-64 TESTS 48 327 31232000
140950398 bjy C Dec. 28, 2021, 4:51 p.m. OK PyPy 3-64 TESTS 48 327 32768000
140944853 AbnerShen C Dec. 28, 2021, 4:03 p.m. OK PyPy 3-64 TESTS 48 358 40140800
140975709 nicku123 C Dec. 29, 2021, 3 a.m. OK PyPy 3-64 TESTS 48 374 35328000
140932636 lucifer1004 C Dec. 28, 2021, 2:57 p.m. OK PyPy 3-64 TESTS 48 405 38092800
140936297 ikoma C Dec. 28, 2021, 3:11 p.m. OK PyPy 3-64 TESTS 48 420 38400000
140936316 jogepari C Dec. 28, 2021, 3:11 p.m. OK PyPy 3-64 TESTS 48 436 34099200
140978118 kiwiyou C Dec. 29, 2021, 4:01 a.m. OK Rust 2021 TESTS 48 46 6348800
140944648 Spheniscine C Dec. 28, 2021, 4:02 p.m. OK Rust 2021 TESTS 48 78 1638400
140952914 qwerty787788 C Dec. 28, 2021, 5:19 p.m. OK Rust 2021 TESTS 48 109 4812800
140973123 Avanta C Dec. 29, 2021, 1:27 a.m. OK Rust 2021 TESTS 48 124 1638400
140973166 Avanta C Dec. 29, 2021, 1:29 a.m. OK Rust 2021 TESTS 48 140 1638400
140973107 Avanta C Dec. 29, 2021, 1:26 a.m. OK Rust 2021 TESTS 48 140 1638400
140954414 clause C Dec. 28, 2021, 5:36 p.m. OK Rust 2021 TESTS 48 155 819200
140940289 takezawa C Dec. 28, 2021, 3:26 p.m. OK Rust 2021 TESTS 48 186 7884800
140940630 bqn C Dec. 28, 2021, 3:28 p.m. OK Rust 2021 TESTS 48 264 8396800

remove filters

Back to search problems