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 |
---|---|---|---|---|---|---|
1637 | Codeforces Global Round 19 | FINISHED | False | 9000 | 92589863 | Feb. 12, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 22509 ) | A | Sorting Parts | PROGRAMMING | sortings |
B'You have an array a of length n . You can exactly once select an integer len between 1 and n - 1 inclusively, and then sort in non-decreasing order the prefix of the array of length len and the suffix of the array of length n - len independently. For example, if the array is a = [3, 1, 4, 5, 2] , and you choose len = 2 , then after that the array will be equal to [1, 3, 2, 4, 5] . Could it be that after performing this operation, the array will not be sorted in non-decreasing order? There are several test cases in the input data. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. This is followed by the test cases description. The first line of each test case contains one integer n ( 2 <= q n <= q 10^4 ) -- the length of the array. The second line of the test case contains a sequence of integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 10^9 ) -- the array elements. It is guaranteed that the sum of n over all test cases does not exceed 10^4 . For each test case of input data, output "YES" (without quotes), if the array may be not sorted in non-decreasing order, output "NO" (without quotes) otherwise. You can output each letter in any case (uppercase or lowercase). In the first test case, it 's possible to select len = 1 , then after operation, the array will not be sorted in non-decreasing order and will be equal to [2, 1, 2] . In the second test case, it 's possible to select len = 3 , then after operation, the array will not be sorted in non-decreasing order and will be equal to [1, 2, 3, 1] . In the third test case, the array will be sorted in non-decreasing order for every possible len . '... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
146189062 | 1838641320 | A | Feb. 13, 2022, 3:32 a.m. | OK | Clang++17 Diagnostics | TESTS | 12 | 15 | 11468800 | ||
146199202 | btech10264.21 | A | Feb. 13, 2022, 6:03 a.m. | OK | Clang++17 Diagnostics | TESTS | 12 | 93 | 10547200 | ||
146164805 | __TheKing | A | Feb. 12, 2022, 7:01 p.m. | OK | GNU C11 | TESTS | 12 | 15 | 0 | ||
146157423 | Asif00010 | A | Feb. 12, 2022, 6:02 p.m. | OK | GNU C11 | TESTS | 12 | 15 | 0 | ||
146161907 | Asif00010 | A | Feb. 12, 2022, 6:33 p.m. | OK | GNU C11 | TESTS | 12 | 15 | 102400 | ||
146161366 | Akanta | A | Feb. 12, 2022, 6:28 p.m. | OK | GNU C11 | TESTS | 12 | 15 | 102400 | ||
146181721 | Changersh | A | Feb. 13, 2022, 12:27 a.m. | OK | GNU C11 | TESTS | 12 | 15 | 204800 | ||
146157407 | jahirulsarker01531 | A | Feb. 12, 2022, 6:02 p.m. | OK | GNU C11 | TESTS | 12 | 15 | 819200 | ||
146192097 | 2018339901318 | A | Feb. 13, 2022, 4:28 a.m. | OK | GNU C11 | TESTS | 12 | 30 | 0 | ||
146184865 | HansHo | A | Feb. 13, 2022, 1:54 a.m. | OK | GNU C++14 | TESTS | 12 | 0 | 0 | ||
146186702 | Lohia | A | Feb. 13, 2022, 2:39 a.m. | OK | GNU C++14 | TESTS | 12 | 0 | 102400 | ||
146181313 | Gongyiming | A | Feb. 13, 2022, 12:14 a.m. | OK | GNU C++14 | TESTS | 12 | 0 | 102400 | ||
146184154 | ofcoursenotsh | A | Feb. 13, 2022, 1:35 a.m. | OK | GNU C++14 | TESTS | 12 | 0 | 307200 | ||
146188478 | Xerxes_2002 | A | Feb. 13, 2022, 3:20 a.m. | OK | GNU C++14 | TESTS | 12 | 0 | 409600 | ||
146185893 | wknclizu | A | Feb. 13, 2022, 2:19 a.m. | OK | GNU C++14 | TESTS | 12 | 0 | 409600 | ||
146157062 | dhruvsahni89 | A | Feb. 12, 2022, 6 p.m. | OK | GNU C++14 | TESTS | 12 | 0 | 921600 | ||
146196054 | Dumped | A | Feb. 13, 2022, 5:27 a.m. | OK | GNU C++14 | TESTS | 12 | 15 | 0 | ||
146196977 | Ranvijan_123 | A | Feb. 13, 2022, 5:38 a.m. | OK | GNU C++14 | TESTS | 12 | 15 | 0 | ||
146198698 | jophyyjh | A | Feb. 13, 2022, 5:58 a.m. | OK | GNU C++14 | TESTS | 12 | 15 | 0 | ||
146192517 | Smit_prajapati01 | A | Feb. 13, 2022, 4:34 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 102400 | ||
146180122 | sacalgo | A | Feb. 12, 2022, 11:38 p.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146163847 | adi.ch | A | Feb. 12, 2022, 6:51 p.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146161534 | 100_percent_isnt_enough | A | Feb. 12, 2022, 6:29 p.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146184981 | abels1 | A | Feb. 13, 2022, 1:57 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146192658 | silents_killers | A | Feb. 13, 2022, 4:36 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146194438 | kartavyashankar | A | Feb. 13, 2022, 5:05 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146190033 | Sankalp-29 | A | Feb. 13, 2022, 3:51 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146188626 | beast_1 | A | Feb. 13, 2022, 3:24 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146198419 | Karan_Bishnoi | A | Feb. 13, 2022, 5:55 a.m. | OK | GNU C++17 | TESTS | 12 | 0 | 204800 | ||
146165937 | sm_shivam | A | Feb. 12, 2022, 7:15 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 0 | 0 | ||
146190069 | Fate_yo | A | Feb. 13, 2022, 3:52 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 0 | 0 | ||
146193886 | importlogic | A | Feb. 13, 2022, 4:57 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 0 | 102400 | ||
146175407 | Mohammad_Ayman | A | Feb. 12, 2022, 9:36 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 0 | 102400 | ||
146191528 | _YoU_KnOw_DeEpAk | A | Feb. 13, 2022, 4:18 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 0 | 204800 | ||
146193780 | Ryuk10 | A | Feb. 13, 2022, 4:55 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 0 | ||
146191856 | purushottam_1048 | A | Feb. 13, 2022, 4:24 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 0 | ||
146191591 | luogu_bot5 | A | Feb. 13, 2022, 4:19 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 0 | ||
146187833 | binminh01 | A | Feb. 13, 2022, 3:06 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 0 | ||
146195765 | aliasgar_45 | A | Feb. 13, 2022, 5:23 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 0 | ||
146180799 | lizhiqing | A | Feb. 13, 2022, midnight | OK | GNU C++20 (64) | TESTS | 12 | 0 | 0 | ||
146180556 | lizhiqing | A | Feb. 12, 2022, 11:53 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 0 | ||
146162626 | madorz | A | Feb. 12, 2022, 6:39 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 0 | ||
146161662 | Kripton2005 | A | Feb. 12, 2022, 6:30 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 0 | ||
146198822 | Baicai123 | A | Feb. 13, 2022, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 0 | ||
146189171 | ShauryaV | A | Feb. 13, 2022, 3:34 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 102400 | ||
146184666 | SHEXINYI | A | Feb. 13, 2022, 1:49 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 102400 | ||
146159925 | PM_2509 | A | Feb. 12, 2022, 6:16 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 102400 | ||
146197918 | adithegreat | A | Feb. 13, 2022, 5:49 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 102400 | ||
146162528 | sky_coder_ | A | Feb. 12, 2022, 6:38 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 0 | 102400 | ||
146167989 | vadimlog932 | A | Feb. 12, 2022, 7:40 p.m. | OK | Go | TESTS | 12 | 30 | 102400 | ||
146172793 | kotapatiswaraj0608 | A | Feb. 12, 2022, 8:50 p.m. | OK | Java 11 | TESTS | 12 | 155 | 0 | ||
146190536 | dhruvil8804 | A | Feb. 13, 2022, 4 a.m. | OK | Java 11 | TESTS | 12 | 156 | 0 | ||
146176079 | Toinfinity | A | Feb. 12, 2022, 9:49 p.m. | OK | Java 11 | TESTS | 12 | 156 | 0 | ||
146191836 | amuthanmannar4 | A | Feb. 13, 2022, 4:23 a.m. | OK | Java 11 | TESTS | 12 | 156 | 0 | ||
146197401 | syedmizbah | A | Feb. 13, 2022, 5:43 a.m. | OK | Java 11 | TESTS | 12 | 171 | 0 | ||
146195521 | Abhinavrajhans | A | Feb. 13, 2022, 5:20 a.m. | OK | Java 11 | TESTS | 12 | 171 | 0 | ||
146166163 | dhruvil_01 | A | Feb. 12, 2022, 7:18 p.m. | OK | Java 11 | TESTS | 12 | 171 | 0 | ||
146161035 | ra9853044 | A | Feb. 12, 2022, 6:25 p.m. | OK | Java 11 | TESTS | 12 | 171 | 0 | ||
146158141 | Stitch | A | Feb. 12, 2022, 6:05 p.m. | OK | Java 11 | TESTS | 12 | 171 | 0 | ||
146157693 | _abstract_ | A | Feb. 12, 2022, 6:03 p.m. | OK | Java 11 | TESTS | 12 | 171 | 0 | ||
146199110 | ssd17 | A | Feb. 13, 2022, 6:02 a.m. | OK | Java 8 | TESTS | 12 | 92 | 0 | ||
146179314 | kasyu | A | Feb. 12, 2022, 11:13 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146173421 | Abdallah_Ragab00 | A | Feb. 12, 2022, 9:01 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146173344 | Sussykin | A | Feb. 12, 2022, 8:59 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146170937 | getxy | A | Feb. 12, 2022, 8:20 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146169944 | themadknight45 | A | Feb. 12, 2022, 8:05 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146165268 | DEMO23 | A | Feb. 12, 2022, 7:07 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146163382 | dogranmol | A | Feb. 12, 2022, 6:46 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146153183 | DumplingLife | A | Feb. 12, 2022, 5:03 p.m. | OK | Java 8 | TESTS | 12 | 93 | 0 | ||
146162860 | ved20 | A | Feb. 12, 2022, 6:41 p.m. | OK | Java 8 | TESTS | 12 | 108 | 0 | ||
146164041 | ChirkovM | A | Feb. 12, 2022, 6:53 p.m. | OK | MS C++ 2017 | TESTS | 12 | 15 | 0 | ||
146175857 | pyromania_99 | A | Feb. 12, 2022, 9:45 p.m. | OK | MS C++ 2017 | TESTS | 12 | 15 | 102400 | ||
146177108 | swfads | A | Feb. 12, 2022, 10:13 p.m. | OK | MS C++ 2017 | TESTS | 12 | 30 | 102400 | ||
146150150 | _prashant_gupta_ | A | Feb. 12, 2022, 4:56 p.m. | OK | MS C++ 2017 | TESTS | 12 | 31 | 0 | ||
146157470 | temur_sherov | A | Feb. 12, 2022, 6:02 p.m. | OK | MS C++ 2017 | TESTS | 12 | 31 | 102400 | ||
146187660 | DikshantAvi | A | Feb. 13, 2022, 3:02 a.m. | OK | MS C++ 2017 | TESTS | 12 | 31 | 204800 | ||
146193253 | Tdyx | A | Feb. 13, 2022, 4:46 a.m. | OK | .NET Core C# | TESTS | 12 | 77 | 1126400 | ||
146157271 | 1_2_3_4_5_9 | A | Feb. 12, 2022, 6:01 p.m. | OK | PyPy 2 | TESTS | 12 | 77 | 1433600 | ||
146193960 | pufanyi | A | Feb. 13, 2022, 4:58 a.m. | OK | PyPy 3 | TESTS | 12 | 77 | 1945600 | ||
146176604 | nevermind___ | A | Feb. 12, 2022, 10:01 p.m. | OK | PyPy 3 | TESTS | 12 | 77 | 1945600 | ||
146165451 | HazemMahdy | A | Feb. 12, 2022, 7:09 p.m. | OK | PyPy 3 | TESTS | 12 | 77 | 1945600 | ||
146162807 | YouCanCallMeNoob | A | Feb. 12, 2022, 6:41 p.m. | OK | PyPy 3 | TESTS | 12 | 77 | 1945600 | ||
146182133 | FlakeLCR | A | Feb. 13, 2022, 12:38 a.m. | OK | PyPy 3 | TESTS | 12 | 77 | 2048000 | ||
146158172 | JANCARAPAN | A | Feb. 12, 2022, 6:05 p.m. | OK | PyPy 3 | TESTS | 12 | 77 | 2150400 | ||
146178261 | HandlyHwaEsmy | A | Feb. 12, 2022, 10:44 p.m. | OK | PyPy 3 | TESTS | 12 | 78 | 1945600 | ||
146193924 | pufanyi | A | Feb. 13, 2022, 4:57 a.m. | OK | PyPy 3 | TESTS | 12 | 92 | 1945600 | ||
146192812 | MohammadsadraSedighin | A | Feb. 13, 2022, 4:39 a.m. | OK | PyPy 3 | TESTS | 12 | 92 | 1945600 | ||
146189292 | Nipun_Jugran | A | Feb. 13, 2022, 3:37 a.m. | OK | PyPy 3 | TESTS | 12 | 92 | 1945600 | ||
146188511 | cofonewbie | A | Feb. 13, 2022, 3:21 a.m. | OK | PyPy 3-64 | TESTS | 12 | 62 | 2969600 | ||
146178836 | Invincible_Pain | A | Feb. 12, 2022, 11 p.m. | OK | PyPy 3-64 | TESTS | 12 | 77 | 2560000 | ||
146187615 | neshdev | A | Feb. 13, 2022, 3:01 a.m. | OK | PyPy 3-64 | TESTS | 12 | 77 | 2969600 | ||
146163239 | Akshayb1125 | A | Feb. 12, 2022, 6:45 p.m. | OK | PyPy 3-64 | TESTS | 12 | 77 | 2969600 | ||
146159826 | aman_m42 | A | Feb. 12, 2022, 6:15 p.m. | OK | PyPy 3-64 | TESTS | 12 | 77 | 2969600 | ||
146192706 | Srirambabu | A | Feb. 13, 2022, 4:37 a.m. | OK | PyPy 3-64 | TESTS | 12 | 77 | 2969600 | ||
146187290 | likaiwen923 | A | Feb. 13, 2022, 2:53 a.m. | OK | PyPy 3-64 | TESTS | 12 | 92 | 2764800 | ||
146160302 | CaptainUknown | A | Feb. 12, 2022, 6:19 p.m. | OK | PyPy 3-64 | TESTS | 12 | 92 | 3072000 | ||
146191231 | IkshitG | A | Feb. 13, 2022, 4:12 a.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 2150400 | ||
146171838 | vladilius | A | Feb. 12, 2022, 8:34 p.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 2150400 | ||
146188455 | ttorpy | A | Feb. 13, 2022, 3:20 a.m. | OK | Python 3 | TESTS | 12 | 31 | 614400 | ||
146191898 | Block_Cipher | A | Feb. 13, 2022, 4:25 a.m. | OK | Python 3 | TESTS | 12 | 31 | 614400 | ||
146176645 | abcsumit | A | Feb. 12, 2022, 10:02 p.m. | OK | Python 3 | TESTS | 12 | 31 | 614400 | ||
146173092 | ervin5 | A | Feb. 12, 2022, 8:55 p.m. | OK | Python 3 | TESTS | 12 | 31 | 614400 | ||
146160193 | DaTm27 | A | Feb. 12, 2022, 6:18 p.m. | OK | Python 3 | TESTS | 12 | 31 | 614400 | ||
146158543 | bansal_a | A | Feb. 12, 2022, 6:07 p.m. | OK | Python 3 | TESTS | 12 | 31 | 614400 | ||
146195909 | choko100 | A | Feb. 13, 2022, 5:25 a.m. | OK | Python 3 | TESTS | 12 | 46 | 614400 | ||
146196207 | UnreliableSpare | A | Feb. 13, 2022, 5:29 a.m. | OK | Python 3 | TESTS | 12 | 46 | 614400 | ||
146198261 | Uchia_Sasuke | A | Feb. 13, 2022, 5:53 a.m. | OK | Python 3 | TESTS | 12 | 46 | 614400 | ||
146193944 | pufanyi | A | Feb. 13, 2022, 4:58 a.m. | OK | Python 3 | TESTS | 12 | 46 | 614400 | ||
146173766 | Bovniova6 | A | Feb. 12, 2022, 9:06 p.m. | OK | Rust 2021 | TESTS | 12 | 15 | 307200 | ||
146191949 | Vnnm | A | Feb. 13, 2022, 4:26 a.m. | OK | Rust 2021 | TESTS | 12 | 15 | 614400 | ||
146158922 | zhhhplus | A | Feb. 12, 2022, 6:09 p.m. | OK | Rust 2021 | TESTS | 12 | 15 | 1228800 |
Back to search problems