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 |
---|---|---|---|---|---|---|
1728 | Educational Codeforces Round 135 (Rated for Div. 2) | FINISHED | False | 7200 | 69175499 | Sept. 8, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 20189 ) | B | Best Permutation | PROGRAMMING | constructive algorithms greedy |
B"Let's define the value of the permutation p of n integers 1 , 2 , ..., n (a permutation is an array where each element from 1 to n occurs exactly once) as follows: For example, for p = [4, 5, 1, 2, 3, 6] , the value of x changes as follows: 0, 4, 9, 0, 2, 5, 11 , so the value of the permutation is 11 . You are given an integer n . Find a permutation p of size n with the maximum possible value among all permutations of size n . If there are several such permutations, you can print any of them. The first line contains one integer t ( 1 <= t <= 97 ) -- the number of test cases. The only line of each test case contains one integer n ( 4 <= n <= 100 ). For each test case, print n integers -- the permutation p of size n with the maximum possible value among all permutations of size n . "... |
106805 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
171443446 | AlienOfMercury | B | Sept. 8, 2022, 7:40 p.m. | OK | Clang++17 Diagnostics | TESTS | 6 | 46 | 0 | ||
171430982 | topmind | B | Sept. 8, 2022, 5:17 p.m. | OK | Clang++20 Diagnostics | TESTS | 5 | 46 | 0 | ||
171429635 | DarkWillow | B | Sept. 8, 2022, 5:06 p.m. | OK | GNU C11 | TESTS | 5 | 15 | 0 | ||
171430068 | Abhishek_Tewatia | B | Sept. 8, 2022, 5:09 p.m. | OK | GNU C11 | TESTS | 5 | 31 | 0 | ||
171469755 | neerav3 | B | Sept. 9, 2022, 5:37 a.m. | OK | GNU C11 | TESTS | 7 | 46 | 0 | ||
171420417 | dmgrover | B | Sept. 8, 2022, 4:28 p.m. | OK | GNU C11 | TESTS | 5 | 46 | 0 | ||
171424711 | swati21568 | B | Sept. 8, 2022, 4:37 p.m. | OK | GNU C11 | TESTS | 5 | 46 | 0 | ||
171464923 | TahmidMuntaser | B | Sept. 9, 2022, 4:11 a.m. | OK | GNU C11 | TESTS | 7 | 46 | 0 | ||
171418775 | Aisha993 | B | Sept. 8, 2022, 4:24 p.m. | OK | GNU C11 | TESTS | 5 | 62 | 0 | ||
171430624 | ZGCC | B | Sept. 8, 2022, 5:14 p.m. | OK | GNU C11 | TESTS | 5 | 62 | 0 | ||
171418893 | SAFIN07 | B | Sept. 8, 2022, 4:24 p.m. | OK | GNU C11 | TESTS | 5 | 62 | 0 | ||
171468675 | joleyasarthak | B | Sept. 9, 2022, 5:22 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171468467 | ankitrjshrivastav | B | Sept. 9, 2022, 5:18 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171467828 | LiWenX | B | Sept. 9, 2022, 5:08 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171471206 | WR_Eternity_ | B | Sept. 9, 2022, 5:59 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171470876 | asal.jahanshiri | B | Sept. 9, 2022, 5:55 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171470698 | PEIMUDA | B | Sept. 9, 2022, 5:52 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171470225 | forlight | B | Sept. 9, 2022, 5:45 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171470198 | Deft_t | B | Sept. 9, 2022, 5:45 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171469969 | 3118308640 | B | Sept. 9, 2022, 5:41 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171469308 | Leonador | B | Sept. 9, 2022, 5:31 a.m. | OK | GNU C++14 | TESTS | 7 | 0 | 0 | ||
171467741 | Miracle_b | B | Sept. 9, 2022, 5:07 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171470171 | AS_01 | B | Sept. 9, 2022, 5:44 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171470483 | karan_1204 | B | Sept. 9, 2022, 5:49 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171470151 | adwait_47_s | B | Sept. 9, 2022, 5:44 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171470046 | cuetdaydreamer | B | Sept. 9, 2022, 5:42 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171469797 | DKingluvQAnh | B | Sept. 9, 2022, 5:38 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171468914 | gargi_r | B | Sept. 9, 2022, 5:25 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171468591 | a_ban_don | B | Sept. 9, 2022, 5:20 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171468323 | Bytalorian | B | Sept. 9, 2022, 5:16 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171467791 | striver_coder_21 | B | Sept. 9, 2022, 5:08 a.m. | OK | GNU C++17 | TESTS | 7 | 0 | 0 | ||
171470012 | _pallab_99 | B | Sept. 9, 2022, 5:42 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171470760 | Roman_Reigns | B | Sept. 9, 2022, 5:53 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171466287 | 9898zy998 | B | Sept. 9, 2022, 4:39 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171466280 | jazzz009 | B | Sept. 9, 2022, 4:39 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171465466 | nanfeng1997 | B | Sept. 9, 2022, 4:23 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171463606 | cheng1202 | B | Sept. 9, 2022, 3:43 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171463155 | Asif_Al_Fattah | B | Sept. 9, 2022, 3:33 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171462990 | hcolorx | B | Sept. 9, 2022, 3:29 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171461102 | 20123040 | B | Sept. 9, 2022, 2:48 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171460367 | mahbubhasanmht | B | Sept. 9, 2022, 2:32 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 0 | 0 | ||
171468074 | _labib | B | Sept. 9, 2022, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171468148 | mahirgupta1221 | B | Sept. 9, 2022, 5:13 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171468436 | Liudas | B | Sept. 9, 2022, 5:18 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171468603 | AlbusX | B | Sept. 9, 2022, 5:21 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171469013 | 99199t | B | Sept. 9, 2022, 5:27 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171469260 | Ivan_Filippov | B | Sept. 9, 2022, 5:30 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171469386 | peikez | B | Sept. 9, 2022, 5:32 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171469632 | indra001 | B | Sept. 9, 2022, 5:35 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171469951 | NITshuaibi | B | Sept. 9, 2022, 5:41 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171470243 | daniyar-is-019_er-2025 | B | Sept. 9, 2022, 5:45 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 0 | 0 | ||
171462634 | graceoflives | B | Sept. 9, 2022, 3:21 a.m. | OK | Go | TESTS | 7 | 15 | 307200 | ||
171436554 | Andreikkaa | B | Sept. 8, 2022, 6:10 p.m. | OK | Go | TESTS | 5 | 31 | 0 | ||
171421085 | binbin.chen | B | Sept. 8, 2022, 4:29 p.m. | OK | Go | TESTS | 5 | 46 | 204800 | ||
171445227 | Omar_Fahim | B | Sept. 8, 2022, 8:12 p.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | ||
171467044 | gaurav_22 | B | Sept. 9, 2022, 4:54 a.m. | OK | Java 11 | TESTS | 7 | 186 | 0 | ||
171430233 | devanshpurwar | B | Sept. 8, 2022, 5:11 p.m. | OK | Java 11 | TESTS | 5 | 186 | 0 | ||
171456578 | Corobo | B | Sept. 9, 2022, 12:56 a.m. | OK | Java 11 | TESTS | 7 | 187 | 0 | ||
171431609 | samitdas03 | B | Sept. 8, 2022, 5:22 p.m. | OK | Java 11 | TESTS | 5 | 218 | 0 | ||
171419153 | sarthak20574 | B | Sept. 8, 2022, 4:25 p.m. | OK | Java 11 | TESTS | 5 | 218 | 0 | ||
171469784 | yerkebayev | B | Sept. 9, 2022, 5:38 a.m. | OK | Java 11 | TESTS | 7 | 233 | 0 | ||
171431004 | g_square | B | Sept. 8, 2022, 5:17 p.m. | OK | Java 11 | TESTS | 5 | 233 | 0 | ||
171420693 | shourya02 | B | Sept. 8, 2022, 4:28 p.m. | OK | Java 11 | TESTS | 5 | 233 | 0 | ||
171436058 | bigBull2 | B | Sept. 8, 2022, 6:05 p.m. | OK | Java 11 | TESTS | 5 | 233 | 102400 | ||
171445144 | LeetCodeforces_Null | B | Sept. 8, 2022, 8:10 p.m. | OK | Java 17 | TESTS | 6 | 155 | 0 | ||
171418545 | The_Dark_Lord_9635 | B | Sept. 8, 2022, 4:24 p.m. | OK | Java 17 | TESTS | 5 | 171 | 0 | ||
171432573 | nurs13 | B | Sept. 8, 2022, 5:31 p.m. | OK | Java 17 | TESTS | 5 | 249 | 0 | ||
171464901 | Revanth3601 | B | Sept. 9, 2022, 4:10 a.m. | OK | Java 17 | TESTS | 7 | 249 | 512000 | ||
171422663 | Vibhu09 | B | Sept. 8, 2022, 4:32 p.m. | OK | Java 17 | TESTS | 5 | 264 | 204800 | ||
171465910 | shubhamlahoti01 | B | Sept. 9, 2022, 4:32 a.m. | OK | Java 17 | TESTS | 7 | 264 | 716800 | ||
171419994 | Sanskar0407 | B | Sept. 8, 2022, 4:27 p.m. | OK | Java 17 | TESTS | 5 | 264 | 819200 | ||
171434542 | A-man2303 | B | Sept. 8, 2022, 5:50 p.m. | OK | Java 17 | TESTS | 5 | 264 | 1024000 | ||
171460412 | jashwanth_2003 | B | Sept. 9, 2022, 2:33 a.m. | OK | Java 17 | TESTS | 7 | 265 | 102400 | ||
171442214 | AdityaGupta19 | B | Sept. 8, 2022, 7:19 p.m. | OK | Java 17 | TESTS | 6 | 265 | 512000 | ||
171420575 | ganesh_6 | B | Sept. 8, 2022, 4:28 p.m. | OK | Java 8 | TESTS | 5 | 92 | 0 | ||
171471073 | waynebruce1704 | B | Sept. 9, 2022, 5:57 a.m. | OK | Java 8 | TESTS | 7 | 93 | 0 | ||
171463185 | govindrajput | B | Sept. 9, 2022, 3:33 a.m. | OK | Java 8 | TESTS | 7 | 93 | 0 | ||
171429742 | Koka | B | Sept. 8, 2022, 5:07 p.m. | OK | Java 8 | TESTS | 5 | 93 | 0 | ||
171426930 | jkslyk | B | Sept. 8, 2022, 4:48 p.m. | OK | Java 8 | TESTS | 5 | 93 | 0 | ||
171429751 | kanthala.hari.198 | B | Sept. 8, 2022, 5:07 p.m. | OK | Java 8 | TESTS | 5 | 108 | 0 | ||
171460319 | onenewbie | B | Sept. 9, 2022, 2:31 a.m. | OK | Java 8 | TESTS | 7 | 109 | 0 | ||
171430469 | kalsitushar | B | Sept. 8, 2022, 5:13 p.m. | OK | Java 8 | TESTS | 5 | 124 | 0 | ||
171428773 | AW2k19 | B | Sept. 8, 2022, 4:59 p.m. | OK | Java 8 | TESTS | 5 | 124 | 0 | ||
171424911 | mohamedhassan_c | B | Sept. 8, 2022, 4:38 p.m. | OK | Java 8 | TESTS | 5 | 124 | 0 | ||
171435236 | shek_shek | B | Sept. 8, 2022, 5:57 p.m. | OK | Kotlin 1.6 | TESTS | 5 | 202 | 0 | ||
171438192 | shek_shek | B | Sept. 8, 2022, 6:28 p.m. | OK | Kotlin 1.6 | TESTS | 5 | 482 | 0 | ||
171466589 | aikk | B | Sept. 9, 2022, 4:46 a.m. | OK | MS C++ 2017 | TESTS | 7 | 15 | 0 | ||
171450877 | OmarRnr | B | Sept. 8, 2022, 10:08 p.m. | OK | MS C++ 2017 | TESTS | 6 | 15 | 0 | ||
171424904 | F.O.X. | B | Sept. 8, 2022, 4:38 p.m. | OK | MS C++ 2017 | TESTS | 5 | 15 | 0 | ||
171418920 | vineet11 | B | Sept. 8, 2022, 4:24 p.m. | OK | MS C++ 2017 | TESTS | 5 | 31 | 0 | ||
171450817 | pashqa88 | B | Sept. 8, 2022, 10:06 p.m. | OK | Node.js | TESTS | 6 | 46 | 0 | ||
171438945 | Homeo | B | Sept. 8, 2022, 6:37 p.m. | OK | PyPy 3 | TESTS | 5 | 62 | 409600 | ||
171463085 | EmilyBloom | B | Sept. 9, 2022, 3:31 a.m. | OK | PyPy 3 | TESTS | 7 | 92 | 2560000 | ||
171451112 | zxcuser2 | B | Sept. 8, 2022, 10:14 p.m. | OK | PyPy 3 | TESTS | 6 | 92 | 2969600 | ||
171453402 | SIGCHLD | B | Sept. 8, 2022, 11:23 p.m. | OK | PyPy 3 | TESTS | 6 | 93 | 1843200 | ||
171432789 | Homeo | B | Sept. 8, 2022, 5:33 p.m. | OK | PyPy 3 | TESTS | 5 | 93 | 2457600 | ||
171451085 | zxcuser2 | B | Sept. 8, 2022, 10:13 p.m. | OK | PyPy 3 | TESTS | 6 | 93 | 2969600 | ||
171434502 | abhipandey9315 | B | Sept. 8, 2022, 5:49 p.m. | OK | PyPy 3 | TESTS | 5 | 109 | 2150400 | ||
171443925 | plainwhiteyoghurt | B | Sept. 8, 2022, 7:49 p.m. | OK | PyPy 3 | TESTS | 6 | 109 | 2662400 | ||
171450880 | zxcuser2 | B | Sept. 8, 2022, 10:08 p.m. | OK | PyPy 3 | TESTS | 6 | 124 | 3276800 | ||
171446182 | dwen | B | Sept. 8, 2022, 8:26 p.m. | OK | PyPy 3 | TESTS | 6 | 124 | 4505600 | ||
171447243 | omar.gawdat | B | Sept. 8, 2022, 8:45 p.m. | OK | PyPy 3-64 | TESTS | 6 | 46 | 1638400 | ||
171462766 | damurulife | B | Sept. 9, 2022, 3:24 a.m. | OK | PyPy 3-64 | TESTS | 7 | 61 | 1945600 | ||
171462798 | nicku123 | B | Sept. 9, 2022, 3:25 a.m. | OK | PyPy 3-64 | TESTS | 7 | 61 | 2969600 | ||
171440184 | jasmineheart | B | Sept. 8, 2022, 6:52 p.m. | OK | PyPy 3-64 | TESTS | 5 | 61 | 3379200 | ||
171439448 | mintplz | B | Sept. 8, 2022, 6:43 p.m. | OK | PyPy 3-64 | TESTS | 5 | 61 | 3481600 | ||
171469585 | priyalj05 | B | Sept. 9, 2022, 5:35 a.m. | OK | PyPy 3-64 | TESTS | 7 | 62 | 1638400 | ||
171428044 | haeshitha | B | Sept. 8, 2022, 4:54 p.m. | OK | PyPy 3-64 | TESTS | 5 | 62 | 1638400 | ||
171436242 | pranjay_sidhwani | B | Sept. 8, 2022, 6:07 p.m. | OK | PyPy 3-64 | TESTS | 5 | 62 | 1843200 | ||
171434440 | AmeMis | B | Sept. 8, 2022, 5:49 p.m. | OK | PyPy 3-64 | TESTS | 5 | 62 | 1843200 | ||
171459615 | InariInDream | B | Sept. 9, 2022, 2:14 a.m. | OK | PyPy 3-64 | TESTS | 7 | 62 | 2867200 | ||
171447198 | omar.gawdat | B | Sept. 8, 2022, 8:44 p.m. | OK | Python 3 | TESTS | 6 | 31 | 0 | ||
171471382 | unfettered_one | B | Sept. 9, 2022, 6:02 a.m. | OK | Python 3 | TESTS | 7 | 46 | 0 | ||
171469863 | adarsh_jha | B | Sept. 9, 2022, 5:39 a.m. | OK | Python 3 | TESTS | 7 | 46 | 0 | ||
171460081 | ZrjaK | B | Sept. 9, 2022, 2:25 a.m. | OK | Python 3 | TESTS | 7 | 46 | 0 | ||
171455355 | happywater | B | Sept. 9, 2022, 12:24 a.m. | OK | Python 3 | TESTS | 7 | 46 | 0 | ||
171449253 | Tafusen | B | Sept. 8, 2022, 9:26 p.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
171448511 | Pythonic__Python | B | Sept. 8, 2022, 9:10 p.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
171448462 | Givinian | B | Sept. 8, 2022, 9:09 p.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
171447359 | Khaled47 | B | Sept. 8, 2022, 8:47 p.m. | OK | Python 3 | TESTS | 6 | 46 | 0 | ||
171444632 | your_friend | B | Sept. 8, 2022, 8:03 p.m. | OK | Python 3 | TESTS | 6 | 46 | 0 |
Back to search problems