CodeTON Round 1 (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
1656 CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 7200 89047463 March 24, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19578 ) C Make Equal With Mod PROGRAMMING math number theory sortings

B'You are given an array of n non-negative integers a_1, a_2, ldots, a_n . You can make the following operation: choose an integer x geq 2 and replace each number of the array by the remainder when dividing that number by x , that is, for all 1 <= q i <= q n set a_i to a_i bmod x . Determine if it is possible to make all the elements of the array equal by applying the operation zero or more times. The input consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Description of the test cases follows. The first line of each test case contains an integer n ( 1 <= q n <= q 10^5 ) -- the length of the array. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 10^9 ) where a_i is the i -th element of the array. The sum of n for all test cases is at most 2 cdot 10^5 . For each test case, print a line with YES if you can make all elements of the list equal by applying the operation. Otherwise, print NO. You may print each letter in any case (for example, "YES", "Yes", "yes", "yEs" will all be recognized as a positive answer). In the first test case, one can apply the operation with x = 3 to obtain the array [2, 2, 0, 2] , and then apply the operation with x = 2 to obtain [0, 0, 0, 0] . In the second test case, all numbers are already equal. In the fourth test case, applying the operation with x = 4 results in the array [1, 1, 1, 1] . '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
150853872 yqj_1234 C March 25, 2022, 5:58 a.m. OK GNU C++14 TESTS 8 31 921600
150854158 coding-beast C March 25, 2022, 6:01 a.m. OK GNU C++14 TESTS 8 46 409600
150852183 manohar_naga C March 25, 2022, 5:36 a.m. OK GNU C++14 TESTS 8 46 409600
150823314 Salfi_Sabit C March 24, 2022, 7:21 p.m. OK GNU C++14 TESTS 8 46 409600
150819758 RedDaisy C March 24, 2022, 6:44 p.m. OK GNU C++14 TESTS 8 46 409600
150818701 Essa2006 C March 24, 2022, 6:33 p.m. OK GNU C++14 TESTS 8 46 409600
150813017 _pai C March 24, 2022, 5:46 p.m. OK GNU C++14 TESTS 8 46 409600
150800816 SUZUKO_DAZE C March 24, 2022, 4:29 p.m. OK GNU C++14 TESTS 8 46 409600
150802635 ansh.21 C March 24, 2022, 4:32 p.m. OK GNU C++14 TESTS 8 46 409600
150839674 Hush C March 25, 2022, 1:34 a.m. OK GNU C++14 TESTS 8 46 819200
150843937 Chao_zi C March 25, 2022, 3:12 a.m. OK GNU C++17 TESTS 8 15 716800
150814035 misir C March 24, 2022, 5:53 p.m. OK GNU C++17 TESTS 8 46 409600
150850337 Mallika_ C March 25, 2022, 5:08 a.m. OK GNU C++17 TESTS 8 46 409600
150848304 rbl_p C March 25, 2022, 4:36 a.m. OK GNU C++17 TESTS 8 46 409600
150837750 Symon434 C March 25, 2022, 12:43 a.m. OK GNU C++17 TESTS 8 46 409600
150836000 soleil_ C March 24, 2022, 11:50 p.m. OK GNU C++17 TESTS 8 46 409600
150826929 Failure_One C March 24, 2022, 8:11 p.m. OK GNU C++17 TESTS 8 46 409600
150823962 abiramee C March 24, 2022, 7:29 p.m. OK GNU C++17 TESTS 8 46 409600
150822157 Quicksvolex C March 24, 2022, 7:08 p.m. OK GNU C++17 TESTS 8 46 409600
150820181 ivibhu05 C March 24, 2022, 6:48 p.m. OK GNU C++17 TESTS 8 46 409600
150850150 shirley_ C March 25, 2022, 5:06 a.m. OK GNU C++17 (64) TESTS 8 15 4608000
150807738 Maripium C March 24, 2022, 5:14 p.m. OK GNU C++17 (64) TESTS 8 30 409600
150819488 Kumarfeldspar C March 24, 2022, 6:41 p.m. OK GNU C++17 (64) TESTS 8 30 1331200
150846227 gesu C March 25, 2022, 3:58 a.m. OK GNU C++17 (64) TESTS 8 31 409600
150853791 zhaoyiping C March 25, 2022, 5:57 a.m. OK GNU C++17 (64) TESTS 8 31 409600
150848902 18985012367 C March 25, 2022, 4:46 a.m. OK GNU C++17 (64) TESTS 8 31 409600
150844822 RK_little C March 25, 2022, 3:29 a.m. OK GNU C++17 (64) TESTS 8 31 409600
150826560 dochenaj C March 24, 2022, 8:05 p.m. OK GNU C++17 (64) TESTS 8 31 409600
150817732 mashed_aloo C March 24, 2022, 6:24 p.m. OK GNU C++17 (64) TESTS 8 31 819200
150816273 jesse_pinkman_619 C March 24, 2022, 6:12 p.m. OK GNU C++17 (64) TESTS 8 31 819200
150820121 sakib.safwan C March 24, 2022, 6:47 p.m. OK GNU C++20 (64) TESTS 8 15 1126400
150813589 SalmaAhmed C March 24, 2022, 5:50 p.m. OK GNU C++20 (64) TESTS 8 30 409600
150850943 eklavya_k C March 25, 2022, 5:18 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150849827 Kritik09 C March 25, 2022, 5:01 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150849294 mzh C March 25, 2022, 4:52 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150849244 Spectre97 C March 25, 2022, 4:52 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150843236 SHEXINYI C March 25, 2022, 2:58 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150854225 Megurine C March 25, 2022, 6:02 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150851902 Nopenope C March 25, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150851443 PanC_ake C March 25, 2022, 5:25 a.m. OK GNU C++20 (64) TESTS 8 31 409600
150818843 koqo C March 24, 2022, 6:35 p.m. OK Go TESTS 8 202 4198400
150813342 Satyaa C March 24, 2022, 5:48 p.m. OK Java 11 TESTS 8 171 0
150843604 __Serendipity C March 25, 2022, 3:05 a.m. OK Java 11 TESTS 8 217 0
150851362 Yash9890 C March 25, 2022, 5:24 a.m. OK Java 11 TESTS 8 218 0
150825093 henrychenOutlook C March 24, 2022, 7:43 p.m. OK Java 11 TESTS 8 218 0
150847735 Tier33 C March 25, 2022, 4:27 a.m. OK Java 11 TESTS 8 233 0
150847925 MoonCoder1234 C March 25, 2022, 4:30 a.m. OK Java 11 TESTS 8 233 0
150803078 rishisingh7012 C March 24, 2022, 4:33 p.m. OK Java 11 TESTS 8 233 0
150847137 IcantSeeCsharp C March 25, 2022, 4:16 a.m. OK Java 11 TESTS 8 249 0
150852877 thakur6393 C March 25, 2022, 5:45 a.m. OK Java 11 TESTS 8 249 0
150824103 samitdas03 C March 24, 2022, 7:31 p.m. OK Java 11 TESTS 8 249 0
150822869 chinmaya21 C March 24, 2022, 7:16 p.m. OK Java 8 TESTS 8 109 0
150799981 aries.pratyush C March 24, 2022, 4:28 p.m. OK Java 8 TESTS 8 139 0
150831434 Abdallah_Ragab00 C March 24, 2022, 9:37 p.m. OK Java 8 TESTS 8 139 0
150830780 FirePegasus C March 24, 2022, 9:22 p.m. OK Java 8 TESTS 8 140 0
150824236 dkj C March 24, 2022, 7:33 p.m. OK Java 8 TESTS 8 155 0
150835592 -crazy_coder- C March 24, 2022, 11:39 p.m. OK Java 8 TESTS 8 171 2969600
150830779 ShivamMehta C March 24, 2022, 9:22 p.m. OK Java 8 TESTS 8 186 18329600
150812657 _Eyepatch C March 24, 2022, 5:43 p.m. OK Java 8 TESTS 8 187 0
150820916 kartikpapney C March 24, 2022, 6:55 p.m. OK Java 8 TESTS 8 202 0
150844328 Sharon C March 25, 2022, 3:19 a.m. OK Java 8 TESTS 8 202 0
150827797 Hakiobo C March 24, 2022, 8:24 p.m. OK Kotlin 1.4 TESTS 8 233 1433600
150815186 BruteForcee C March 24, 2022, 6:02 p.m. OK Kotlin 1.4 TESTS 8 327 10752000
150819345 qsqnk C March 24, 2022, 6:40 p.m. OK Kotlin 1.5 TESTS 8 389 7270400
150841221 VietHuy1 C March 25, 2022, 2:10 a.m. OK Kotlin 1.5 TESTS 8 467 4812800
150838287 F_Rio C March 25, 2022, 12:59 a.m. OK MS C++ 2017 TESTS 8 62 409600
150846040 LuckyInaba14 C March 25, 2022, 3:55 a.m. OK MS C++ 2017 TESTS 8 62 819200
150849668 xzzzzz C March 25, 2022, 4:58 a.m. OK MS C++ 2017 TESTS 8 171 819200
150799816 su2617 C March 24, 2022, 4:27 p.m. OK MS C++ 2017 TESTS 8 171 1638400
150820461 FflashkingF C March 24, 2022, 6:51 p.m. OK MS C++ 2017 TESTS 8 187 409600
150844509 19acm C March 25, 2022, 3:24 a.m. OK MS C++ 2017 TESTS 8 202 409600
150848002 huangjuanjuan C March 25, 2022, 4:31 a.m. OK MS C++ 2017 TESTS 8 202 819200
150811621 Tangerine C March 24, 2022, 5:36 p.m. OK MS C++ 2017 TESTS 8 202 819200
150844734 vmffotltka C March 25, 2022, 3:28 a.m. OK MS C++ 2017 TESTS 8 280 3276800
150803401 elia_morrison C March 24, 2022, 4:33 p.m. OK MS C++ 2017 TESTS 8 312 3276800
150838537 Olasiliksizci C March 25, 2022, 1:06 a.m. OK .NET Core C# TESTS 8 109 17510400
150812208 rsFalse C March 24, 2022, 5:40 p.m. OK Perl TESTS 8 249 21196800
150801108 rsFalse C March 24, 2022, 4:30 p.m. OK Perl TESTS 8 390 27750400
150828738 1_2_3_4_5_9 C March 24, 2022, 8:40 p.m. OK PyPy 2 TESTS 8 124 13107200
150815043 BigNerd24 C March 24, 2022, 6:01 p.m. OK PyPy 3 TESTS 8 155 17510400
150815015 YashNandwana C March 24, 2022, 6 p.m. OK PyPy 3 TESTS 8 296 12902400
150849094 kwin C March 25, 2022, 4:49 a.m. OK PyPy 3 TESTS 8 312 14336000
150823362 sigilius C March 24, 2022, 7:22 p.m. OK PyPy 3 TESTS 8 373 13209600
150819945 kudpolser C March 24, 2022, 6:45 p.m. OK PyPy 3 TESTS 8 389 12083200
150840408 MuhammadAMMAR C March 25, 2022, 1:52 a.m. OK PyPy 3 TESTS 8 389 14745600
150824417 loki0018 C March 24, 2022, 7:35 p.m. OK PyPy 3 TESTS 8 389 14745600
150802788 Raghavansh_Singla C March 24, 2022, 4:32 p.m. OK PyPy 3 TESTS 8 405 13312000
150813875 agGK C March 24, 2022, 5:52 p.m. OK PyPy 3 TESTS 8 452 11878400
150850126 sakshatmali C March 25, 2022, 5:05 a.m. OK PyPy 3-64 TESTS 8 124 17920000
150813818 Akbar_23 C March 24, 2022, 5:51 p.m. OK PyPy 3-64 TESTS 8 140 24678400
150839456 NKUCristiano C March 25, 2022, 1:28 a.m. OK PyPy 3-64 TESTS 8 187 25497600
150803067 pirate0 C March 24, 2022, 4:33 p.m. OK PyPy 3-64 TESTS 8 233 14131200
150836479 SalatL C March 25, 2022, 12:07 a.m. OK PyPy 3-64 TESTS 8 248 23142400
150802675 DarkHorse_it_iz C March 24, 2022, 4:32 p.m. OK PyPy 3-64 TESTS 8 264 21401600
150807807 vivek3141 C March 24, 2022, 5:14 p.m. OK PyPy 3-64 TESTS 8 264 21708800
150812534 satyamshrma C March 24, 2022, 5:42 p.m. OK PyPy 3-64 TESTS 8 280 20582400
150848277 p_r_a_n_a_v C March 25, 2022, 4:35 a.m. OK PyPy 3-64 TESTS 8 280 21196800
150800578 Rajveer_100 C March 24, 2022, 4:29 p.m. OK PyPy 3-64 TESTS 8 280 21299200
150822094 rajatguptakgp C March 24, 2022, 7:08 p.m. OK Python 3 TESTS 8 124 13619200
150819545 onkarhanchate14 C March 24, 2022, 6:41 p.m. OK Python 3 TESTS 8 155 9523200
150802918 Saiharsha1268 C March 24, 2022, 4:32 p.m. OK Python 3 TESTS 8 155 11673600
150815678 sp_Piyush C March 24, 2022, 6:07 p.m. OK Python 3 TESTS 8 155 12697600
150822153 nitanshritul C March 24, 2022, 7:08 p.m. OK Python 3 TESTS 8 156 9523200
150824622 abineth C March 24, 2022, 7:37 p.m. OK Python 3 TESTS 8 156 10035200
150821166 grininja C March 24, 2022, 6:57 p.m. OK Python 3 TESTS 8 171 7782400
150823648 keytime C March 24, 2022, 7:25 p.m. OK Python 3 TESTS 8 171 9318400
150849035 Dixit_here C March 25, 2022, 4:48 a.m. OK Python 3 TESTS 8 171 9523200
150823877 NenadDapic C March 24, 2022, 7:28 p.m. OK Python 3 TESTS 8 171 9523200

remove filters

Back to search problems