CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!)

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
1870 CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 8100 36775499 Sept. 18, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19118 ) A MEXanized Array PROGRAMMING constructive algorithms greedy math

B'You are given three non-negative integers n , k , and x . Find the maximum possible sum of elements in an array consisting of non-negative integers, which has n elements, its MEX is equal to k , and all its elements do not exceed x . If such an array does not exist, output -1 . The MEX (minimum excluded) of an array is the smallest non-negative integer that does not belong to the array. For instance: The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. Then follows the description of the test cases. The only line of each test case contains three integers n , k , and x ( 1 <= q n, k, x <= q 200 ). For each test case, output a single number -- the maximum sum of elements in a valid array, or -1 , if such an array does not exist. In the first test case, the maximum sum is 7 , and one of the valid arrays is [0, 1, 2, 2, 2] . In the second test case, there are no valid arrays of length n . In the third test case, the maximum sum is 57 , and one of the valid arrays is [0, 1, 28, 28] . '...

Tutorials

CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
223957290 bluemegane A Sept. 18, 2023, 10:14 p.m. OK C# 8 TESTS 6 77 204800
223915057 murad__00 A Sept. 18, 2023, 4:41 p.m. OK GNU C11 TESTS 6 15 0
223950871 nestor_makhno A Sept. 18, 2023, 8:19 p.m. OK GNU C11 TESTS 6 15 0
223936234 whoami13 A Sept. 18, 2023, 7:19 p.m. OK GNU C11 TESTS 6 15 0
223933313 m_d_k_13 A Sept. 18, 2023, 6:50 p.m. OK GNU C11 TESTS 6 15 0
223933969 Mubasshir_15 A Sept. 18, 2023, 6:56 p.m. OK GNU C11 TESTS 6 30 0
223922789 THK_235 A Sept. 18, 2023, 5:33 p.m. OK GNU C11 TESTS 6 31 0
223975738 deveshpandat A Sept. 19, 2023, 4:24 a.m. OK GNU C11 TESTS 7 31 0
223975590 withluv A Sept. 19, 2023, 4:21 a.m. OK GNU C11 TESTS 7 31 0
223952328 PRINCE_BRUR A Sept. 18, 2023, 8:39 p.m. OK GNU C11 TESTS 6 31 0
223926458 dex_morgan A Sept. 18, 2023, 5:56 p.m. OK GNU C11 TESTS 6 31 0
223975781 nidhichaudhary2002 A Sept. 19, 2023, 4:25 a.m. OK GNU C++14 TESTS 7 0 0
223982238 y_kx_b A Sept. 19, 2023, 6:02 a.m. OK GNU C++14 TESTS 7 0 0
223982221 DEV_MSI_75 A Sept. 19, 2023, 6:01 a.m. OK GNU C++14 TESTS 7 0 0
223980534 tang_mx A Sept. 19, 2023, 5:38 a.m. OK GNU C++14 TESTS 7 0 0
223979237 hewanying A Sept. 19, 2023, 5:19 a.m. OK GNU C++14 TESTS 7 0 0
223978948 DreamLover1 A Sept. 19, 2023, 5:15 a.m. OK GNU C++14 TESTS 7 0 0
223972629 EdGrass A Sept. 19, 2023, 3:33 a.m. OK GNU C++14 TESTS 7 0 0
223967495 lu_noodles A Sept. 19, 2023, 2:24 a.m. OK GNU C++14 TESTS 7 0 0
223964160 reclusive A Sept. 19, 2023, 1:18 a.m. OK GNU C++14 TESTS 6 0 0
223962151 zltzlt A Sept. 19, 2023, 12:32 a.m. OK GNU C++14 TESTS 6 0 0
223971575 xgyx A Sept. 19, 2023, 3:15 a.m. OK GNU C++17 TESTS 7 0 0
223971869 TheGoatt A Sept. 19, 2023, 3:20 a.m. OK GNU C++17 TESTS 7 0 0
223972328 Newbie_Learner18 A Sept. 19, 2023, 3:27 a.m. OK GNU C++17 TESTS 7 0 0
223972331 MinhThang A Sept. 19, 2023, 3:27 a.m. OK GNU C++17 TESTS 7 0 0
223973170 hajrs9921 A Sept. 19, 2023, 3:42 a.m. OK GNU C++17 TESTS 7 0 0
223973717 firizky A Sept. 19, 2023, 3:51 a.m. OK GNU C++17 TESTS 7 0 0
223978773 Phu123 A Sept. 19, 2023, 5:13 a.m. OK GNU C++17 TESTS 7 0 0
223980732 vineet_chauhan A Sept. 19, 2023, 5:41 a.m. OK GNU C++17 TESTS 7 0 0
223981789 swarajrb7 A Sept. 19, 2023, 5:56 a.m. OK GNU C++17 TESTS 7 0 0
223982234 guptarahul6176 A Sept. 19, 2023, 6:01 a.m. OK GNU C++17 TESTS 7 0 0
223978098 AyushPatel_03 A Sept. 19, 2023, 5:03 a.m. OK GNU C++17 (64) TESTS 7 0 0
223977928 youmi_45 A Sept. 19, 2023, 5:01 a.m. OK GNU C++17 (64) TESTS 7 0 0
223974014 Owmicron A Sept. 19, 2023, 3:56 a.m. OK GNU C++17 (64) TESTS 7 0 0
223972658 zrzring A Sept. 19, 2023, 3:33 a.m. OK GNU C++17 (64) TESTS 7 0 0
223971999 Cyoan A Sept. 19, 2023, 3:22 a.m. OK GNU C++17 (64) TESTS 7 0 0
223971601 ZXG_DZXX A Sept. 19, 2023, 3:15 a.m. OK GNU C++17 (64) TESTS 7 0 0
223971375 himanshupatil45h A Sept. 19, 2023, 3:12 a.m. OK GNU C++17 (64) TESTS 7 0 0
223979726 humroush A Sept. 19, 2023, 5:26 a.m. OK GNU C++17 (64) TESTS 7 0 0
223971158 stan23456 A Sept. 19, 2023, 3:08 a.m. OK GNU C++17 (64) TESTS 7 0 0
223968518 -xry- A Sept. 19, 2023, 2:42 a.m. OK GNU C++17 (64) TESTS 7 0 0
223980550 jiuzheba A Sept. 19, 2023, 5:38 a.m. OK GNU C++20 (64) TESTS 7 0 0
223982126 _CYX A Sept. 19, 2023, 6 a.m. OK GNU C++20 (64) TESTS 7 0 0
223981924 ethico A Sept. 19, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 7 0 0
223981786 Wibo A Sept. 19, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 7 0 0
223981374 S_P_04 A Sept. 19, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 7 0 0
223980888 linjiangli A Sept. 19, 2023, 5:43 a.m. OK GNU C++20 (64) TESTS 7 0 0
223980710 binomanjesh A Sept. 19, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 7 0 0
223980700 the8888 A Sept. 19, 2023, 5:40 a.m. OK GNU C++20 (64) TESTS 7 0 0
223980546 Ask3421 A Sept. 19, 2023, 5:38 a.m. OK GNU C++20 (64) TESTS 7 0 0
223980118 lakshit3kava7 A Sept. 19, 2023, 5:32 a.m. OK GNU C++20 (64) TESTS 7 0 0
223938964 pakkapapad A Sept. 18, 2023, 7:52 p.m. OK Java 11 TESTS 6 186 0
223934348 ankitraj0551 A Sept. 18, 2023, 7 p.m. OK Java 11 TESTS 6 233 0
223924517 Uncle_Eddie A Sept. 18, 2023, 5:43 p.m. OK Java 11 TESTS 6 233 0
223917005 cborg A Sept. 18, 2023, 4:46 p.m. OK Java 11 TESTS 6 233 0
223980730 ManasiPandey A Sept. 19, 2023, 5:41 a.m. OK Java 11 TESTS 7 234 0
223913929 Ali6677 A Sept. 18, 2023, 4:39 p.m. OK Java 11 TESTS 6 280 0
223915205 Geethika_18 A Sept. 18, 2023, 4:42 p.m. OK Java 11 TESTS 6 404 0
223928196 .shinchan_ A Sept. 18, 2023, 6:09 p.m. OK Java 17 TESTS 6 170 409600
223974642 OSHA_Qualified A Sept. 19, 2023, 4:05 a.m. OK Java 17 TESTS 7 170 716800
223926944 maurya.rahul682 A Sept. 18, 2023, 5:59 p.m. OK Java 17 TESTS 6 171 204800
223929619 imvivekthakur A Sept. 18, 2023, 6:18 p.m. OK Java 17 TESTS 6 187 0
223968111 Ligh0x74 A Sept. 19, 2023, 2:36 a.m. OK Java 17 TESTS 7 187 512000
223926151 Nagendravarma A Sept. 18, 2023, 5:53 p.m. OK Java 17 TESTS 6 187 716800
223976369 nazzy_ A Sept. 19, 2023, 4:34 a.m. OK Java 17 TESTS 7 202 512000
223976852 erasharapov01 A Sept. 19, 2023, 4:42 a.m. OK Java 17 TESTS 7 202 614400
223976341 Prime369 A Sept. 19, 2023, 4:34 a.m. OK Java 17 TESTS 7 202 819200
223937646 rahiljakir A Sept. 18, 2023, 7:35 p.m. OK Java 17 TESTS 6 202 921600
223975387 Nanthakumar06 A Sept. 19, 2023, 4:18 a.m. OK Java 8 TESTS 7 109 0
223977680 priyaroy3370 A Sept. 19, 2023, 4:56 a.m. OK Java 8 TESTS 7 124 0
223926050 imstark007 A Sept. 18, 2023, 5:53 p.m. OK Java 8 TESTS 6 124 0
223932584 Sumitsingh7 A Sept. 18, 2023, 6:43 p.m. OK Java 8 TESTS 6 124 5836800
223965365 krishank08eng A Sept. 19, 2023, 1:43 a.m. OK Java 8 TESTS 7 140 0
223976381 olzhasss A Sept. 19, 2023, 4:34 a.m. OK Java 8 TESTS 7 155 0
223966906 Yolo666 A Sept. 19, 2023, 2:13 a.m. OK Java 8 TESTS 7 155 0
223949544 IOFYA A Sept. 18, 2023, 8 p.m. OK Java 8 TESTS 6 155 0
223928205 varshith_samineni A Sept. 18, 2023, 6:09 p.m. OK Java 8 TESTS 6 155 0
223916775 kdprasad0036 A Sept. 18, 2023, 4:45 p.m. OK Java 8 TESTS 6 156 0
223964818 Elsayed_Abdelkader A Sept. 19, 2023, 1:31 a.m. OK MS C++ 2017 TESTS 7 15 0
223953400 novoselkosta A Sept. 18, 2023, 8:56 p.m. OK MS C++ 2017 TESTS 6 15 0
223928445 garimanjohal A Sept. 18, 2023, 6:11 p.m. OK MS C++ 2017 TESTS 6 15 0
223927836 Souragni_2004 A Sept. 18, 2023, 6:06 p.m. OK MS C++ 2017 TESTS 6 15 0
223927303 garimanjohal A Sept. 18, 2023, 6:02 p.m. OK MS C++ 2017 TESTS 6 15 0
223975470 codesk A Sept. 19, 2023, 4:19 a.m. OK MS C++ 2017 TESTS 7 30 0
223927143 DRDIV A Sept. 18, 2023, 6:01 p.m. OK PyPy 3 TESTS 6 109 1331200
223938281 ShujanS A Sept. 18, 2023, 7:44 p.m. OK PyPy 3 TESTS 6 124 2662400
223937602 neetsk A Sept. 18, 2023, 7:35 p.m. OK PyPy 3 TESTS 6 139 2969600
223927711 Areal27 A Sept. 18, 2023, 6:05 p.m. OK PyPy 3 TESTS 6 140 2969600
223929598 samliu12 A Sept. 18, 2023, 6:18 p.m. OK PyPy 3 TESTS 6 155 4096000
223979385 betal A Sept. 19, 2023, 5:21 a.m. OK PyPy 3-64 TESTS 7 61 1638400
223934703 samchen123 A Sept. 18, 2023, 7:04 p.m. OK PyPy 3-64 TESTS 6 62 1740800
223933034 rmr A Sept. 18, 2023, 6:47 p.m. OK PyPy 3-64 TESTS 6 62 1843200
223927069 MenaceJn A Sept. 18, 2023, 6 p.m. OK PyPy 3-64 TESTS 6 62 2252800
223929889 I_Am_That A Sept. 18, 2023, 6:20 p.m. OK PyPy 3-64 TESTS 6 77 1638400
223971965 2020TAndr A Sept. 19, 2023, 3:22 a.m. OK PyPy 3-64 TESTS 7 77 1945600
223932853 rmr A Sept. 18, 2023, 6:45 p.m. OK PyPy 3-64 TESTS 6 77 1945600
223952633 frostD A Sept. 18, 2023, 8:43 p.m. OK PyPy 3-64 TESTS 6 77 2150400
223973531 Mohamed_Hamed A Sept. 19, 2023, 3:48 a.m. OK PyPy 3-64 TESTS 7 77 3379200
223966438 MdAbedin A Sept. 19, 2023, 2:05 a.m. OK PyPy 3-64 TESTS 7 92 1945600
223934426 Exyon75 A Sept. 18, 2023, 7:01 p.m. OK Python 3 TESTS 6 30 0
223978389 marcid A Sept. 19, 2023, 5:07 a.m. OK Python 3 TESTS 7 31 0
223974616 NoLongerHuman A Sept. 19, 2023, 4:04 a.m. OK Python 3 TESTS 7 31 0
223956986 Surovi03 A Sept. 18, 2023, 10:06 p.m. OK Python 3 TESTS 6 31 0
223936808 KriptYashka A Sept. 18, 2023, 7:26 p.m. OK Python 3 TESTS 6 31 0
223934207 alexpods A Sept. 18, 2023, 6:58 p.m. OK Python 3 TESTS 6 31 0
223934069 alexpods A Sept. 18, 2023, 6:57 p.m. OK Python 3 TESTS 6 31 0
223930873 adi2107 A Sept. 18, 2023, 6:27 p.m. OK Python 3 TESTS 6 31 0
223929177 amishkakru A Sept. 18, 2023, 6:16 p.m. OK Python 3 TESTS 6 31 0
223918345 noobesh A Sept. 18, 2023, 4:48 p.m. OK Python 3 TESTS 6 31 0
223918069 murad00 A Sept. 18, 2023, 4:48 p.m. OK Ruby 3 TESTS 6 233 102400

remove filters

Back to search problems