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 |
---|---|---|---|---|---|---|
1375 | Codeforces Global Round 9 | FINISHED | False | 9000 | 143478911 | July 4, 2020, 2:45 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21515 ) | C | Element Extermination | PROGRAMMING | constructive algorithms greedy |
B'You are given an array a of length n , which initially is a permutation of numbers from 1 to n . In one operation, you can choose an index i ( 1 <= q i < n ) such that a_i < a_{i + 1} , and remove either a_i or a_{i + 1} from the array (after the removal, the remaining parts are concatenated). For example, if you have the array [1, 3, 2] , you can choose i = 1 (since a_1 = 1 < a_2 = 3 ), then either remove a_1 which gives the new array [3, 2] , or remove a_2 which gives the new array [1, 2] . Is it possible to make the length of this array equal to 1 with these operations? The first line contains a single integer t ( 1 <= q t <= q 2 cdot 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 2 <= q n <= q 3 cdot 10^5 ) -- the length of the array. The second line of each test case contains n integers a_1 , a_2 , ..., a_n ( 1 <= q a_i <= q n , a_i are pairwise distinct) -- elements of the array. It is guaranteed that the sum of n over all test cases doesn 't exceed 3 cdot 10^5 . For each test case, output on a single line the word "YES" if it is possible to reduce the array to a single element using the aforementioned operation, or "NO" if it is impossible to do so. For the first two test cases and the fourth test case, we can operate as follow (the bolded elements are the pair chosen for that operation): [ text{1}, textbf{2}, textbf{3}] rightarrow [ textbf{1}, textbf{2}] rightarrow [ text{1}] [ text{3}, textbf{1}, textbf{2}, text{4}] rightarrow [ text{3}, textbf{1}, textbf{4}] rightarrow [ textbf{3}, textbf{4}] rightarrow [ text{4}] [ textbf{2}, textbf{4}, text{6}, text{1}, text{3}, text{5}] rightarrow [ textbf{4}, textbf{6}, text{1}, text{3}, text{5}] rightarrow [ tex'... |
79731 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
85989722 | physics0523 | C | July 4, 2020, 4:56 p.m. | OK | GNU C11 | TESTS | 17 | 78 | 8089600 | ||
85968274 | ja1467 | C | July 4, 2020, 3:54 p.m. | OK | GNU C11 | TESTS | 17 | 124 | 3686400 | ||
85989825 | harsh_20 | C | July 4, 2020, 4:56 p.m. | OK | GNU C11 | TESTS | 17 | 124 | 4915200 | ||
85959272 | kingpin119 | C | July 4, 2020, 3:33 p.m. | OK | GNU C11 | TESTS | 17 | 124 | 4915200 | ||
86023707 | RaviVK | C | July 5, 2020, 4:49 a.m. | OK | GNU C11 | TESTS | 17 | 124 | 5120000 | ||
85980937 | pritesh19singh | C | July 4, 2020, 4:29 p.m. | OK | GNU C11 | TESTS | 17 | 124 | 6041600 | ||
86001375 | MTMehreen | C | July 4, 2020, 6:10 p.m. | OK | GNU C11 | TESTS | 17 | 124 | 6041600 | ||
85968494 | anujsinghal | C | July 4, 2020, 3:54 p.m. | OK | GNU C11 | TESTS | 17 | 124 | 6348800 | ||
85992515 | abir101 | C | July 4, 2020, 5:04 p.m. | OK | GNU C11 | TESTS | 17 | 140 | 4300800 | ||
86007299 | Abrar_Al_Samit | C | July 4, 2020, 7:41 p.m. | OK | GNU C11 | TESTS | 17 | 140 | 4915200 | ||
85966720 | smsylby | C | July 4, 2020, 3:50 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 3686400 | ||
86016521 | clfzs | C | July 5, 2020, 12:59 a.m. | OK | GNU C++11 | TESTS | 17 | 31 | 3891200 | ||
85981674 | sun_sky | C | July 4, 2020, 4:31 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 4300800 | ||
86001714 | absinthe | C | July 4, 2020, 6:13 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 5120000 | ||
85978380 | SampsonYW | C | July 4, 2020, 4:22 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 5120000 | ||
85960961 | SPyofgame | C | July 4, 2020, 3:37 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 5120000 | ||
85958943 | yy_makemelove | C | July 4, 2020, 3:33 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 5120000 | ||
85958700 | Clever_Jimmy | C | July 4, 2020, 3:32 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 5120000 | ||
85964476 | Yukikaze_ | C | July 4, 2020, 3:45 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 6348800 | ||
85961489 | emoairx | C | July 4, 2020, 3:38 p.m. | OK | GNU C++11 | TESTS | 17 | 31 | 6963200 | ||
86013965 | Linkus | C | July 4, 2020, 10:55 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 4915200 | ||
85959624 | seaguy | C | July 4, 2020, 3:34 p.m. | OK | GNU C++14 | TESTS | 17 | 62 | 4915200 | ||
85983331 | Lionel_messi10 | C | July 4, 2020, 4:37 p.m. | OK | GNU C++14 | TESTS | 17 | 77 | 4915200 | ||
85967308 | up1611 | C | July 4, 2020, 3:51 p.m. | OK | GNU C++14 | TESTS | 17 | 77 | 4915200 | ||
85955772 | snehil1111 | C | July 4, 2020, 3:26 p.m. | OK | GNU C++14 | TESTS | 17 | 77 | 6144000 | ||
85971204 | nishantc279m | C | July 4, 2020, 4:02 p.m. | OK | GNU C++14 | TESTS | 17 | 77 | 6246400 | ||
85990816 | papon_50 | C | July 4, 2020, 4:59 p.m. | OK | GNU C++14 | TESTS | 17 | 77 | 6860800 | ||
86018041 | k4droid3 | C | July 5, 2020, 2:09 a.m. | OK | GNU C++14 | TESTS | 17 | 78 | 3686400 | ||
86008736 | Ehab_Fawzy | C | July 4, 2020, 8:10 p.m. | OK | GNU C++14 | TESTS | 17 | 78 | 3686400 | ||
86003189 | ashwanikr1 | C | July 4, 2020, 6:33 p.m. | OK | GNU C++14 | TESTS | 17 | 78 | 3686400 | ||
86015780 | liangjiawen2007 | C | July 5, 2020, 12:25 a.m. | OK | GNU C++17 | TESTS | 17 | 31 | 8192000 | ||
85957365 | whzzt | C | July 4, 2020, 3:29 p.m. | OK | GNU C++17 | TESTS | 17 | 31 | 11980800 | ||
86017304 | FHVirus | C | July 5, 2020, 1:39 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 5939200 | ||
85961947 | IgorSmirnov | C | July 4, 2020, 3:39 p.m. | OK | GNU C++17 | TESTS | 17 | 46 | 6144000 | ||
86017564 | jintiandun | C | July 5, 2020, 1:51 a.m. | OK | GNU C++17 | TESTS | 17 | 61 | 5120000 | ||
85984670 | zhouzhi | C | July 4, 2020, 4:41 p.m. | OK | GNU C++17 | TESTS | 17 | 62 | 3686400 | ||
85980322 | huypt | C | July 4, 2020, 4:28 p.m. | OK | GNU C++17 | TESTS | 17 | 62 | 7270400 | ||
86001395 | AvinashKartik | C | July 4, 2020, 6:10 p.m. | OK | GNU C++17 | TESTS | 17 | 77 | 4505600 | ||
85992320 | Anubhabghosh | C | July 4, 2020, 5:03 p.m. | OK | GNU C++17 | TESTS | 17 | 77 | 4915200 | ||
86026858 | ASM_ATIKUR | C | July 5, 2020, 5:51 a.m. | OK | GNU C++17 | TESTS | 17 | 77 | 4915200 | ||
86007124 | axat0081 | C | July 4, 2020, 7:37 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 31 | 8806400 | ||
86002833 | jainbot27 | C | July 4, 2020, 6:28 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 5222400 | ||
86014548 | AQZZ | C | July 4, 2020, 11:22 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 5529600 | ||
86000714 | sanyam1101 | C | July 4, 2020, 6:02 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 5529600 | ||
86010412 | hello_codeforces | C | July 4, 2020, 8:50 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 5529600 | ||
86022199 | m.hasan01 | C | July 5, 2020, 4:11 a.m. | OK | GNU C++17 (64) | TESTS | 17 | 46 | 6758400 | ||
85957499 | Anila9007 | C | July 4, 2020, 3:30 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 61 | 4300800 | ||
85958652 | galaxy_warrior | C | July 4, 2020, 3:32 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 61 | 4300800 | ||
85973360 | i_love_dariia | C | July 4, 2020, 4:07 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 61 | 4300800 | ||
85987555 | 3BS_AS | C | July 4, 2020, 4:49 p.m. | OK | GNU C++17 (64) | TESTS | 17 | 61 | 4300800 | ||
85989052 | Aidar.Babanov | C | July 4, 2020, 4:54 p.m. | OK | Go | TESTS | 17 | 202 | 15155200 | ||
85956911 | Xylenox | C | July 4, 2020, 3:28 p.m. | OK | Go | TESTS | 17 | 202 | 15155200 | ||
85999288 | sf14t | C | July 4, 2020, 5:51 p.m. | OK | Java 11 | TESTS | 17 | 171 | 23756800 | ||
86004808 | In_The_Name_Of_Love | C | July 4, 2020, 6:56 p.m. | OK | Java 11 | TESTS | 17 | 171 | 23859200 | ||
85998988 | saikaushik | C | July 4, 2020, 5:49 p.m. | OK | Java 11 | TESTS | 17 | 171 | 23859200 | ||
85974306 | vishesh1999gupta | C | July 4, 2020, 4:10 p.m. | OK | Java 11 | TESTS | 17 | 186 | 23859200 | ||
85961703 | RockStar_14 | C | July 4, 2020, 3:39 p.m. | OK | Java 11 | TESTS | 17 | 187 | 23859200 | ||
85958504 | elkadymohammed01 | C | July 4, 2020, 3:32 p.m. | OK | Java 11 | TESTS | 17 | 187 | 23859200 | ||
85990288 | RomitGandhi07 | C | July 4, 2020, 4:58 p.m. | OK | Java 11 | TESTS | 17 | 187 | 24166400 | ||
85970726 | avijit_agarwal | C | July 4, 2020, 4 p.m. | OK | Java 11 | TESTS | 17 | 202 | 23756800 | ||
85998986 | Piccadilly | C | July 4, 2020, 5:49 p.m. | OK | Java 11 | TESTS | 17 | 202 | 29184000 | ||
86014199 | bubbl | C | July 4, 2020, 11:05 p.m. | OK | Java 11 | TESTS | 17 | 217 | 24780800 | ||
86001814 | prem_cse | C | July 4, 2020, 6:14 p.m. | OK | Java 8 | TESTS | 17 | 109 | 20480000 | ||
85999258 | Pranay2516 | C | July 4, 2020, 5:51 p.m. | OK | Java 8 | TESTS | 17 | 109 | 20480000 | ||
85972384 | shashwat07 | C | July 4, 2020, 4:05 p.m. | OK | Java 8 | TESTS | 17 | 109 | 20480000 | ||
85966444 | sizzula | C | July 4, 2020, 3:49 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
86004024 | mei_hu_don | C | July 4, 2020, 6:44 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
85992123 | Bhavya_Arora | C | July 4, 2020, 5:03 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
85990632 | kunalkatiyar9 | C | July 4, 2020, 4:59 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
85985665 | maanit_s | C | July 4, 2020, 4:44 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
85966697 | thisSideAnonymous | C | July 4, 2020, 3:50 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
85958221 | mufaddalnaya | C | July 4, 2020, 3:31 p.m. | OK | Java 8 | TESTS | 17 | 124 | 20377600 | ||
86004926 | Loremon | C | July 4, 2020, 6:58 p.m. | OK | JavaScript | TESTS | 17 | 155 | 38092800 | ||
86016767 | Spheniscine | C | July 5, 2020, 1:12 a.m. | OK | Kotlin | TESTS | 17 | 139 | 20582400 | ||
86014257 | ekaerovets | C | July 4, 2020, 11:08 p.m. | OK | Kotlin | TESTS | 17 | 155 | 20480000 | ||
86011406 | ekaerovets | C | July 4, 2020, 9:20 p.m. | OK | Kotlin | TESTS | 17 | 155 | 26009600 | ||
86013704 | Hakiobo | C | July 4, 2020, 10:43 p.m. | OK | Kotlin | TESTS | 17 | 187 | 20992000 | ||
85998732 | sylvyrfysh | C | July 4, 2020, 5:48 p.m. | OK | Kotlin | TESTS | 17 | 187 | 22220800 | ||
85988887 | slemus | C | July 4, 2020, 4:54 p.m. | OK | Kotlin | TESTS | 17 | 311 | 47820800 | ||
85958490 | batkhuyag | C | July 4, 2020, 3:32 p.m. | OK | Kotlin | TESTS | 17 | 358 | 47308800 | ||
85991243 | agent-10 | C | July 4, 2020, 5 p.m. | OK | Kotlin | TESTS | 17 | 373 | 47308800 | ||
86005868 | elizarov | C | July 4, 2020, 7:16 p.m. | OK | Kotlin | TESTS | 17 | 374 | 47308800 | ||
85975674 | abdukodir | C | July 4, 2020, 4:14 p.m. | OK | Kotlin | TESTS | 17 | 389 | 53964800 | ||
86020731 | treasuryonly | C | July 5, 2020, 3:29 a.m. | OK | Mono C# | TESTS | 17 | 124 | 32972800 | ||
85957044 | EmK | C | July 4, 2020, 3:29 p.m. | OK | Mono C# | TESTS | 17 | 139 | 25497600 | ||
85967310 | mban259 | C | July 4, 2020, 3:51 p.m. | OK | Mono C# | TESTS | 17 | 155 | 40345600 | ||
85976647 | hedgedog | C | July 4, 2020, 4:17 p.m. | OK | Mono C# | TESTS | 17 | 156 | 34611200 | ||
85978932 | Kolyanich | C | July 4, 2020, 4:23 p.m. | OK | Mono C# | TESTS | 17 | 171 | 12083200 | ||
85964495 | terry_u16 | C | July 4, 2020, 3:45 p.m. | OK | Mono C# | TESTS | 17 | 171 | 38912000 | ||
86001049 | Backs | C | July 4, 2020, 6:06 p.m. | OK | Mono C# | TESTS | 17 | 171 | 40140800 | ||
85968290 | Arnyev | C | July 4, 2020, 3:54 p.m. | OK | Mono C# | TESTS | 17 | 171 | 41062400 | ||
85958622 | lxhgww | C | July 4, 2020, 3:32 p.m. | OK | MS C++ | TESTS | 17 | 62 | 5120000 | ||
85956162 | wp32pw | C | July 4, 2020, 3:27 p.m. | OK | MS C++ 2017 | TESTS | 17 | 93 | 4505600 | ||
86012646 | P___ | C | July 4, 2020, 9:59 p.m. | OK | MS C++ 2017 | TESTS | 17 | 93 | 4608000 | ||
86017649 | Cube219 | C | July 5, 2020, 1:54 a.m. | OK | MS C++ 2017 | TESTS | 17 | 93 | 5222400 | ||
85980336 | zilioner | C | July 4, 2020, 4:28 p.m. | OK | MS C++ 2017 | TESTS | 17 | 108 | 5017600 | ||
85990661 | tarattata1 | C | July 4, 2020, 4:59 p.m. | OK | MS C++ 2017 | TESTS | 17 | 109 | 4608000 | ||
85986512 | hwqconceptnick | C | July 4, 2020, 4:46 p.m. | OK | MS C++ 2017 | TESTS | 17 | 109 | 6144000 | ||
85962608 | tincan | C | July 4, 2020, 3:41 p.m. | OK | MS C++ 2017 | TESTS | 17 | 217 | 4915200 | ||
85978620 | ohsolution | C | July 4, 2020, 4:22 p.m. | OK | MS C++ 2017 | TESTS | 17 | 217 | 5222400 | ||
85984365 | vpike | C | July 4, 2020, 4:40 p.m. | OK | MS C++ 2017 | TESTS | 17 | 218 | 4915200 | ||
85985527 | _Ani | C | July 4, 2020, 4:43 p.m. | OK | MS C++ 2017 | TESTS | 17 | 218 | 4915200 | ||
86000949 | sanyacoder | C | July 4, 2020, 6:05 p.m. | OK | Perl | TESTS | 17 | 93 | 23244800 | ||
85957632 | realnimish | C | July 4, 2020, 3:30 p.m. | OK | PyPy 2 | TESTS | 17 | 186 | 41062400 | ||
85963292 | Pyar.Mahobat.Dhoka.Hai | C | July 4, 2020, 3:42 p.m. | OK | PyPy 2 | TESTS | 17 | 218 | 44032000 | ||
86000063 | Satwik_Tiwari | C | July 4, 2020, 5:57 p.m. | OK | PyPy 2 | TESTS | 17 | 249 | 42291200 | ||
86012182 | Satwik_Tiwari | C | July 4, 2020, 9:44 p.m. | OK | PyPy 2 | TESTS | 17 | 265 | 42086400 | ||
85991144 | rajasbansal1998 | C | July 4, 2020, 5 p.m. | OK | PyPy 2 | TESTS | 17 | 592 | 40243200 | ||
85977870 | raj1307 | C | July 4, 2020, 4:20 p.m. | OK | PyPy 2 | TESTS | 17 | 998 | 41779200 | ||
85979801 | kfardeen7890 | C | July 4, 2020, 4:26 p.m. | OK | PyPy 3 | TESTS | 17 | 202 | 36659200 | ||
85964715 | tamato | C | July 4, 2020, 3:45 p.m. | OK | PyPy 3 | TESTS | 17 | 202 | 37273600 | ||
85985900 | gintoki_s | C | July 4, 2020, 4:44 p.m. | OK | PyPy 3 | TESTS | 17 | 202 | 43110400 | ||
86017555 | YMSeah | C | July 5, 2020, 1:50 a.m. | OK | PyPy 3 | TESTS | 17 | 202 | 43212800 | ||
86000204 | PracticeAccountICL | C | July 4, 2020, 5:58 p.m. | OK | PyPy 3 | TESTS | 17 | 217 | 42598400 | ||
85982007 | govindsaj | C | July 4, 2020, 4:33 p.m. | OK | PyPy 3 | TESTS | 17 | 217 | 43212800 | ||
86024653 | 2019ucp1350 | C | July 5, 2020, 5:09 a.m. | OK | PyPy 3 | TESTS | 17 | 218 | 42598400 | ||
85985968 | anoubhav | C | July 4, 2020, 4:45 p.m. | OK | PyPy 3 | TESTS | 17 | 218 | 42598400 | ||
85973811 | yashwant_singh | C | July 4, 2020, 4:08 p.m. | OK | PyPy 3 | TESTS | 17 | 233 | 39526400 | ||
85956140 | aberent | C | July 4, 2020, 3:27 p.m. | OK | PyPy 3 | TESTS | 17 | 233 | 41984000 | ||
85999658 | nwi | C | July 4, 2020, 5:53 p.m. | OK | Python 2 | TESTS | 17 | 248 | 22835200 | ||
85991198 | resita | C | July 4, 2020, 5 p.m. | OK | Python 2 | TESTS | 17 | 296 | 22425600 | ||
85962555 | nandarustam | C | July 4, 2020, 3:41 p.m. | OK | Python 2 | TESTS | 17 | 311 | 17612800 | ||
85978131 | junmiao | C | July 4, 2020, 4:21 p.m. | OK | Python 2 | TESTS | 17 | 327 | 18534400 | ||
85966281 | ap1008 | C | July 4, 2020, 3:49 p.m. | OK | Python 2 | TESTS | 17 | 405 | 17817600 | ||
85970817 | _aLso | C | July 4, 2020, 4:01 p.m. | OK | Python 2 | TESTS | 17 | 436 | 18841600 | ||
85983054 | bl4ckc4t_2 | C | July 4, 2020, 4:36 p.m. | OK | Python 2 | TESTS | 17 | 451 | 17510400 | ||
85993151 | amfolity | C | July 4, 2020, 5:06 p.m. | OK | Python 3 | TESTS | 17 | 187 | 21299200 | ||
85978665 | r57shell | C | July 4, 2020, 4:22 p.m. | OK | Python 3 | TESTS | 17 | 217 | 20889600 | ||
85998883 | upadhyay.aaditya2001 | C | July 4, 2020, 5:49 p.m. | OK | Python 3 | TESTS | 17 | 218 | 21299200 | ||
85985585 | Sanchit2709 | C | July 4, 2020, 4:44 p.m. | OK | Python 3 | TESTS | 17 | 218 | 27648000 | ||
86025451 | hellominchan | C | July 5, 2020, 5:25 a.m. | OK | Python 3 | TESTS | 17 | 218 | 27852800 | ||
86010438 | shiv_99 | C | July 4, 2020, 8:50 p.m. | OK | Python 3 | TESTS | 17 | 233 | 27340800 | ||
85988181 | ramzz | C | July 4, 2020, 4:51 p.m. | OK | Python 3 | TESTS | 17 | 233 | 27340800 | ||
85956320 | _andyli | C | July 4, 2020, 3:27 p.m. | OK | Python 3 | TESTS | 17 | 233 | 27648000 | ||
86001750 | fascineted | C | July 4, 2020, 6:14 p.m. | OK | Python 3 | TESTS | 17 | 233 | 27852800 | ||
86003225 | Import_GARG | C | July 4, 2020, 6:33 p.m. | OK | Python 3 | TESTS | 17 | 234 | 27648000 | ||
85971315 | GeoffreyY | C | July 4, 2020, 4:02 p.m. | OK | Rust | TESTS | 17 | 202 | 9728000 | ||
85967692 | pandrei | C | July 4, 2020, 3:52 p.m. | OK | Rust | TESTS | 17 | 233 | 16896000 | ||
85978237 | fatemender | C | July 4, 2020, 4:21 p.m. | OK | Rust | TESTS | 17 | 233 | 18022400 | ||
85988213 | t_uchida | C | July 4, 2020, 4:51 p.m. | OK | Rust | TESTS | 17 | 264 | 10854400 | ||
86010572 | IvanDyachenko | C | July 4, 2020, 8:54 p.m. | OK | Scala | TESTS | 17 | 654 | 69734400 |
Back to search problems