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 |
---|---|---|---|---|---|---|
1741 | Codeforces Round 826 (Div. 3) | FINISHED | False | 8100 | 71767463 | Oct. 11, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 25698 ) | B | Funny Permutation | PROGRAMMING | constructive algorithms math |
B"A sequence of n numbers is called permutation if it contains all numbers from 1 to n exactly once. For example, the sequences [3, 1, 4, 2] , [ 1 ] and [2,1] are permutations, but [1,2,1] , [0,1] and [1,3,4] are not. For a given number n you need to make a permutation p such that two requirements are satisfied at the same time: Let's call the permutation that satisfies these requirements funny. For example, let n = 4 . Then [ 4, 3, 1, 2 ] is a funny permutation, since: For a given positive integer n , output any funny permutation of length n , or output -1 if funny permutation of length n does not exist. The first line of input data contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. Each test case consists of f single line containing one integer n ( 2 <= n <= 2 cdot 10^5 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, print on a separate line: The first test case is explained in the problem statement. In the second test case, it is not possible to make the required permutation: permutations [1, 2, 3] , [1, 3, 2] , [2, 1, 3] , [3, 2, 1] have fixed points, and in [2, 3, 1] and [3, 1, 2] the first condition is met not for all positions. "... |
107908 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
175680638 | Maseto | B | Oct. 11, 2022, 7:41 p.m. | OK | C# 10 | TESTS | 4 | 545 | 2969600 | ||
175699347 | bluemegane | B | Oct. 12, 2022, 1:40 a.m. | OK | C# 8 | TESTS | 4 | 140 | 12185600 | ||
175699950 | FrCr | B | Oct. 12, 2022, 1:53 a.m. | OK | Clang++17 Diagnostics | TESTS | 4 | 623 | 0 | ||
175669432 | Bhuvaneswar0911 | B | Oct. 11, 2022, 5:43 p.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 124 | 0 | ||
175699928 | FrCr | B | Oct. 12, 2022, 1:53 a.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 592 | 0 | ||
175697634 | Nondifferentiable | B | Oct. 12, 2022, 1 a.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 607 | 0 | ||
175682279 | youssefelse7y422 | B | Oct. 11, 2022, 8:04 p.m. | OK | Clang++20 Diagnostics | TESTS | 4 | 608 | 0 | ||
175664522 | nestor_makhno | B | Oct. 11, 2022, 5:06 p.m. | OK | GNU C11 | TESTS | 4 | 779 | 0 | ||
175661496 | Arihant.001 | B | Oct. 11, 2022, 4:51 p.m. | OK | GNU C11 | TESTS | 4 | 780 | 0 | ||
175666124 | Md_Tasrik | B | Oct. 11, 2022, 5:17 p.m. | OK | GNU C11 | TESTS | 4 | 795 | 0 | ||
175706039 | 123456L | B | Oct. 12, 2022, 3:46 a.m. | OK | GNU C11 | TESTS | 4 | 795 | 0 | ||
175660770 | vaguejellyfish | B | Oct. 11, 2022, 4:49 p.m. | OK | GNU C11 | TESTS | 4 | 795 | 0 | ||
175656317 | imshakibhasan | B | Oct. 11, 2022, 4:40 p.m. | OK | GNU C11 | TESTS | 4 | 795 | 0 | ||
175703586 | sshehan | B | Oct. 12, 2022, 3:02 a.m. | OK | GNU C11 | TESTS | 4 | 811 | 0 | ||
175709860 | Alizen_ | B | Oct. 12, 2022, 4:53 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
175700606 | nullsdfs2 | B | Oct. 12, 2022, 2:07 a.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
175669883 | siddhid2003 | B | Oct. 11, 2022, 5:47 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
175663005 | manikanta2901 | B | Oct. 11, 2022, 4:57 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
175658226 | kl_2000031556 | B | Oct. 11, 2022, 4:44 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
175657350 | Dhruva_18 | B | Oct. 11, 2022, 4:42 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 0 | ||
175662415 | Sumon_ali_ | B | Oct. 11, 2022, 4:54 p.m. | OK | GNU C++14 | TESTS | 4 | 15 | 819200 | ||
175705112 | CodeRookie666 | B | Oct. 12, 2022, 3:28 a.m. | OK | GNU C++14 | TESTS | 4 | 30 | 0 | ||
175690683 | nkrim | B | Oct. 11, 2022, 10:59 p.m. | OK | GNU C++14 | TESTS | 4 | 30 | 0 | ||
175674354 | vakhew1900 | B | Oct. 11, 2022, 6:29 p.m. | OK | GNU C++14 | TESTS | 4 | 30 | 0 | ||
175696200 | PUNGqw | B | Oct. 12, 2022, 12:12 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175670519 | newspaperguy | B | Oct. 11, 2022, 5:52 p.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175668284 | f20200493 | B | Oct. 11, 2022, 5:33 p.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175668242 | Pubg9999 | B | Oct. 11, 2022, 5:33 p.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175698673 | Hien | B | Oct. 12, 2022, 1:25 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175700987 | nozeno | B | Oct. 12, 2022, 2:15 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175711985 | IINE_HARD | B | Oct. 12, 2022, 5:07 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 0 | ||
175703247 | maka. | B | Oct. 12, 2022, 2:56 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 819200 | ||
175683400 | Jo.Wael | B | Oct. 11, 2022, 8:21 p.m. | OK | GNU C++17 | TESTS | 4 | 15 | 819200 | ||
175698737 | Light.3108 | B | Oct. 12, 2022, 1:27 a.m. | OK | GNU C++17 | TESTS | 4 | 15 | 1638400 | ||
175671249 | Chime | B | Oct. 11, 2022, 5:59 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
175665930 | illume2021 | B | Oct. 11, 2022, 5:15 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 15 | 0 | ||
175698666 | incursive | B | Oct. 12, 2022, 1:25 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175715874 | alif_cse_ju | B | Oct. 12, 2022, 5:58 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175705175 | Time_JYF | B | Oct. 12, 2022, 3:29 a.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175694903 | -LAP- | B | Oct. 11, 2022, 11:25 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175675839 | Frodoo | B | Oct. 11, 2022, 6:44 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175670657 | The_Conqueror_31.7 | B | Oct. 11, 2022, 5:54 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175669642 | Suyash_R10 | B | Oct. 11, 2022, 5:45 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175668577 | Advait_code | B | Oct. 11, 2022, 5:35 p.m. | OK | GNU C++17 (64) | TESTS | 4 | 30 | 0 | ||
175706297 | jagerknight | B | Oct. 12, 2022, 3:51 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175704493 | Farhan20 | B | Oct. 12, 2022, 3:18 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175703401 | nalin7711 | B | Oct. 12, 2022, 2:59 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175706756 | UFFraj4Plrrfm6_jQR | B | Oct. 12, 2022, 3:59 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175707401 | Javier00 | B | Oct. 12, 2022, 4:10 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175707902 | hhhhhhhj | B | Oct. 12, 2022, 4:19 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175708019 | wa_maker | B | Oct. 12, 2022, 4:22 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175708328 | codingvg131005 | B | Oct. 12, 2022, 4:28 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175714670 | ramakp34 | B | Oct. 12, 2022, 5:43 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175715937 | ooo3yyy | B | Oct. 12, 2022, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 4 | 15 | 0 | ||
175660603 | Saeed.Afshari | B | Oct. 11, 2022, 4:49 p.m. | OK | Java 11 | TESTS | 4 | 186 | 0 | ||
175698210 | wantu | B | Oct. 12, 2022, 1:15 a.m. | OK | Java 11 | TESTS | 4 | 187 | 0 | ||
175695594 | theSSS | B | Oct. 11, 2022, 11:51 p.m. | OK | Java 11 | TESTS | 4 | 187 | 0 | ||
175674430 | deepakkdkk | B | Oct. 11, 2022, 6:30 p.m. | OK | Java 11 | TESTS | 4 | 187 | 0 | ||
175702722 | rajan44chauhan | B | Oct. 12, 2022, 2:48 a.m. | OK | Java 11 | TESTS | 4 | 202 | 0 | ||
175674408 | KarMa_ | B | Oct. 11, 2022, 6:30 p.m. | OK | Java 11 | TESTS | 4 | 202 | 0 | ||
175662711 | __Serendipity | B | Oct. 11, 2022, 4:56 p.m. | OK | Java 11 | TESTS | 4 | 202 | 0 | ||
175669569 | wolfy_thee_wolf | B | Oct. 11, 2022, 5:44 p.m. | OK | Java 11 | TESTS | 4 | 218 | 0 | ||
175671456 | harsh_gupta_1705 | B | Oct. 11, 2022, 6:01 p.m. | OK | Java 11 | TESTS | 4 | 233 | 0 | ||
175704661 | unknown_world | B | Oct. 12, 2022, 3:20 a.m. | OK | Java 11 | TESTS | 4 | 249 | 0 | ||
175701810 | pili | B | Oct. 12, 2022, 2:31 a.m. | OK | Java 17 | TESTS | 4 | 171 | 819200 | ||
175712288 | waynebruce1704 | B | Oct. 12, 2022, 5:11 a.m. | OK | Java 17 | TESTS | 4 | 249 | 102400 | ||
175695509 | IceWolf898 | B | Oct. 11, 2022, 11:46 p.m. | OK | Java 17 | TESTS | 4 | 265 | 409600 | ||
175679896 | Dukkha | B | Oct. 11, 2022, 7:31 p.m. | OK | Java 17 | TESTS | 4 | 295 | 716800 | ||
175659107 | Intelijj_UB | B | Oct. 11, 2022, 4:46 p.m. | OK | Java 17 | TESTS | 4 | 311 | 307200 | ||
175697354 | Mohammad_Anwar | B | Oct. 12, 2022, 12:51 a.m. | OK | Java 17 | TESTS | 4 | 421 | 16486400 | ||
175656984 | varrick | B | Oct. 11, 2022, 4:41 p.m. | OK | Java 17 | TESTS | 4 | 779 | 204800 | ||
175662578 | vikramsawant3837 | B | Oct. 11, 2022, 4:55 p.m. | OK | Java 17 | TESTS | 4 | 779 | 512000 | ||
175668854 | fierynacho | B | Oct. 11, 2022, 5:38 p.m. | OK | Java 17 | TESTS | 4 | 779 | 819200 | ||
175706670 | shashwat.avasthi | B | Oct. 12, 2022, 3:58 a.m. | OK | Java 17 | TESTS | 4 | 794 | 819200 | ||
175664974 | raj_shahh | B | Oct. 11, 2022, 5:09 p.m. | OK | Java 8 | TESTS | 4 | 108 | 0 | ||
175685833 | Abdallah_Ragab00 | B | Oct. 11, 2022, 9:01 p.m. | OK | Java 8 | TESTS | 4 | 109 | 0 | ||
175701883 | frey4 | B | Oct. 12, 2022, 2:33 a.m. | OK | Java 8 | TESTS | 4 | 124 | 0 | ||
175655424 | P1011 | B | Oct. 11, 2022, 4:38 p.m. | OK | Java 8 | TESTS | 4 | 124 | 0 | ||
175712245 | kausanubhav2018 | B | Oct. 12, 2022, 5:11 a.m. | OK | Java 8 | TESTS | 4 | 139 | 38297600 | ||
175663781 | toufique_husein | B | Oct. 11, 2022, 5:01 p.m. | OK | Java 8 | TESTS | 4 | 140 | 0 | ||
175703740 | Ibrahimovic_The_Lion | B | Oct. 12, 2022, 3:05 a.m. | OK | Java 8 | TESTS | 4 | 171 | 8089600 | ||
175669718 | kumarvikash | B | Oct. 11, 2022, 5:45 p.m. | OK | Java 8 | TESTS | 4 | 686 | 0 | ||
175710516 | iamJatinYadav | B | Oct. 12, 2022, 5:03 a.m. | OK | Java 8 | TESTS | 4 | 701 | 0 | ||
175710141 | iamJatinYadav | B | Oct. 12, 2022, 4:58 a.m. | OK | Java 8 | TESTS | 4 | 716 | 0 | ||
175673334 | mea.culpa.rabi | B | Oct. 11, 2022, 6:19 p.m. | OK | Kotlin 1.4 | TESTS | 4 | 732 | 1843200 | ||
175710040 | liaopengfei | B | Oct. 12, 2022, 4:56 a.m. | OK | MS C++ 2017 | TESTS | 4 | 46 | 819200 | ||
175656669 | belief_010 | B | Oct. 11, 2022, 4:40 p.m. | OK | MS C++ 2017 | TESTS | 4 | 93 | 0 | ||
175660202 | Luca7 | B | Oct. 11, 2022, 4:48 p.m. | OK | MS C++ 2017 | TESTS | 4 | 109 | 102400 | ||
175675091 | Mirali7 | B | Oct. 11, 2022, 6:36 p.m. | OK | MS C++ 2017 | TESTS | 4 | 109 | 1638400 | ||
175697390 | Gao_zhenchuan | B | Oct. 12, 2022, 12:52 a.m. | OK | MS C++ 2017 | TESTS | 4 | 124 | 0 | ||
175709756 | Yaokasl | B | Oct. 12, 2022, 4:52 a.m. | OK | MS C++ 2017 | TESTS | 4 | 124 | 819200 | ||
175658294 | Anonymous_chief | B | Oct. 11, 2022, 4:44 p.m. | OK | MS C++ 2017 | TESTS | 4 | 124 | 2252800 | ||
175657834 | sjm7100 | B | Oct. 11, 2022, 4:43 p.m. | OK | MS C++ 2017 | TESTS | 4 | 265 | 819200 | ||
175669287 | Yash_Nandwana | B | Oct. 11, 2022, 5:42 p.m. | OK | PyPy 3 | TESTS | 4 | 186 | 12288000 | ||
175686521 | hxu10 | B | Oct. 11, 2022, 9:14 p.m. | OK | PyPy 3 | TESTS | 4 | 202 | 12288000 | ||
175673802 | AyaHazem61 | B | Oct. 11, 2022, 6:23 p.m. | OK | PyPy 3 | TESTS | 4 | 280 | 12800000 | ||
175663138 | Homeo | B | Oct. 11, 2022, 4:58 p.m. | OK | PyPy 3 | TESTS | 4 | 296 | 11878400 | ||
175661539 | Shaan_7 | B | Oct. 11, 2022, 4:51 p.m. | OK | PyPy 3 | TESTS | 4 | 296 | 12185600 | ||
175680148 | Dok_31 | B | Oct. 11, 2022, 7:34 p.m. | OK | PyPy 3 | TESTS | 4 | 326 | 11366400 | ||
175669727 | lullabies777 | B | Oct. 11, 2022, 5:45 p.m. | OK | PyPy 3 | TESTS | 4 | 327 | 12185600 | ||
175674572 | AyaHazem61 | B | Oct. 11, 2022, 6:31 p.m. | OK | PyPy 3 | TESTS | 4 | 327 | 12390400 | ||
175676171 | Beerus789 | B | Oct. 11, 2022, 6:48 p.m. | OK | PyPy 3 | TESTS | 4 | 342 | 11776000 | ||
175698400 | bokunopicolo | B | Oct. 12, 2022, 1:19 a.m. | OK | PyPy 3-64 | TESTS | 4 | 93 | 14336000 | ||
175681264 | biglunchdude | B | Oct. 11, 2022, 7:50 p.m. | OK | PyPy 3-64 | TESTS | 4 | 108 | 16179200 | ||
175689455 | crapcode | B | Oct. 11, 2022, 10:20 p.m. | OK | PyPy 3-64 | TESTS | 4 | 124 | 13619200 | ||
175668991 | ji-li-k | B | Oct. 11, 2022, 5:39 p.m. | OK | PyPy 3-64 | TESTS | 4 | 139 | 13721600 | ||
175698199 | acfinity | B | Oct. 12, 2022, 1:15 a.m. | OK | PyPy 3-64 | TESTS | 4 | 140 | 14438400 | ||
175706404 | Harry_kp | B | Oct. 12, 2022, 3:53 a.m. | OK | PyPy 3-64 | TESTS | 4 | 171 | 16076800 | ||
175714119 | gesuta | B | Oct. 12, 2022, 5:35 a.m. | OK | PyPy 3-64 | TESTS | 4 | 186 | 10854400 | ||
175702289 | ZaeThrix | B | Oct. 12, 2022, 2:40 a.m. | OK | PyPy 3-64 | TESTS | 4 | 202 | 13619200 | ||
175665034 | leena_morad | B | Oct. 11, 2022, 5:09 p.m. | OK | PyPy 3-64 | TESTS | 4 | 202 | 16076800 | ||
175681005 | vim1729 | B | Oct. 11, 2022, 7:46 p.m. | OK | PyPy 3-64 | TESTS | 4 | 202 | 19763200 | ||
175698275 | acfinity | B | Oct. 12, 2022, 1:16 a.m. | OK | Python 3 | TESTS | 4 | 93 | 8704000 | ||
175702822 | pleasant_sheep | B | Oct. 12, 2022, 2:49 a.m. | OK | Python 3 | TESTS | 4 | 108 | 13414400 | ||
175698071 | acfinity | B | Oct. 12, 2022, 1:12 a.m. | OK | Python 3 | TESTS | 4 | 109 | 9830400 | ||
175694715 | DavidT_ | B | Oct. 11, 2022, 11:21 p.m. | OK | Python 3 | TESTS | 4 | 139 | 14131200 | ||
175677532 | lucbarn | B | Oct. 11, 2022, 7:02 p.m. | OK | Python 3 | TESTS | 4 | 140 | 14745600 | ||
175680569 | ajaillet | B | Oct. 11, 2022, 7:40 p.m. | OK | Python 3 | TESTS | 4 | 155 | 11161600 | ||
175659294 | afs2185 | B | Oct. 11, 2022, 4:46 p.m. | OK | Python 3 | TESTS | 4 | 155 | 13107200 | ||
175655505 | kostina.anna | B | Oct. 11, 2022, 4:38 p.m. | OK | Python 3 | TESTS | 4 | 233 | 5120000 | ||
175658279 | KpToIIIKa_WapeHa9 | B | Oct. 11, 2022, 4:44 p.m. | OK | Python 3 | TESTS | 4 | 234 | 4710400 | ||
175680832 | shawongazi742 | B | Oct. 11, 2022, 7:44 p.m. | OK | Python 3 | TESTS | 4 | 234 | 4812800 | ||
175702441 | Sempr | B | Oct. 12, 2022, 2:43 a.m. | OK | Rust 2021 | TESTS | 4 | 15 | 102400 | ||
175684412 | avnyu | B | Oct. 11, 2022, 8:36 p.m. | OK | Rust 2021 | TESTS | 4 | 15 | 921600 | ||
175690514 | tajirhas9 | B | Oct. 11, 2022, 10:52 p.m. | OK | Rust 2021 | TESTS | 4 | 61 | 5529600 | ||
175690698 | tajirhas9 | B | Oct. 11, 2022, 10:59 p.m. | OK | Rust 2021 | TESTS | 4 | 77 | 5120000 |
Back to search problems