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 |
---|---|---|---|---|---|---|
1352 | Codeforces Round 640 (Div. 4) | FINISHED | False | 7200 | 148317911 | May 9, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21952 ) | G | Special Permutation | PROGRAMMING | constructive algorithms | 1600 |
B'A permutation of length n is an array p=[p_1,p_2, ... ,p_n] , which contains every integer from 1 to n (inclusive) and, moreover, each number appears exactly once. For example, p=[3,1,4,2,5] is a permutation of length 5 . For a given number n ( n ge 2 ), find a permutation p in which absolute difference (that is, the absolute value of difference) of any two neighboring (adjacent) elements is between 2 and 4 , inclusive. Formally, find such permutation p that 2 <= |p_i - p_{i+1}| <= 4 for each i ( 1 <= i < n ). Print any such permutation for the given integer n or determine that it does not exist. The first line contains an integer t ( 1 <= t <= 100 ) -- the number of test cases in the input. Then t test cases follow. Each test case is described by a single line containing an integer n ( 2 <= n <= 1000 ). Print t lines. Print a permutation that meets the given requirements. If there are several such permutations, then print any of them. If no such permutation exists, print -1. '... |
77161 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
80775759 | chncg | G | May 20, 2020, 1:19 p.m. | OK | Clang++17 Diagnostics | TESTS | 13 | 451 | 6348800 | 1600 | |
80453002 | Gassa | G | May 17, 2020, 9:07 a.m. | OK | D | TESTS | 13 | 46 | 9011200 | 1600 | |
80452994 | Gassa | G | May 17, 2020, 9:07 a.m. | OK | D | TESTS | 13 | 46 | 10854400 | 1600 | |
79731367 | Amin.s | G | May 11, 2020, 11:07 a.m. | OK | GNU C11 | TESTS | 13 | 312 | 3686400 | 1600 | |
80432829 | 6945832889HungDD | G | May 17, 2020, 5:02 a.m. | OK | GNU C11 | TESTS | 13 | 312 | 3686400 | 1600 | |
79679201 | PaltineanuRares | G | May 10, 2020, 5:54 p.m. | OK | GNU C11 | TESTS | 13 | 312 | 3686400 | 1600 | |
79799334 | BugLeave | G | May 12, 2020, 4:55 a.m. | OK | GNU C11 | TESTS | 13 | 327 | 0 | 1600 | |
79800171 | Rohan1380 | G | May 12, 2020, 5:12 a.m. | OK | GNU C11 | TESTS | 13 | 327 | 0 | 1600 | |
80703165 | vjudge4 | G | May 19, 2020, 3:23 p.m. | OK | GNU C11 | TESTS | 13 | 327 | 204800 | 1600 | |
80432400 | 6945832889HungDD | G | May 17, 2020, 4:55 a.m. | OK | GNU C11 | TESTS | 13 | 327 | 3686400 | 1600 | |
80402430 | parthdhorajiya365 | G | May 16, 2020, 5:52 p.m. | OK | GNU C11 | TESTS | 13 | 327 | 3686400 | 1600 | |
80183503 | 6945832889HungDD | G | May 15, 2020, 1:41 a.m. | OK | GNU C11 | TESTS | 13 | 327 | 3686400 | 1600 | |
79813188 | kingpin119 | G | May 12, 2020, 11:57 a.m. | OK | GNU C11 | TESTS | 13 | 327 | 3686400 | 1600 | |
79676373 | Executioner_001 | G | May 10, 2020, 5:17 p.m. | OK | GNU C++11 | TESTS | 13 | 30 | 3891200 | 1600 | |
79798238 | Janiin | G | May 12, 2020, 4:28 a.m. | OK | GNU C++11 | TESTS | 13 | 31 | 0 | 1600 | |
79789770 | livyx | G | May 12, 2020, 12:30 a.m. | OK | GNU C++11 | TESTS | 13 | 31 | 0 | 1600 | |
80621486 | Barret2 | G | May 18, 2020, 4:15 p.m. | OK | GNU C++11 | TESTS | 13 | 31 | 0 | 1600 | |
80772505 | vjudge3 | G | May 20, 2020, 12:34 p.m. | OK | GNU C++11 | TESTS | 13 | 31 | 0 | 1600 | |
81627224 | zengpeichen | G | May 27, 2020, 2:17 p.m. | OK | GNU C++11 | TESTS | 13 | 31 | 102400 | 1600 | |
80440651 | tjd229 | G | May 17, 2020, 6:44 a.m. | OK | GNU C++11 | TESTS | 13 | 31 | 3686400 | 1600 | |
80242967 | huangxiaohua | G | May 15, 2020, 4:03 p.m. | OK | GNU C++11 | TESTS | 13 | 31 | 3686400 | 1600 | |
80055437 | WAWAjingyang | G | May 14, 2020, 9:53 a.m. | OK | GNU C++11 | TESTS | 13 | 31 | 3686400 | 1600 | |
79972471 | vjudge3 | G | May 13, 2020, 11:14 a.m. | OK | GNU C++11 | TESTS | 13 | 31 | 3686400 | 1600 | |
79792364 | Zandew | G | May 12, 2020, 1:55 a.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | 1600 | |
80975944 | wildkite | G | May 23, 2020, 12:38 a.m. | OK | GNU C++14 | TESTS | 13 | 30 | 102400 | 1600 | |
80916587 | ss6364 | G | May 22, 2020, 8:40 a.m. | OK | GNU C++14 | TESTS | 13 | 30 | 204800 | 1600 | |
79686993 | shrutig_8 | G | May 10, 2020, 7:50 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3686400 | 1600 | |
79727490 | amitray1608 | G | May 11, 2020, 10:19 a.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3686400 | 1600 | |
79710835 | cule10 | G | May 11, 2020, 6:20 a.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3686400 | 1600 | |
79666852 | 17sanjana | G | May 10, 2020, 3:19 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3686400 | 1600 | |
80209338 | Rpsushil | G | May 15, 2020, 9:24 a.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3788800 | 1600 | |
79846068 | vjudge4 | G | May 12, 2020, 1:18 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3788800 | 1600 | |
79715032 | Kareem_Khaled | G | May 11, 2020, 7:22 a.m. | OK | GNU C++14 | TESTS | 13 | 30 | 3891200 | 1600 | |
81115210 | thewolf | G | May 24, 2020, 6:58 a.m. | OK | GNU C++17 | TESTS | 13 | 30 | 0 | 1600 | |
79795474 | wenkai | G | May 12, 2020, 3:22 a.m. | OK | GNU C++17 | TESTS | 13 | 30 | 0 | 1600 | |
79790595 | pikafan_8080 | G | May 12, 2020, 12:58 a.m. | OK | GNU C++17 | TESTS | 13 | 30 | 204800 | 1600 | |
79798946 | GhaReeb2000 | G | May 12, 2020, 4:47 a.m. | OK | GNU C++17 | TESTS | 13 | 30 | 307200 | 1600 | |
80854708 | villazer | G | May 21, 2020, 1:11 p.m. | OK | GNU C++17 | TESTS | 13 | 30 | 409600 | 1600 | |
79722005 | TopGun__ | G | May 11, 2020, 9:06 a.m. | OK | GNU C++17 | TESTS | 13 | 30 | 3686400 | 1600 | |
80536495 | freakcap | G | May 17, 2020, 4:03 p.m. | OK | GNU C++17 | TESTS | 13 | 30 | 3686400 | 1600 | |
80186834 | not_trolling | G | May 15, 2020, 3:13 a.m. | OK | GNU C++17 | TESTS | 13 | 30 | 3686400 | 1600 | |
80014981 | ArifHasan | G | May 13, 2020, 7:57 p.m. | OK | GNU C++17 | TESTS | 13 | 30 | 3686400 | 1600 | |
79773093 | hksharma | G | May 11, 2020, 6:12 p.m. | OK | GNU C++17 | TESTS | 13 | 30 | 3686400 | 1600 | |
80733612 | Redux | G | May 20, 2020, 1:30 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 0 | 1600 | |
80888085 | vmadhu99 | G | May 21, 2020, 8:58 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 0 | 1600 | |
80916493 | granddaifuku | G | May 22, 2020, 8:39 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 0 | 1600 | |
81436985 | vjudge1 | G | May 26, 2020, 5:06 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 0 | 1600 | |
79777598 | Anisur_rahaman | G | May 11, 2020, 7:22 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 0 | 1600 | |
79800586 | k0ndr | G | May 12, 2020, 5:19 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 0 | 1600 | |
79944791 | R0k0n | G | May 13, 2020, 5:35 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 4300800 | 1600 | |
79970964 | Aiman_S | G | May 13, 2020, 10:57 a.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 4300800 | 1600 | |
80013198 | thor_tm2011 | G | May 13, 2020, 7:10 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 4300800 | 1600 | |
80021770 | vjudge1 | G | May 13, 2020, 11:46 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 30 | 4300800 | 1600 | |
80394002 | Dipto_007 | G | May 16, 2020, 4:24 p.m. | OK | Go | TESTS | 13 | 31 | 10649600 | 1600 | |
79928454 | muravjov | G | May 12, 2020, 11:17 p.m. | OK | Go | TESTS | 13 | 46 | 10649600 | 1600 | |
81370997 | lamvh2812 | G | May 25, 2020, 10:12 a.m. | OK | Go | TESTS | 13 | 311 | 0 | 1600 | |
79713371 | Laurens | G | May 11, 2020, 7 a.m. | OK | Haskell | TESTS | 13 | 46 | 13824000 | 1600 | |
79989685 | wzyeustia | G | May 13, 2020, 2:30 p.m. | OK | Java 11 | TESTS | 13 | 171 | 23859200 | 1600 | |
79687798 | Richard727 | G | May 10, 2020, 8:03 p.m. | OK | Java 11 | TESTS | 13 | 171 | 23859200 | 1600 | |
81468340 | zhupeijun | G | May 26, 2020, 12:16 p.m. | OK | Java 11 | TESTS | 13 | 187 | 0 | 1600 | |
80989923 | mayank_dave | G | May 23, 2020, 6:38 a.m. | OK | Java 11 | TESTS | 13 | 187 | 0 | 1600 | |
80421088 | -Tommy- | G | May 16, 2020, 11:47 p.m. | OK | Java 11 | TESTS | 13 | 187 | 24064000 | 1600 | |
81000524 | EigenFunk | G | May 23, 2020, 9:19 a.m. | OK | Java 11 | TESTS | 13 | 202 | 0 | 1600 | |
80730121 | Bisoye | G | May 19, 2020, 11:08 p.m. | OK | Java 11 | TESTS | 13 | 202 | 0 | 1600 | |
79712383 | nickleoden299 | G | May 11, 2020, 6:45 a.m. | OK | Java 11 | TESTS | 13 | 202 | 23961600 | 1600 | |
80421482 | Apass.Jack | G | May 17, 2020, 12:03 a.m. | OK | Java 11 | TESTS | 13 | 202 | 24064000 | 1600 | |
79984752 | decoder_1671 | G | May 13, 2020, 1:37 p.m. | OK | Java 11 | TESTS | 13 | 202 | 24064000 | 1600 | |
79779149 | Mildog | G | May 11, 2020, 7:48 p.m. | OK | Java 8 | TESTS | 13 | 109 | 0 | 1600 | |
80630689 | CipherX | G | May 18, 2020, 6:17 p.m. | OK | Java 8 | TESTS | 13 | 109 | 0 | 1600 | |
80595310 | CaptainDaVinci | G | May 18, 2020, 11:11 a.m. | OK | Java 8 | TESTS | 13 | 109 | 20582400 | 1600 | |
79729402 | serafimkoo | G | May 11, 2020, 10:43 a.m. | OK | Java 8 | TESTS | 13 | 109 | 20582400 | 1600 | |
81694758 | prem_cse | G | May 28, 2020, 10:21 a.m. | OK | Java 8 | TESTS | 13 | 124 | 0 | 1600 | |
81591639 | lord_thunder | G | May 27, 2020, 7:14 a.m. | OK | Java 8 | TESTS | 13 | 124 | 0 | 1600 | |
80974228 | Oopsimbad | G | May 22, 2020, 11:17 p.m. | OK | Java 8 | TESTS | 13 | 124 | 0 | 1600 | |
79791281 | godxpunk | G | May 12, 2020, 1:21 a.m. | OK | Java 8 | TESTS | 13 | 124 | 0 | 1600 | |
80369713 | __goku__ | G | May 16, 2020, 1:25 p.m. | OK | Java 8 | TESTS | 13 | 124 | 20582400 | 1600 | |
80297767 | make_85 | G | May 16, 2020, 9:06 a.m. | OK | Java 8 | TESTS | 13 | 124 | 20582400 | 1600 | |
79797916 | da_201612051 | G | May 12, 2020, 4:21 a.m. | OK | Kotlin | TESTS | 13 | 139 | 0 | 1600 | |
81622053 | james007 | G | May 27, 2020, 1:17 p.m. | OK | Kotlin | TESTS | 13 | 139 | 512000 | 1600 | |
81449067 | vjudge3 | G | May 26, 2020, 8 a.m. | OK | Kotlin | TESTS | 13 | 140 | 0 | 1600 | |
81340093 | __fr__y__ | G | May 25, 2020, 1:49 a.m. | OK | Kotlin | TESTS | 13 | 155 | 0 | 1600 | |
80953842 | liouzhou_101 | G | May 22, 2020, 4:39 p.m. | OK | Kotlin | TESTS | 13 | 155 | 716800 | 1600 | |
80193459 | tabr | G | May 15, 2020, 5:39 a.m. | OK | Kotlin | TESTS | 13 | 155 | 23040000 | 1600 | |
80968679 | Riz1Ahmed | G | May 22, 2020, 8:28 p.m. | OK | Kotlin | TESTS | 13 | 202 | 0 | 1600 | |
81644587 | mrboorger | G | May 27, 2020, 5:35 p.m. | OK | Kotlin | TESTS | 13 | 218 | 512000 | 1600 | |
80975074 | mumumucoder | G | May 22, 2020, 11:56 p.m. | OK | Kotlin | TESTS | 13 | 327 | 0 | 1600 | |
80969321 | Riz1Ahmed | G | May 22, 2020, 8:43 p.m. | OK | Kotlin | TESTS | 13 | 389 | 0 | 1600 | |
79783934 | ansergeyg | G | May 11, 2020, 9:19 p.m. | OK | Mono C# | TESTS | 13 | 62 | 3072000 | 1600 | |
79694531 | mishgan | G | May 10, 2020, 10:44 p.m. | OK | Mono C# | TESTS | 13 | 62 | 11468800 | 1600 | |
79688337 | Anastasiya_Andreevna | G | May 10, 2020, 8:12 p.m. | OK | Mono C# | TESTS | 13 | 77 | 11468800 | 1600 | |
80424194 | sakapon | G | May 17, 2020, 1:40 a.m. | OK | Mono C# | TESTS | 13 | 93 | 16588800 | 1600 | |
79977940 | anish.1922 | G | May 13, 2020, 12:15 p.m. | OK | Mono C# | TESTS | 13 | 327 | 11468800 | 1600 | |
79735999 | vjudge2 | G | May 11, 2020, 12:01 p.m. | OK | MS C++ | TESTS | 13 | 31 | 3891200 | 1600 | |
79968517 | vjudge2 | G | May 13, 2020, 10:29 a.m. | OK | MS C++ | TESTS | 13 | 62 | 4096000 | 1600 | |
80000135 | KapBelka | G | May 13, 2020, 4:13 p.m. | OK | MS C++ | TESTS | 13 | 77 | 4096000 | 1600 | |
80275711 | tax | G | May 16, 2020, 3:54 a.m. | OK | MS C++ 2017 | TESTS | 13 | 31 | 3686400 | 1600 | |
80258500 | need1sword | G | May 15, 2020, 7:31 p.m. | OK | MS C++ 2017 | TESTS | 13 | 31 | 3686400 | 1600 | |
80958156 | Kirill456Z | G | May 22, 2020, 5:36 p.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 0 | 1600 | |
81572535 | The.Cursed.Mage | G | May 27, 2020, 1:43 a.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 307200 | 1600 | |
79753596 | metal4people | G | May 11, 2020, 2:15 p.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 3686400 | 1600 | |
79975998 | naitsabes.ezluhcs | G | May 13, 2020, 11:53 a.m. | OK | MS C++ 2017 | TESTS | 13 | 46 | 3993600 | 1600 | |
80723607 | Vitazzz | G | May 19, 2020, 7:56 p.m. | OK | MS C++ 2017 | TESTS | 13 | 61 | 0 | 1600 | |
79731767 | HishamDroubi | G | May 11, 2020, 11:12 a.m. | OK | MS C++ 2017 | TESTS | 13 | 62 | 3686400 | 1600 | |
80303787 | Ayvery | G | May 16, 2020, 10:22 a.m. | OK | MS C++ 2017 | TESTS | 13 | 62 | 3686400 | 1600 | |
79705914 | skkuinkwan1205 | G | May 11, 2020, 4:40 a.m. | OK | MS C++ 2017 | TESTS | 13 | 62 | 3686400 | 1600 | |
80025842 | flyman3046 | G | May 14, 2020, 2:24 a.m. | OK | PyPy 2 | TESTS | 13 | 140 | 23859200 | 1600 | |
80810535 | chaudhary_19 | G | May 20, 2020, 11:08 p.m. | OK | PyPy 2 | TESTS | 13 | 186 | 3379200 | 1600 | |
80514520 | apoorvwatsky | G | May 17, 2020, 11:34 a.m. | OK | PyPy 3 | TESTS | 13 | 155 | 22732800 | 1600 | |
80770328 | luke.moran | G | May 20, 2020, 12:06 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 2048000 | 1600 | |
80901738 | PraveenGupta | G | May 22, 2020, 4:48 a.m. | OK | PyPy 3 | TESTS | 13 | 171 | 2150400 | 1600 | |
81168407 | minm | G | May 24, 2020, 10:56 a.m. | OK | PyPy 3 | TESTS | 13 | 171 | 2252800 | 1600 | |
80742064 | intanon | G | May 20, 2020, 5:19 a.m. | OK | PyPy 3 | TESTS | 13 | 171 | 2457600 | 1600 | |
79678548 | ThuylinhTran | G | May 10, 2020, 5:46 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 22118400 | 1600 | |
80368221 | afentev | G | May 16, 2020, 1:22 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 22220800 | 1600 | |
79693906 | ShahJahan19 | G | May 10, 2020, 10:22 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 22323200 | 1600 | |
79707896 | codershuvo | G | May 11, 2020, 5:26 a.m. | OK | PyPy 3 | TESTS | 13 | 171 | 22425600 | 1600 | |
79768438 | shubhi_ | G | May 11, 2020, 5:01 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 22835200 | 1600 | |
79720435 | coderbd | G | May 11, 2020, 8:44 a.m. | OK | Python 2 | TESTS | 13 | 186 | 6553600 | 1600 | |
80422964 | cesmecelik | G | May 17, 2020, 12:59 a.m. | OK | Python 3 | TESTS | 13 | 124 | 7270400 | 1600 | |
80073698 | Jainan_Tandel | G | May 14, 2020, 1:29 p.m. | OK | Python 3 | TESTS | 13 | 124 | 7270400 | 1600 | |
79735323 | orailly | G | May 11, 2020, 11:54 a.m. | OK | Python 3 | TESTS | 13 | 124 | 7270400 | 1600 | |
79796416 | anoubhav | G | May 12, 2020, 3:46 a.m. | OK | Python 3 | TESTS | 13 | 139 | 409600 | 1600 | |
79982739 | ifte104 | G | May 13, 2020, 1:14 p.m. | OK | Python 3 | TESTS | 13 | 139 | 7168000 | 1600 | |
79981908 | ifte104 | G | May 13, 2020, 1:04 p.m. | OK | Python 3 | TESTS | 13 | 139 | 7270400 | 1600 | |
80032124 | divyansh_io | G | May 14, 2020, 4:55 a.m. | OK | Python 3 | TESTS | 13 | 140 | 7168000 | 1600 | |
79708784 | virajudaysingh | G | May 11, 2020, 5:43 a.m. | OK | Python 3 | TESTS | 13 | 140 | 7475200 | 1600 | |
80897786 | zhenfisher | G | May 22, 2020, 3:12 a.m. | OK | Python 3 | TESTS | 13 | 155 | 819200 | 1600 | |
80166785 | oskirych | G | May 14, 2020, 6:39 p.m. | OK | Python 3 | TESTS | 13 | 155 | 7065600 | 1600 | |
79669868 | VukG | G | May 10, 2020, 3:54 p.m. | OK | Rust | TESTS | 13 | 46 | 3788800 | 1600 | |
80376411 | garciparedes | G | May 16, 2020, 1:37 p.m. | OK | Rust | TESTS | 13 | 46 | 4096000 | 1600 |
Back to search problems