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 |
---|---|---|---|---|---|---|
1743 | Educational Codeforces Round 137 (Rated for Div. 2) | FINISHED | False | 7200 | 71249063 | Oct. 17, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 22383 ) | B | Permutation Value | PROGRAMMING | greedy | 800 |
B'You are given an integer n . You have to construct a permutation of size n . A permutation is an array where each integer from 1 to s (where s is the size of permutation) occurs exactly once. For example, [2, 1, 4, 3] is a permutation of size 4 ; [1, 2, 4, 5, 3] is a permutation of size 5 ; [1, 4, 3] is not a permutation (the integer 2 is absent), [2, 1, 3, 1] is not a permutation (the integer 1 appears twice). A subsegment of a permutation is a contiguous subsequence of that permutation. For example, the permutation [2, 1, 4, 3] has 10 subsegments: [2] , [2, 1] , [2, 1, 4] , [2, 1, 4, 3] , [1] , [1, 4] , [1, 4, 3] , [4] , [4, 3] and [3] . The value of the permutation is the number of its subsegments which are also permutations. For example, the value of [2, 1, 4, 3] is 3 since the subsegments [2, 1] , [1] and [2, 1, 4, 3] are permutations. You have to construct a permutation of size n with minimum possible value among all permutations of size n . The first line contains one integer t ( 1 <= t <= 48 ) -- the number of test cases. Then, t lines follow. The i -th of them contains one integer n ( 3 <= n <= 50 ) representing the i -th test case. For each test case, print n integers -- the permutation of size n with minimum possible value. If there are multiple such permutations, print any of them. In the first example, the permutation [1, 4, 3, 5, 2] is one of the possible answers; its value is 2 . In the second example, the permutation [4, 1, 6, 2, 5, 3] is one of the possible answers; its value is 2 . '... |
Educational Codeforces Round 137 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
176777347 | akshaypophali2003 | B | Oct. 17, 2022, 4:34 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | 800 | |
176832061 | jumboShrimp | B | Oct. 18, 2022, 5:15 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | 800 | |
176829906 | rifatjahansumaia | B | Oct. 18, 2022, 4:45 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | 800 | |
176819300 | Leasier | B | Oct. 18, 2022, 1:43 a.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | 800 | |
176801148 | SP2003 | B | Oct. 17, 2022, 7:31 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | 800 | |
176784978 | Jahidul_CSE | B | Oct. 17, 2022, 5:10 p.m. | OK | GNU C11 | TESTS | 3 | 15 | 0 | 800 | |
176772933 | thenoobone | B | Oct. 17, 2022, 4:26 p.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | 800 | |
176795304 | namanpahwa20 | B | Oct. 17, 2022, 6:30 p.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | 800 | |
176772903 | Kakoli | B | Oct. 17, 2022, 4:26 p.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | 800 | |
176830177 | XHY_AK_IOI | B | Oct. 18, 2022, 4:50 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176832881 | pjccccc | B | Oct. 18, 2022, 5:26 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176832503 | sleep_b4_cntst | B | Oct. 18, 2022, 5:21 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176832283 | ritipoonia | B | Oct. 18, 2022, 5:19 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176831724 | jasonou | B | Oct. 18, 2022, 5:11 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176831548 | lizuotong | B | Oct. 18, 2022, 5:09 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176831463 | palashpaliwal25 | B | Oct. 18, 2022, 5:07 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176831459 | Sandhya_Rani05 | B | Oct. 18, 2022, 5:07 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176830810 | MiniLong | B | Oct. 18, 2022, 4:59 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176834059 | Poiogdjr | B | Oct. 18, 2022, 5:39 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
176835622 | yym123456 | B | Oct. 18, 2022, 5:56 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176836114 | shivangtiwari | B | Oct. 18, 2022, 6:02 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835977 | dhruvan111 | B | Oct. 18, 2022, 6 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835917 | JUBHAI | B | Oct. 18, 2022, 6 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835860 | Molly_ | B | Oct. 18, 2022, 5:59 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835803 | ulhv4709 | B | Oct. 18, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835781 | Jai_Mahakal | B | Oct. 18, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835762 | fragger_nv | B | Oct. 18, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835759 | Shirci | B | Oct. 18, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176835643 | serndipty_ | B | Oct. 18, 2022, 5:57 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
176826216 | Bruce12138 | B | Oct. 18, 2022, 3:46 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176834965 | 1907195154 | B | Oct. 18, 2022, 5:49 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176834910 | Gourab_biswas | B | Oct. 18, 2022, 5:49 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176833527 | wygzgyw | B | Oct. 18, 2022, 5:33 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176833095 | jybbbbb | B | Oct. 18, 2022, 5:28 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176832867 | xiwenT | B | Oct. 18, 2022, 5:26 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176832775 | ...pluto | B | Oct. 18, 2022, 5:25 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176832276 | Huntik_03 | B | Oct. 18, 2022, 5:18 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176828951 | OTTFF | B | Oct. 18, 2022, 4:31 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176828691 | Fan_zf | B | Oct. 18, 2022, 4:27 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
176833777 | ElyesBerriri | B | Oct. 18, 2022, 5:37 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176836024 | frozenca | B | Oct. 18, 2022, 6:01 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176835973 | Sparsh_Maheshwari | B | Oct. 18, 2022, 6 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176835398 | xincheng111 | B | Oct. 18, 2022, 5:54 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176835247 | vedvitthalshukla | B | Oct. 18, 2022, 5:52 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176834944 | codingwizard24 | B | Oct. 18, 2022, 5:49 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176834687 | madorz | B | Oct. 18, 2022, 5:46 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176834578 | anushka171 | B | Oct. 18, 2022, 5:45 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176834148 | ArPiT_PanDeY | B | Oct. 18, 2022, 5:40 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176833639 | Dog_food_is_me | B | Oct. 18, 2022, 5:35 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
176819367 | hghgh | B | Oct. 18, 2022, 1:44 a.m. | OK | Go | TESTS | 3 | 15 | 0 | 800 | |
176787850 | nRookie7 | B | Oct. 17, 2022, 5:30 p.m. | OK | Go | TESTS | 3 | 15 | 0 | 800 | |
176792100 | Hasker | B | Oct. 17, 2022, 6:03 p.m. | OK | Haskell | TESTS | 3 | 30 | 0 | 800 | |
176814495 | jhariharan99official | B | Oct. 17, 2022, 11:28 p.m. | OK | Java 11 | TESTS | 3 | 140 | 0 | 800 | |
176822895 | aditya2024 | B | Oct. 18, 2022, 2:50 a.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | 800 | |
176789939 | princeayush04 | B | Oct. 17, 2022, 5:45 p.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | 800 | |
176818595 | white_harmony | B | Oct. 18, 2022, 1:27 a.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | 800 | |
176778146 | Spidey2182 | B | Oct. 17, 2022, 4:37 p.m. | OK | Java 11 | TESTS | 3 | 171 | 102400 | 800 | |
176816615 | pranp_24 | B | Oct. 18, 2022, 12:38 a.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | 800 | |
176780344 | harsh_gupta_1705 | B | Oct. 17, 2022, 4:45 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | 800 | |
176798692 | wolfy_thee_wolf | B | Oct. 17, 2022, 7:05 p.m. | OK | Java 11 | TESTS | 3 | 186 | 204800 | 800 | |
176817004 | pranp_24 | B | Oct. 18, 2022, 12:48 a.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | 800 | |
176791199 | rd37574 | B | Oct. 17, 2022, 5:55 p.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | 800 | |
176785285 | liomsv | B | Oct. 17, 2022, 5:12 p.m. | OK | Java 17 | TESTS | 3 | 171 | 0 | 800 | |
176781559 | Eslam_Ahmed | B | Oct. 17, 2022, 4:50 p.m. | OK | Java 17 | TESTS | 3 | 186 | 819200 | 800 | |
176792487 | sanya_chort | B | Oct. 17, 2022, 6:06 p.m. | OK | Java 17 | TESTS | 3 | 202 | 512000 | 800 | |
176783610 | bthero | B | Oct. 17, 2022, 5:01 p.m. | OK | Java 17 | TESTS | 3 | 202 | 1126400 | 800 | |
176773035 | arpitdobariya02 | B | Oct. 17, 2022, 4:26 p.m. | OK | Java 17 | TESTS | 3 | 233 | 1024000 | 800 | |
176781413 | shivayada14 | B | Oct. 17, 2022, 4:50 p.m. | OK | Java 17 | TESTS | 3 | 233 | 1126400 | 800 | |
176804289 | Mohamed_Ramadan_kawook | B | Oct. 17, 2022, 8:07 p.m. | OK | Java 17 | TESTS | 3 | 249 | 1228800 | 800 | |
176782036 | rudra03 | B | Oct. 17, 2022, 4:53 p.m. | OK | Java 17 | TESTS | 3 | 265 | 307200 | 800 | |
176795934 | Ayushtripathi441 | B | Oct. 17, 2022, 6:36 p.m. | OK | Java 17 | TESTS | 3 | 280 | 1126400 | 800 | |
176786717 | ahmedTarek28 | B | Oct. 17, 2022, 5:22 p.m. | OK | Java 8 | TESTS | 3 | 77 | 0 | 800 | |
176808863 | TheMasterOfSuspense | B | Oct. 17, 2022, 9:09 p.m. | OK | Java 8 | TESTS | 3 | 78 | 0 | 800 | |
176805312 | pakkapapad | B | Oct. 17, 2022, 8:21 p.m. | OK | Java 8 | TESTS | 3 | 78 | 0 | 800 | |
176802942 | Mohamed308 | B | Oct. 17, 2022, 7:52 p.m. | OK | Java 8 | TESTS | 3 | 78 | 0 | 800 | |
176786516 | Dark_Knight_07 | B | Oct. 17, 2022, 5:21 p.m. | OK | Java 8 | TESTS | 3 | 78 | 0 | 800 | |
176819745 | frey4 | B | Oct. 18, 2022, 1:52 a.m. | OK | Java 8 | TESTS | 3 | 92 | 0 | 800 | |
176817266 | lcheeme1 | B | Oct. 18, 2022, 12:56 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | 800 | |
176798910 | tmazumdar | B | Oct. 17, 2022, 7:07 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | 800 | |
176796738 | verma.shivam2605 | B | Oct. 17, 2022, 6:44 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | 800 | |
176820987 | master_xqk | B | Oct. 18, 2022, 2:17 a.m. | OK | Java 8 | TESTS | 3 | 108 | 0 | 800 | |
176782078 | Sgyun | B | Oct. 17, 2022, 4:53 p.m. | OK | Kotlin 1.6 | TESTS | 3 | 171 | 0 | 800 | |
176829531 | danthanhhuynhpham | B | Oct. 18, 2022, 4:40 a.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | 800 | |
176816517 | Alex0304 | B | Oct. 18, 2022, 12:34 a.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | 800 | |
176816287 | lxllxs | B | Oct. 18, 2022, 12:28 a.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | 800 | |
176798367 | 153floppa | B | Oct. 17, 2022, 7:01 p.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | 800 | |
176794104 | begineconst | B | Oct. 17, 2022, 6:20 p.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | 800 | |
176787882 | AlexandraGerasimova | B | Oct. 17, 2022, 5:30 p.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | 800 | |
176834603 | Send_Post | B | Oct. 18, 2022, 5:45 a.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 102400 | 800 | |
176773191 | -_-Handle-_- | B | Oct. 17, 2022, 4:27 p.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | 800 | |
176781181 | 784 | B | Oct. 17, 2022, 4:48 p.m. | OK | Perl | TESTS | 3 | 15 | 0 | 800 | |
176784208 | rsFalse | B | Oct. 17, 2022, 5:05 p.m. | OK | Perl | TESTS | 3 | 31 | 0 | 800 | |
176784351 | Dok_31 | B | Oct. 17, 2022, 5:06 p.m. | OK | PyPy 3 | TESTS | 3 | 77 | 2048000 | 800 | |
176808296 | watubub | B | Oct. 17, 2022, 9 p.m. | OK | PyPy 3 | TESTS | 3 | 92 | 2457600 | 800 | |
176818742 | bokunopicolo | B | Oct. 18, 2022, 1:30 a.m. | OK | PyPy 3 | TESTS | 3 | 93 | 2048000 | 800 | |
176779167 | MohamedHamed123 | B | Oct. 17, 2022, 4:40 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 2867200 | 800 | |
176795741 | Yash_Nandwana | B | Oct. 17, 2022, 6:35 p.m. | OK | PyPy 3 | TESTS | 3 | 93 | 3174400 | 800 | |
176782542 | Pooja96 | B | Oct. 17, 2022, 4:55 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 2560000 | 800 | |
176830468 | 0x7f_ | B | Oct. 18, 2022, 4:55 a.m. | OK | PyPy 3 | TESTS | 3 | 156 | 5222400 | 800 | |
176834697 | M7moud_Ala3rj | B | Oct. 18, 2022, 5:46 a.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1433600 | 800 | |
176822620 | riorio805 | B | Oct. 18, 2022, 2:45 a.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1433600 | 800 | |
176819417 | jeremy_aaron | B | Oct. 18, 2022, 1:45 a.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1433600 | 800 | |
176832878 | WookieWarlord | B | Oct. 18, 2022, 5:26 a.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1536000 | 800 | |
176808400 | chalex2k | B | Oct. 17, 2022, 9:02 p.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1536000 | 800 | |
176776587 | bartslingerland | B | Oct. 17, 2022, 4:33 p.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1536000 | 800 | |
176829748 | Gtintin | B | Oct. 18, 2022, 4:43 a.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 1638400 | 800 | |
176811302 | noobsatish | B | Oct. 17, 2022, 9:58 p.m. | OK | PyPy 3-64 | TESTS | 3 | 46 | 3276800 | 800 | |
176815749 | Lhohelhohehmm | B | Oct. 18, 2022, 12:11 a.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 3174400 | 800 | |
176801169 | 1227haran | B | Oct. 17, 2022, 7:31 p.m. | OK | PyPy 3-64 | TESTS | 3 | 61 | 3174400 | 800 | |
176823495 | nitin2203 | B | Oct. 18, 2022, 3 a.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | 800 | |
176802934 | hp685 | B | Oct. 17, 2022, 7:52 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | 800 | |
176800343 | jai2151513 | B | Oct. 17, 2022, 7:22 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | 800 | |
176793981 | Garrixer05 | B | Oct. 17, 2022, 6:19 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | 800 | |
176781956 | gskabdwal | B | Oct. 17, 2022, 4:52 p.m. | OK | Python 3 | TESTS | 3 | 30 | 0 | 800 | |
176831768 | NEUTRINO113 | B | Oct. 18, 2022, 5:12 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | 800 | |
176831043 | Abhyudaya_Bhargava | B | Oct. 18, 2022, 5:02 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | 800 | |
176819920 | Shuja_SundarSTEM | B | Oct. 18, 2022, 1:55 a.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | 800 | |
176813455 | 2000031238 | B | Oct. 17, 2022, 10:54 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | 800 | |
176800212 | jai2151513 | B | Oct. 17, 2022, 7:21 p.m. | OK | Python 3 | TESTS | 3 | 31 | 0 | 800 | |
176824925 | 1101_ | B | Oct. 18, 2022, 3:24 a.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 | 800 | |
176818652 | emofunc | B | Oct. 18, 2022, 1:28 a.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 | 800 | |
176814230 | IorMemorE | B | Oct. 17, 2022, 11:18 p.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 | 800 | |
176800834 | Axel_K | B | Oct. 17, 2022, 7:27 p.m. | OK | Rust 2021 | TESTS | 3 | 0 | 0 | 800 | |
176799430 | Axel_K | B | Oct. 17, 2022, 7:13 p.m. | OK | Rust 2021 | TESTS | 3 | 15 | 0 | 800 |
Back to search problems