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 |
---|---|---|---|---|---|---|
1899 | Codeforces Round 909 (Div. 3) | FINISHED | False | 8100 | 31591499 | Nov. 17, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 15729 ) | E | Queue Sort | PROGRAMMING | greedy implementation sortings |
B"Vlad found an array a of n integers and decided to sort it in non-decreasing order. To do this, Vlad can apply the following operation any number of times: Note that both actions are part of the operation, and for one operation, you must apply both actions. For example, if you apply the operation to the array [ 4, 3, 1, 2, 6, 4 ], it will change as follows: Vlad doesn't have time to perform all the operations, so he asks you to determine the minimum number of operations required to sort the array or report that it is impossible. The first line of the input contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Descriptions of the test cases follow. The first line of each test case contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the length of the array. The second line of each test case contains n integers a_1, a_2, a_3, ... , a_n ( 1 <= a_i <= 10^9 ) -- the elements of the array. It is guaranteed that the sum of n over all testcases does not exceed 2 cdot 10^5 . For each test case, output a single integer -- the minimum number of operations needed to sort the array. If it is impossible to do so, output -1 as the answer. "... |
Разбор Codeforces Round 909 (Div. 3) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
233196023 | Abhi0910 | E | Nov. 17, 2023, 4:52 p.m. | OK | Clang++20 Diagnostics | TESTS | 16 | 998 | 11571200 | ||
233227580 | Gassa | E | Nov. 17, 2023, 10:43 p.m. | OK | D | TESTS | 16 | 62 | 13721600 | ||
233227570 | Gassa | E | Nov. 17, 2023, 10:43 p.m. | OK | D | TESTS | 16 | 62 | 13721600 | ||
233227461 | Gassa | E | Nov. 17, 2023, 10:40 p.m. | OK | D | TESTS | 16 | 77 | 13721600 | ||
233227670 | Gassa | E | Nov. 17, 2023, 10:45 p.m. | OK | D | TESTS | 16 | 77 | 13721600 | ||
233192190 | NenadDapic | E | Nov. 17, 2023, 4:44 p.m. | OK | FPC | TESTS | 16 | 46 | 921600 | ||
233210823 | ruban | E | Nov. 17, 2023, 6:30 p.m. | OK | FPC | TESTS | 16 | 155 | 184627200 | ||
233243869 | swayingdream | E | Nov. 18, 2023, 4:47 a.m. | OK | GNU C11 | TESTS | 16 | 46 | 819200 | ||
233250326 | 11Raghav | E | Nov. 18, 2023, 5:58 a.m. | OK | GNU C11 | TESTS | 16 | 61 | 819200 | ||
233246946 | lazylettuce | E | Nov. 18, 2023, 5:23 a.m. | OK | GNU C11 | TESTS | 16 | 78 | 819200 | ||
233250034 | SANS_Surya | E | Nov. 18, 2023, 5:55 a.m. | OK | GNU C11 | TESTS | 16 | 78 | 1638400 | ||
233243406 | xiaoxinning | E | Nov. 18, 2023, 4:41 a.m. | OK | GNU C++14 | TESTS | 16 | 46 | 819200 | ||
233193166 | privatehsy | E | Nov. 17, 2023, 4:46 p.m. | OK | GNU C++14 | TESTS | 16 | 46 | 819200 | ||
233241486 | H_ZzZ | E | Nov. 18, 2023, 4:13 a.m. | OK | GNU C++14 | TESTS | 16 | 46 | 1638400 | ||
233227761 | iphone11 | E | Nov. 17, 2023, 10:48 p.m. | OK | GNU C++14 | TESTS | 16 | 61 | 819200 | ||
233229510 | Dr.Alfred | E | Nov. 17, 2023, 11:45 p.m. | OK | GNU C++14 | TESTS | 16 | 61 | 819200 | ||
233233159 | wendyasif | E | Nov. 18, 2023, 1:43 a.m. | OK | GNU C++14 | TESTS | 16 | 61 | 1638400 | ||
233244873 | chatterjee.swastik222 | E | Nov. 18, 2023, 4:59 a.m. | OK | GNU C++14 | TESTS | 16 | 61 | 1638400 | ||
233211728 | tamminaina_y | E | Nov. 17, 2023, 6:39 p.m. | OK | GNU C++14 | TESTS | 16 | 61 | 2457600 | ||
233211709 | heisenberg_003 | E | Nov. 17, 2023, 6:38 p.m. | OK | GNU C++14 | TESTS | 16 | 61 | 2457600 | ||
233226088 | Rawan_Almashad | E | Nov. 17, 2023, 10:05 p.m. | OK | GNU C++14 | TESTS | 16 | 61 | 3174400 | ||
233192888 | verywater | E | Nov. 17, 2023, 4:46 p.m. | OK | GNU C++17 | TESTS | 16 | 46 | 819200 | ||
233208996 | IS_Rushdi | E | Nov. 17, 2023, 6:13 p.m. | OK | GNU C++17 | TESTS | 16 | 46 | 819200 | ||
233195715 | Nisikto | E | Nov. 17, 2023, 4:51 p.m. | OK | GNU C++17 | TESTS | 16 | 46 | 819200 | ||
233193294 | Yzm007 | E | Nov. 17, 2023, 4:46 p.m. | OK | GNU C++17 | TESTS | 16 | 46 | 819200 | ||
233196591 | SystemTesting | E | Nov. 17, 2023, 4:54 p.m. | OK | GNU C++17 | TESTS | 16 | 46 | 4812800 | ||
233198599 | trash7007 | E | Nov. 17, 2023, 5:03 p.m. | OK | GNU C++17 | TESTS | 16 | 61 | 819200 | ||
233200818 | niraj.24 | E | Nov. 17, 2023, 5:14 p.m. | OK | GNU C++17 | TESTS | 16 | 61 | 819200 | ||
233211171 | ash88 | E | Nov. 17, 2023, 6:33 p.m. | OK | GNU C++17 | TESTS | 16 | 61 | 819200 | ||
233219633 | acquiesed | E | Nov. 17, 2023, 8:13 p.m. | OK | GNU C++17 | TESTS | 16 | 61 | 819200 | ||
233220327 | nxtsourav7 | E | Nov. 17, 2023, 8:22 p.m. | OK | GNU C++17 | TESTS | 16 | 61 | 819200 | ||
233196862 | 2088244836 | E | Nov. 17, 2023, 4:55 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 31 | 7987200 | ||
233231267 | Roaa_Abdelwhab | E | Nov. 18, 2023, 12:49 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233246839 | chappy1 | E | Nov. 18, 2023, 5:22 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233242674 | imsuck12 | E | Nov. 18, 2023, 4:30 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233234493 | fs20091003 | E | Nov. 18, 2023, 2:13 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233231023 | JustA7 | E | Nov. 18, 2023, 12:40 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233202097 | pzpzpz | E | Nov. 17, 2023, 5:21 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233200584 | druidream | E | Nov. 17, 2023, 5:13 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233192601 | druidream | E | Nov. 17, 2023, 4:45 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 819200 | ||
233240220 | Einstein1234 | E | Nov. 18, 2023, 3:53 a.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 1024000 | ||
233192489 | varahamihira_ | E | Nov. 17, 2023, 4:45 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 1638400 | ||
233200152 | Haneochi | E | Nov. 17, 2023, 5:10 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 17612800 | ||
233219413 | AC_sahER | E | Nov. 17, 2023, 8:09 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 0 | ||
233242789 | Fired | E | Nov. 18, 2023, 4:31 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233250274 | xingliu | E | Nov. 18, 2023, 5:58 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233240456 | forge_iron | E | Nov. 18, 2023, 3:57 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233241632 | AgOH | E | Nov. 18, 2023, 4:15 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233248420 | minhajadil | E | Nov. 18, 2023, 5:39 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233246344 | n1cknamezz | E | Nov. 18, 2023, 5:16 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233244812 | pkp245464 | E | Nov. 18, 2023, 4:59 a.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 819200 | ||
233232635 | CruellaDeVil | E | Nov. 18, 2023, 1:30 a.m. | OK | Go | TESTS | 16 | 109 | 4710400 | ||
233216091 | october_rain | E | Nov. 17, 2023, 7:27 p.m. | OK | Haskell | TESTS | 16 | 654 | 22118400 | ||
233225550 | RiceTofu | E | Nov. 17, 2023, 9:52 p.m. | OK | Java 11 | TESTS | 16 | 202 | 0 | ||
233224335 | IceWolf898 | E | Nov. 17, 2023, 9:27 p.m. | OK | Java 11 | TESTS | 16 | 233 | 0 | ||
233191569 | BurnerAce | E | Nov. 17, 2023, 4:43 p.m. | OK | Java 11 | TESTS | 16 | 248 | 0 | ||
233193510 | _.aadi01 | E | Nov. 17, 2023, 4:47 p.m. | OK | Java 11 | TESTS | 16 | 265 | 40448000 | ||
233223708 | PlayDate | E | Nov. 17, 2023, 9:16 p.m. | OK | Java 11 | TESTS | 16 | 280 | 0 | ||
233245229 | wizwilzo | E | Nov. 18, 2023, 5:03 a.m. | OK | Java 11 | TESTS | 16 | 280 | 11161600 | ||
233222004 | anuj921210 | E | Nov. 17, 2023, 8:48 p.m. | OK | Java 11 | TESTS | 16 | 451 | 0 | ||
233248015 | godLee_231 | E | Nov. 18, 2023, 5:34 a.m. | OK | Java 11 | TESTS | 16 | 467 | 0 | ||
233196819 | 21241A0595 | E | Nov. 17, 2023, 4:55 p.m. | OK | Java 11 | TESTS | 16 | 467 | 0 | ||
233195235 | vedjaiswal | E | Nov. 17, 2023, 4:49 p.m. | OK | Java 11 | TESTS | 16 | 483 | 0 | ||
233234485 | Parthiv_patel_thota | E | Nov. 18, 2023, 2:13 a.m. | OK | Java 17 | TESTS | 16 | 155 | 307200 | ||
233198393 | Utsav82 | E | Nov. 17, 2023, 5:02 p.m. | OK | Java 17 | TESTS | 16 | 186 | 512000 | ||
233200685 | daksh_02 | E | Nov. 17, 2023, 5:13 p.m. | OK | Java 17 | TESTS | 16 | 233 | 614400 | ||
233230038 | sm.20u10694 | E | Nov. 18, 2023, 12:05 a.m. | OK | Java 17 | TESTS | 16 | 249 | 102400 | ||
233204407 | AKhacks | E | Nov. 17, 2023, 5:37 p.m. | OK | Java 17 | TESTS | 16 | 249 | 512000 | ||
233244354 | alibaba | E | Nov. 18, 2023, 4:53 a.m. | OK | Java 17 | TESTS | 16 | 249 | 614400 | ||
233193365 | tiger3768 | E | Nov. 17, 2023, 4:46 p.m. | OK | Java 17 | TESTS | 16 | 280 | 819200 | ||
233208739 | Multi-Thread | E | Nov. 17, 2023, 6:11 p.m. | OK | Java 17 | TESTS | 16 | 296 | 921600 | ||
233212230 | vyom_1225 | E | Nov. 17, 2023, 6:44 p.m. | OK | Java 17 | TESTS | 16 | 530 | 921600 | ||
233193046 | y_a_s | E | Nov. 17, 2023, 4:46 p.m. | OK | Java 17 | TESTS | 16 | 530 | 1126400 | ||
233197251 | frey4 | E | Nov. 17, 2023, 4:57 p.m. | OK | Java 21 | TESTS | 16 | 327 | 204800 | ||
233196900 | rajasomeshwar_bitla | E | Nov. 17, 2023, 4:55 p.m. | OK | Java 21 | TESTS | 16 | 373 | 20275200 | ||
233205791 | pratap.S007 | E | Nov. 17, 2023, 5:48 p.m. | OK | Java 21 | TESTS | 16 | 608 | 716800 | ||
233243524 | RatanK | E | Nov. 18, 2023, 4:42 a.m. | OK | Java 21 | TESTS | 16 | 638 | 819200 | ||
233193417 | tushar2405 | E | Nov. 17, 2023, 4:47 p.m. | OK | Java 21 | TESTS | 16 | 717 | 4505600 | ||
233244043 | dhruv_codes04 | E | Nov. 18, 2023, 4:49 a.m. | OK | Java 21 | TESTS | 16 | 733 | 3481600 | ||
233206548 | vatsal_04 | E | Nov. 17, 2023, 5:54 p.m. | OK | Java 8 | TESTS | 16 | 140 | 2764800 | ||
233197833 | arpita010 | E | Nov. 17, 2023, 4:59 p.m. | OK | Java 8 | TESTS | 16 | 140 | 2867200 | ||
233193728 | vaibhavgawad | E | Nov. 17, 2023, 4:47 p.m. | OK | Java 8 | TESTS | 16 | 171 | 6451200 | ||
233227400 | sagbis | E | Nov. 17, 2023, 10:38 p.m. | OK | Java 8 | TESTS | 16 | 186 | 2764800 | ||
233213241 | rajr86642 | E | Nov. 17, 2023, 6:55 p.m. | OK | Java 8 | TESTS | 16 | 186 | 2764800 | ||
233192618 | jdtheripperpc | E | Nov. 17, 2023, 4:45 p.m. | OK | Java 8 | TESTS | 16 | 202 | 17817600 | ||
233194821 | rahulkmishra2806 | E | Nov. 17, 2023, 4:49 p.m. | OK | Java 8 | TESTS | 16 | 389 | 0 | ||
233196473 | viniranj | E | Nov. 17, 2023, 4:54 p.m. | OK | Java 8 | TESTS | 16 | 452 | 1843200 | ||
233199706 | tatianyi | E | Nov. 17, 2023, 5:08 p.m. | OK | MS C++ 2017 | TESTS | 16 | 171 | 819200 | ||
233226777 | Piashy | E | Nov. 17, 2023, 10:21 p.m. | OK | MS C++ 2017 | TESTS | 16 | 171 | 1638400 | ||
233241482 | 15988190152 | E | Nov. 18, 2023, 4:13 a.m. | OK | MS C++ 2017 | TESTS | 16 | 187 | 819200 | ||
233197978 | farim | E | Nov. 17, 2023, 5 p.m. | OK | MS C++ 2017 | TESTS | 16 | 187 | 819200 | ||
233197665 | IseePC2023 | E | Nov. 17, 2023, 4:58 p.m. | OK | MS C++ 2017 | TESTS | 16 | 187 | 819200 | ||
233205604 | Aneeba | E | Nov. 17, 2023, 5:46 p.m. | OK | MS C++ 2017 | TESTS | 16 | 202 | 819200 | ||
233230033 | DRDIV | E | Nov. 18, 2023, 12:05 a.m. | OK | PyPy 3 | TESTS | 16 | 233 | 17510400 | ||
233250476 | pedastrian57 | E | Nov. 18, 2023, 6 a.m. | OK | PyPy 3 | TESTS | 16 | 265 | 82329600 | ||
233228411 | AhsanRandhawa | E | Nov. 17, 2023, 11:07 p.m. | OK | PyPy 3 | TESTS | 16 | 280 | 17305600 | ||
233193372 | pogisinico | E | Nov. 17, 2023, 4:46 p.m. | OK | PyPy 3 | TESTS | 16 | 296 | 18636800 | ||
233195286 | devisri_k | E | Nov. 17, 2023, 4:49 p.m. | OK | PyPy 3 | TESTS | 16 | 389 | 19148800 | ||
233244636 | AS23 | E | Nov. 18, 2023, 4:56 a.m. | OK | PyPy 3 | TESTS | 16 | 405 | 19046400 | ||
233192039 | lowride | E | Nov. 17, 2023, 4:44 p.m. | OK | PyPy 3 | TESTS | 16 | 529 | 19148800 | ||
233194894 | yaroslav_pos | E | Nov. 17, 2023, 4:49 p.m. | OK | PyPy 3-64 | TESTS | 16 | 139 | 19558400 | ||
233221743 | string_eureka | E | Nov. 17, 2023, 8:44 p.m. | OK | PyPy 3-64 | TESTS | 16 | 139 | 27545600 | ||
233198807 | gardengnome | E | Nov. 17, 2023, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 16 | 139 | 27545600 | ||
233230380 | daszybak | E | Nov. 18, 2023, 12:18 a.m. | OK | PyPy 3-64 | TESTS | 16 | 140 | 29900800 | ||
233239781 | Mohamed_Hamed | E | Nov. 18, 2023, 3:46 a.m. | OK | PyPy 3-64 | TESTS | 16 | 170 | 24473600 | ||
233235019 | brightest66 | E | Nov. 18, 2023, 2:24 a.m. | OK | PyPy 3-64 | TESTS | 16 | 170 | 27340800 | ||
233208233 | prateek.goel.cs.2019 | E | Nov. 17, 2023, 6:07 p.m. | OK | PyPy 3-64 | TESTS | 16 | 171 | 27340800 | ||
233207447 | Dert30 | E | Nov. 17, 2023, 6 p.m. | OK | PyPy 3-64 | TESTS | 16 | 187 | 20480000 | ||
233239591 | Mohamed_Hamed | E | Nov. 18, 2023, 3:43 a.m. | OK | PyPy 3-64 | TESTS | 16 | 187 | 23756800 | ||
233197739 | linhua | E | Nov. 17, 2023, 4:59 p.m. | OK | PyPy 3-64 | TESTS | 16 | 187 | 161792000 | ||
233236751 | Adelhyde | E | Nov. 18, 2023, 2:56 a.m. | OK | Python 3 | TESTS | 16 | 124 | 26828800 | ||
233193915 | Dantevale | E | Nov. 17, 2023, 4:47 p.m. | OK | Python 3 | TESTS | 16 | 124 | 27648000 | ||
233194410 | sardorboboshov | E | Nov. 17, 2023, 4:48 p.m. | OK | Python 3 | TESTS | 16 | 124 | 28467200 | ||
233193354 | Brash_Ketchup | E | Nov. 17, 2023, 4:46 p.m. | OK | Python 3 | TESTS | 16 | 139 | 27648000 | ||
233241214 | whereiswhen | E | Nov. 18, 2023, 4:09 a.m. | OK | Python 3 | TESTS | 16 | 139 | 28467200 | ||
233209078 | Acturest | E | Nov. 17, 2023, 6:14 p.m. | OK | Python 3 | TESTS | 16 | 140 | 26316800 | ||
233207410 | ciprianamza | E | Nov. 17, 2023, 6 p.m. | OK | Python 3 | TESTS | 16 | 140 | 26828800 | ||
233206249 | AamodJain | E | Nov. 17, 2023, 5:51 p.m. | OK | Python 3 | TESTS | 16 | 140 | 26828800 | ||
233202157 | ser0p | E | Nov. 17, 2023, 5:21 p.m. | OK | Python 3 | TESTS | 16 | 140 | 26828800 | ||
233199779 | barghav | E | Nov. 17, 2023, 5:09 p.m. | OK | Python 3 | TESTS | 16 | 140 | 26828800 | ||
233193565 | Mblrloc | E | Nov. 17, 2023, 4:47 p.m. | OK | Rust 2021 | TESTS | 16 | 31 | 18534400 | ||
233231450 | t00100t | E | Nov. 18, 2023, 12:55 a.m. | OK | Rust 2021 | TESTS | 16 | 93 | 17715200 | ||
233213165 | _a253 | E | Nov. 17, 2023, 6:54 p.m. | OK | Rust 2021 | TESTS | 16 | 108 | 17715200 | ||
233216910 | tanakanotarou2 | E | Nov. 17, 2023, 7:37 p.m. | OK | Rust 2021 | TESTS | 16 | 389 | 7884800 |
Back to search problems