CodeTON Round 7 (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
1896 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 9000 36256163 Nov. 25, 2023, 2:50 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27375 ) A Jagged Swaps PROGRAMMING sortings

B'You are given a permutation ^ dagger a of size n . You can do the following operation Determine whether it is possible to sort the permutation after a finite number of operations. ^ dagger A permutation is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, [2,3,1,5,4] is a permutation, but [1,2,2] is not a permutation ( 2 appears twice in the array) and [1,3,4] is also not a permutation ( n=3 but there is 4 in the array). Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 5000 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 3 <= n <= 10 ) -- the size of the permutation. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= n ) -- the elements of permutation a . For each test case, print "YES" if it is possible to sort the permutation, and "NO" otherwise. You may print each letter in any case (for example, "YES", "Yes", "yes", "yEs" will all be recognized as positive answer). In the first test case, the permutation is already sorted. In the second test case, we can choose index i=2 as 1<3 and 3>2 to form [1, 2, 3, 5, 4] . Then, we can choose index i=4 as 3<5 and 5>4 to form [1, 2, 3, 4, 5] . In the third test case, it can be proven that it is impossible to sort the permutation. '...

Tutorials

CodeTON Round 7 (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
234322229 Anastasiya_Andreevna A Nov. 25, 2023, 7:11 p.m. OK C# 10 TESTS 4 62 2150400
234343505 bluemegane A Nov. 26, 2023, 1:39 a.m. OK C# 8 TESTS 4 93 2764800
234355481 Rdx_112 A Nov. 26, 2023, 5:18 a.m. OK Clang++17 Diagnostics TESTS 4 187 0
234342609 sanjanakundliya01 A Nov. 26, 2023, 1:21 a.m. OK Clang++17 Diagnostics TESTS 4 202 0
234328247 NenadDapic A Nov. 25, 2023, 8:24 p.m. OK FPC TESTS 4 31 102400
234315219 _anjum_ A Nov. 25, 2023, 6:04 p.m. OK GNU C11 TESTS 4 31 0
234318772 Gautam_Gandhi A Nov. 25, 2023, 6:34 p.m. OK GNU C11 TESTS 4 31 0
234326060 Tarek00t A Nov. 25, 2023, 7:55 p.m. OK GNU C11 TESTS 4 31 0
234347021 2374329956 A Nov. 26, 2023, 2:51 a.m. OK GNU C11 TESTS 4 31 0
234353037 shrijat2601 A Nov. 26, 2023, 4:39 a.m. OK GNU C11 TESTS 4 31 0
234302055 yaoyin A Nov. 25, 2023, 4:56 p.m. OK GNU C11 TESTS 4 31 0
234303811 sidOP21 A Nov. 25, 2023, 5:02 p.m. OK GNU C11 TESTS 4 31 0
234295548 shenlongzunzhe A Nov. 25, 2023, 4:34 p.m. OK GNU C11 TESTS 4 31 0
234305400 retextesla A Nov. 25, 2023, 5:08 p.m. OK GNU C11 TESTS 4 31 0
234305275 ShahedCoU A Nov. 25, 2023, 5:07 p.m. OK GNU C11 TESTS 4 31 0
234319649 Jones_K A Nov. 25, 2023, 6:43 p.m. OK GNU C++14 TESTS 4 15 0
234314864 itsme_pranetha A Nov. 25, 2023, 6:01 p.m. OK GNU C++14 TESTS 4 15 0
234293476 jiangxiaocan A Nov. 25, 2023, 4:26 p.m. OK GNU C++14 TESTS 4 15 0
234357750 yizhilurenjia A Nov. 26, 2023, 5:51 a.m. OK GNU C++14 TESTS 4 15 0
234352866 bb_16 A Nov. 26, 2023, 4:36 a.m. OK GNU C++14 TESTS 4 15 0
234346271 TrendBattles A Nov. 26, 2023, 2:36 a.m. OK GNU C++14 TESTS 4 15 0
234320820 sherifmesba A Nov. 25, 2023, 6:55 p.m. OK GNU C++14 TESTS 4 15 0
234341052 cslgz09422108 A Nov. 26, 2023, 12:40 a.m. OK GNU C++14 TESTS 4 15 102400
234350109 Konggee. A Nov. 26, 2023, 3:49 a.m. OK GNU C++14 TESTS 4 15 1638400
234292623 spectorcodes A Nov. 25, 2023, 4:24 p.m. OK GNU C++14 TESTS 4 15 3993600
234338784 Sonic444 A Nov. 25, 2023, 11:31 p.m. OK GNU C++17 TESTS 4 0 0
234320936 nitvjudge2 A Nov. 25, 2023, 6:56 p.m. OK GNU C++17 TESTS 4 0 1740800
234357409 Yeahh_ A Nov. 26, 2023, 5:46 a.m. OK GNU C++17 TESTS 4 15 0
234356289 mH4S4N A Nov. 26, 2023, 5:29 a.m. OK GNU C++17 TESTS 4 15 0
234354402 safin17.8 A Nov. 26, 2023, 5:02 a.m. OK GNU C++17 TESTS 4 15 0
234354561 yyash01491625 A Nov. 26, 2023, 5:04 a.m. OK GNU C++17 TESTS 4 15 0
234353248 sam_heuer A Nov. 26, 2023, 4:43 a.m. OK GNU C++17 TESTS 4 15 0
234352872 axkkkkkkkkk A Nov. 26, 2023, 4:36 a.m. OK GNU C++17 TESTS 4 15 0
234358134 AlexQA A Nov. 26, 2023, 5:57 a.m. OK GNU C++17 TESTS 4 15 0
234357549 subeer A Nov. 26, 2023, 5:48 a.m. OK GNU C++17 TESTS 4 15 0
234352137 _Kevin A Nov. 26, 2023, 4:23 a.m. OK GNU C++17 (64) TESTS 4 15 0
234357629 Alfa A Nov. 26, 2023, 5:49 a.m. OK GNU C++17 (64) TESTS 4 15 0
234354886 alif_cse_ju A Nov. 26, 2023, 5:09 a.m. OK GNU C++17 (64) TESTS 4 15 0
234353359 fclvbfm934 A Nov. 26, 2023, 4:44 a.m. OK GNU C++17 (64) TESTS 4 15 0
234352478 iliyian A Nov. 26, 2023, 4:29 a.m. OK GNU C++17 (64) TESTS 4 15 0
234346996 Once_I_Liked_AGirl A Nov. 26, 2023, 2:50 a.m. OK GNU C++17 (64) TESTS 4 15 0
234342010 -Complex- A Nov. 26, 2023, 1:07 a.m. OK GNU C++17 (64) TESTS 4 15 0
234341920 pp_orange A Nov. 26, 2023, 1:05 a.m. OK GNU C++17 (64) TESTS 4 15 0
234337818 enslaved A Nov. 25, 2023, 11:08 p.m. OK GNU C++17 (64) TESTS 4 15 0
234334376 Roaa_Abdelwhab A Nov. 25, 2023, 9:56 p.m. OK GNU C++17 (64) TESTS 4 15 0
234313397 manasraj007 A Nov. 25, 2023, 5:53 p.m. OK GNU C++20 (64) TESTS 4 0 0
234313833 AKM17 A Nov. 25, 2023, 5:55 p.m. OK GNU C++20 (64) TESTS 4 0 0
234319769 MUIabk A Nov. 25, 2023, 6:44 p.m. OK GNU C++20 (64) TESTS 4 0 0
234334800 Omar_Hamada A Nov. 25, 2023, 10:04 p.m. OK GNU C++20 (64) TESTS 4 0 0
234338405 Khaled_Al_Awad A Nov. 25, 2023, 11:22 p.m. OK GNU C++20 (64) TESTS 4 0 0
234338459 Padle_bsdk A Nov. 25, 2023, 11:23 p.m. OK GNU C++20 (64) TESTS 4 0 0
234352154 LuSter_Maker A Nov. 26, 2023, 4:23 a.m. OK GNU C++20 (64) TESTS 4 0 0
234353187 tranxuantruong A Nov. 26, 2023, 4:41 a.m. OK GNU C++20 (64) TESTS 4 0 0
234353369 yasar_arafath A Nov. 26, 2023, 4:44 a.m. OK GNU C++20 (64) TESTS 4 0 0
234357211 dark_ethics A Nov. 26, 2023, 5:43 a.m. OK GNU C++20 (64) TESTS 4 0 0
234352457 ajayg3059 A Nov. 26, 2023, 4:29 a.m. OK Go TESTS 4 31 512000
234292216 jchen5012 A Nov. 25, 2023, 4:22 p.m. OK Java 11 TESTS 4 218 0
234302403 wise_flying_pigs A Nov. 25, 2023, 4:57 p.m. OK Java 11 TESTS 4 265 0
234316622 naveen_6n A Nov. 25, 2023, 6:14 p.m. OK Java 11 TESTS 4 296 0
234294423 SAGAR_2012 A Nov. 25, 2023, 4:30 p.m. OK Java 11 TESTS 4 296 0
234291440 Hang_We_Hong A Nov. 25, 2023, 4:19 p.m. OK Java 11 TESTS 4 311 0
234290418 CMRIT25_21R01A66B8 A Nov. 25, 2023, 4:16 p.m. OK Java 11 TESTS 4 311 0
234300968 pranshupareek A Nov. 25, 2023, 4:52 p.m. OK Java 11 TESTS 4 327 0
234323071 CutSandstone A Nov. 25, 2023, 7:21 p.m. OK Java 17 TESTS 4 171 4608000
234345578 zo56565 A Nov. 26, 2023, 2:23 a.m. OK Java 17 TESTS 4 202 0
234326979 Shaker_32 A Nov. 25, 2023, 8:07 p.m. OK Java 17 TESTS 4 202 102400
234313360 Nagendravarma A Nov. 25, 2023, 5:53 p.m. OK Java 17 TESTS 4 202 409600
234357923 TopCloser A Nov. 26, 2023, 5:54 a.m. OK Java 17 TESTS 4 218 409600
234355856 YARAGUTI_RADHA A Nov. 26, 2023, 5:23 a.m. OK Java 17 TESTS 4 234 614400
234315757 ZhannurM A Nov. 25, 2023, 6:07 p.m. OK Java 17 TESTS 4 265 512000
234304080 samurai_0028 A Nov. 25, 2023, 5:03 p.m. OK Java 17 TESTS 4 265 512000
234295591 Somya_Jha60 A Nov. 25, 2023, 4:34 p.m. OK Java 17 TESTS 4 280 0
234314169 ZhannurM A Nov. 25, 2023, 5:57 p.m. OK Java 17 TESTS 4 280 716800
234332757 Jiraiya_Kun A Nov. 25, 2023, 9:30 p.m. OK Java 21 TESTS 4 280 0
234318334 ollieys A Nov. 25, 2023, 6:29 p.m. OK Java 21 TESTS 4 327 0
234321725 karanboi A Nov. 25, 2023, 7:05 p.m. OK Java 21 TESTS 4 343 409600
234300617 rajpratap1760 A Nov. 25, 2023, 4:51 p.m. OK Java 21 TESTS 4 358 409600
234346110 mohamedhassan_c A Nov. 26, 2023, 2:33 a.m. OK Java 8 TESTS 4 108 5836800
234319048 Sumitsingh7 A Nov. 25, 2023, 6:36 p.m. OK Java 8 TESTS 4 156 5836800
234351086 priyaroy3370 A Nov. 26, 2023, 4:06 a.m. OK Java 8 TESTS 4 187 0
234332503 jkalvinjohn A Nov. 25, 2023, 9:25 p.m. OK Java 8 TESTS 4 202 0
234300032 mydhili_27 A Nov. 25, 2023, 4:49 p.m. OK Java 8 TESTS 4 202 0
234349790 marthapavan2002 A Nov. 26, 2023, 3:43 a.m. OK Java 8 TESTS 4 218 0
234319203 shrutii_028 A Nov. 25, 2023, 6:38 p.m. OK Java 8 TESTS 4 218 0
234325420 arvindf232 A Nov. 25, 2023, 7:48 p.m. OK Kotlin 1.6 TESTS 4 171 0
234354166 Ravitosh A Nov. 26, 2023, 4:58 a.m. OK MS C++ 2017 TESTS 4 31 0
234346265 blueorig A Nov. 26, 2023, 2:36 a.m. OK MS C++ 2017 TESTS 4 31 0
234296644 Carni1 A Nov. 25, 2023, 4:37 p.m. OK MS C++ 2017 TESTS 4 31 0
234302056 theshylove A Nov. 25, 2023, 4:56 p.m. OK MS C++ 2017 TESTS 4 31 204800
234351056 Lu_Kai A Nov. 26, 2023, 4:05 a.m. OK MS C++ 2017 TESTS 4 46 0
234294752 xc2004724 A Nov. 25, 2023, 4:31 p.m. OK MS C++ 2017 TESTS 4 46 0
234290297 ElBarbados A Nov. 25, 2023, 4:15 p.m. OK MS C++ 2017 TESTS 4 46 0
234290520 Wissal22 A Nov. 25, 2023, 4:16 p.m. OK MS C++ 2017 TESTS 4 46 409600
234320555 kotprogrammist A Nov. 25, 2023, 6:52 p.m. OK MS C++ 2017 TESTS 4 61 0
234303563 captainbuggy A Nov. 25, 2023, 5:01 p.m. OK MS C++ 2017 TESTS 4 61 0
234329218 akshaykumarpatil33 A Nov. 25, 2023, 8:37 p.m. OK Node.js TESTS 4 124 7168000
234321539 oneku16 A Nov. 25, 2023, 7:03 p.m. OK PyPy 3-64 TESTS 4 77 2969600
234323680 denilb A Nov. 25, 2023, 7:28 p.m. OK PyPy 3-64 TESTS 4 78 5632000
234318439 string_eureka A Nov. 25, 2023, 6:30 p.m. OK PyPy 3-64 TESTS 4 93 6041600
234353169 Ana_naS A Nov. 26, 2023, 4:41 a.m. OK PyPy 3-64 TESTS 4 108 5939200
234338776 RobinFromTheHood A Nov. 25, 2023, 11:31 p.m. OK PyPy 3-64 TESTS 4 108 6041600
234325301 Wizard_of_Orz A Nov. 25, 2023, 7:47 p.m. OK PyPy 3-64 TESTS 4 108 6246400
234315520 DarkTemplarDrop A Nov. 25, 2023, 6:06 p.m. OK PyPy 3-64 TESTS 4 124 6860800
234329069 abhaumik24 A Nov. 25, 2023, 8:35 p.m. OK PyPy 3-64 TESTS 4 124 9113600
234354481 nealzane A Nov. 26, 2023, 5:03 a.m. OK PyPy 3-64 TESTS 4 140 7168000
234349902 Sam_Jiang A Nov. 26, 2023, 3:45 a.m. OK PyPy 3-64 TESTS 4 140 9625600
234339249 Sparkle_Twilight A Nov. 25, 2023, 11:44 p.m. OK Python 3 TESTS 4 31 819200
234332342 eugalt A Nov. 25, 2023, 9:23 p.m. OK Python 3 TESTS 4 31 819200
234314959 eugalt A Nov. 25, 2023, 6:02 p.m. OK Python 3 TESTS 4 31 819200
234329113 Uruguay A Nov. 25, 2023, 8:35 p.m. OK Python 3 TESTS 4 61 102400
234301990 hossainahmedsiam70 A Nov. 25, 2023, 4:56 p.m. OK Python 3 TESTS 4 61 102400
234326928 0xROoT A Nov. 25, 2023, 8:06 p.m. OK Python 3 TESTS 4 61 1433600
234324405 Kimic A Nov. 25, 2023, 7:37 p.m. OK Python 3 TESTS 4 62 102400
234308401 fraxea A Nov. 25, 2023, 5:17 p.m. OK Python 3 TESTS 4 62 102400
234299115 CCO A Nov. 25, 2023, 4:46 p.m. OK Python 3 TESTS 4 62 102400
234353861 MUKESH__KUMAR A Nov. 26, 2023, 4:53 a.m. OK Python 3 TESTS 4 77 102400

remove filters

Back to search problems