Codeforces Round 867 (Div. 3)

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
1822 Codeforces Round 867 (Div. 3) FINISHED False 8100 49476299 April 24, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16919 ) D Super-Permutation PROGRAMMING constructive algorithms math

B'A permutation is a sequence n integers, where each integer from 1 to n appears exactly once. For example, [1] , [3,5,2,1,4] , [1,3,2] are permutations, while [2,3,2] , [4,3,1] , [0] are not. Given a permutation a , we construct an array b , where b_i = (a_1 + a_2 +~ ... ~+ a_i) bmod n . A permutation of numbers [a_1, a_2, ... , a_n] is called a super-permutation if [b_1 + 1, b_2 + 1, ... , b_n + 1] is also a permutation of length n . Grisha became interested whether a super-permutation of length n exists. Help him solve this non-trivial problem. Output any super-permutation of length n , if it exists. Otherwise, output -1 . The first line 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 a single line containing one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the length of the desired permutation. The sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output in a separate line: If there are several suitable permutations, output any of them. '...

Tutorials

Codeforces Round #867 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
203380689 Anastasiya_Andreevna D April 25, 2023, 12:27 a.m. OK C# 8 TESTS 10 124 10444800
203346775 figuring-out D April 24, 2023, 4:59 p.m. OK Clang++17 Diagnostics TESTS 10 998 0
203356171 Mishra_09 D April 24, 2023, 6:05 p.m. OK Clang++17 Diagnostics TESTS 10 1310 19865600
203349096 astronom1cal D April 24, 2023, 5:11 p.m. OK GNU C11 TESTS 10 811 1638400
203391554 aoggg D April 25, 2023, 3:49 a.m. OK GNU C++14 TESTS 10 31 0
203386072 student941871365 D April 25, 2023, 2:21 a.m. OK GNU C++14 TESTS 10 31 0
203346236 Eunoiay D April 24, 2023, 4:57 p.m. OK GNU C++14 TESTS 10 31 0
203397472 morose_9816 D April 25, 2023, 5:20 a.m. OK GNU C++14 TESTS 10 31 0
203369134 PCC D April 24, 2023, 8:30 p.m. OK GNU C++14 TESTS 10 31 1740800
203371687 M.Elkhateb D April 24, 2023, 9:11 p.m. OK GNU C++14 TESTS 10 31 7987200
203393521 In_Sha_Allah D April 25, 2023, 4:20 a.m. OK GNU C++14 TESTS 10 46 0
203392090 KhaledFarhat D April 25, 2023, 3:58 a.m. OK GNU C++14 TESTS 10 46 0
203384887 Abid_52 D April 25, 2023, 1:57 a.m. OK GNU C++14 TESTS 10 46 0
203399761 serggdeo D April 25, 2023, 5:52 a.m. OK GNU C++14 TESTS 10 46 0
203378197 s010456 D April 24, 2023, 11:27 p.m. OK GNU C++17 TESTS 10 30 0
203369492 sabreload22 D April 24, 2023, 8:36 p.m. OK GNU C++17 TESTS 10 30 0
203355826 Hamed_Essam D April 24, 2023, 6:02 p.m. OK GNU C++17 TESTS 10 30 0
203347491 NintyMinLost D April 24, 2023, 5:03 p.m. OK GNU C++17 TESTS 10 30 0
203382292 mahmoudelsady378 D April 25, 2023, 1:02 a.m. OK GNU C++17 TESTS 10 30 0
203359364 till_i_collapse D April 24, 2023, 6:36 p.m. OK GNU C++17 TESTS 10 30 819200
203400519 AmanPachauria D April 25, 2023, 6:02 a.m. OK GNU C++17 TESTS 10 31 0
203400398 Niloy_noor D April 25, 2023, 6 a.m. OK GNU C++17 TESTS 10 31 0
203395065 NeikuiColacat D April 25, 2023, 4:45 a.m. OK GNU C++17 TESTS 10 31 0
203393722 A_M_Arka D April 25, 2023, 4:23 a.m. OK GNU C++17 TESTS 10 31 0
203383105 Xylenox D April 25, 2023, 1:20 a.m. OK GNU C++17 (64) TESTS 10 30 0
203399010 Fallen49 D April 25, 2023, 5:41 a.m. OK GNU C++17 (64) TESTS 10 30 0
203373383 Hend-Sayed D April 24, 2023, 9:39 p.m. OK GNU C++17 (64) TESTS 10 30 0
203370092 bera474 D April 24, 2023, 8:44 p.m. OK GNU C++17 (64) TESTS 10 31 0
203393305 bkifhr7 D April 25, 2023, 4:17 a.m. OK GNU C++17 (64) TESTS 10 31 0
203393258 Ceased.xp D April 25, 2023, 4:16 a.m. OK GNU C++17 (64) TESTS 10 31 0
203392262 drizzle_codes D April 25, 2023, 4 a.m. OK GNU C++17 (64) TESTS 10 31 0
203389458 0822 D April 25, 2023, 3:19 a.m. OK GNU C++17 (64) TESTS 10 31 0
203372473 HossamEssa D April 24, 2023, 9:23 p.m. OK GNU C++17 (64) TESTS 10 31 0
203394422 Promi.. D April 25, 2023, 4:34 a.m. OK GNU C++17 (64) TESTS 10 31 0
203391070 rashed_raihan D April 25, 2023, 3:42 a.m. OK GNU C++20 (64) TESTS 10 15 0
203391011 experimenta D April 25, 2023, 3:41 a.m. OK GNU C++20 (64) TESTS 10 15 0
203386595 MINASALAH555 D April 25, 2023, 2:31 a.m. OK GNU C++20 (64) TESTS 10 15 0
203395588 Yugen_ D April 25, 2023, 4:53 a.m. OK GNU C++20 (64) TESTS 10 15 0
203400025 shashankk D April 25, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 10 15 0
203399853 pjccccc D April 25, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 10 15 0
203399040 jiuxun D April 25, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 10 15 0
203398864 Xenone D April 25, 2023, 5:39 a.m. OK GNU C++20 (64) TESTS 10 15 0
203396436 wust-zzl D April 25, 2023, 5:05 a.m. OK GNU C++20 (64) TESTS 10 15 0
203395099 nathjess D April 25, 2023, 4:45 a.m. OK GNU C++20 (64) TESTS 10 15 0
203389648 manchik D April 25, 2023, 3:22 a.m. OK Go TESTS 10 61 4300800
203356510 blue_ice_yj D April 24, 2023, 6:08 p.m. OK Go TESTS 10 638 1638400
203345856 Yousef_Badr D April 24, 2023, 4:55 p.m. OK Java 11 TESTS 10 233 0
203368064 dzhi D April 24, 2023, 8:15 p.m. OK Java 11 TESTS 10 265 0
203375969 Talaat-Jr D April 24, 2023, 10:35 p.m. OK Java 11 TESTS 10 280 0
203360586 tushar19280 D April 24, 2023, 6:48 p.m. OK Java 11 TESTS 10 311 47206400
203356019 Zoatel D April 24, 2023, 6:03 p.m. OK Java 11 TESTS 10 312 0
203389382 CCS_Covenant D April 25, 2023, 3:17 a.m. OK Java 17 TESTS 10 202 716800
203354131 Danger_Don D April 24, 2023, 5:47 p.m. OK Java 17 TESTS 10 265 0
203348500 Badass_Nemesis D April 24, 2023, 5:08 p.m. OK Java 17 TESTS 10 265 614400
203389252 one_line D April 25, 2023, 3:15 a.m. OK Java 17 TESTS 10 280 512000
203364776 elf D April 24, 2023, 7:32 p.m. OK Java 17 TESTS 10 311 16384000
203382072 mumuxinfei D April 25, 2023, 12:58 a.m. OK Java 17 TESTS 10 342 1126400
203361389 skynet_07 D April 24, 2023, 6:56 p.m. OK Java 17 TESTS 10 592 819200
203388964 skylord69 D April 25, 2023, 3:11 a.m. OK Java 17 TESTS 10 873 819200
203376900 mohamedhassan_c D April 24, 2023, 10:56 p.m. OK Java 8 TESTS 10 139 5836800
203383820 OGtwelve D April 25, 2023, 1:35 a.m. OK Java 8 TESTS 10 140 0
203348635 WvemiY9 D April 24, 2023, 5:09 p.m. OK Java 8 TESTS 10 155 0
203346080 Koka D April 24, 2023, 4:56 p.m. OK Java 8 TESTS 10 155 0
203351516 Asee D April 24, 2023, 5:27 p.m. OK Java 8 TESTS 10 171 0
203398810 Autunomy D April 25, 2023, 5:38 a.m. OK Java 8 TESTS 10 514 0
203346559 Chandhu_13 D April 24, 2023, 4:58 p.m. OK Java 8 TESTS 10 732 0
203345702 Deependra_coder D April 24, 2023, 4:55 p.m. OK Java 8 TESTS 10 748 0
203352499 stainlao D April 24, 2023, 5:34 p.m. OK MS C++ 2017 TESTS 10 140 0
203345988 kirill146 D April 24, 2023, 4:56 p.m. OK MS C++ 2017 TESTS 10 140 1740800
203378729 huminclu D April 24, 2023, 11:40 p.m. OK MS C++ 2017 TESTS 10 171 0
203369395 shorya1835 D April 24, 2023, 8:35 p.m. OK MS C++ 2017 TESTS 10 186 0
203374184 AbdelrahmanGhania D April 24, 2023, 9:55 p.m. OK MS C++ 2017 TESTS 10 202 0
203349462 adesh123 D April 24, 2023, 5:13 p.m. OK MS C++ 2017 TESTS 10 202 2252800
203382662 xin2002 D April 25, 2023, 1:11 a.m. OK PyPy 3 TESTS 10 390 11673600
203396799 maihu02 D April 25, 2023, 5:10 a.m. OK PyPy 3 TESTS 10 436 10956800
203394544 mega_bot D April 25, 2023, 4:36 a.m. OK PyPy 3 TESTS 10 452 9728000
203392302 letsycode D April 25, 2023, 4:01 a.m. OK PyPy 3-64 TESTS 10 109 16384000
203345970 tranductri2003 D April 24, 2023, 4:56 p.m. OK PyPy 3-64 TESTS 10 124 16076800
203375032 rmr D April 24, 2023, 10:15 p.m. OK PyPy 3-64 TESTS 10 139 12185600
203391309 adithya1207 D April 25, 2023, 3:45 a.m. OK PyPy 3-64 TESTS 10 140 22835200
203363155 -Neel- D April 24, 2023, 7:14 p.m. OK PyPy 3-64 TESTS 10 155 16076800
203345813 bandiaoz D April 24, 2023, 4:55 p.m. OK PyPy 3-64 TESTS 10 170 20070400
203387191 Little_Sheep_Yawn D April 25, 2023, 2:43 a.m. OK PyPy 3-64 TESTS 10 171 18841600
203399516 Yansou D April 25, 2023, 5:48 a.m. OK PyPy 3-64 TESTS 10 218 15462400
203356829 HaisTous D April 24, 2023, 6:11 p.m. OK PyPy 3-64 TESTS 10 234 14438400
203375443 nush24 D April 24, 2023, 10:24 p.m. OK PyPy 3-64 TESTS 10 249 10854400
203382421 biltharesatyendra D April 25, 2023, 1:05 a.m. OK Python 2 TESTS 10 264 21606400
203346275 philk D April 24, 2023, 4:57 p.m. OK Python 3 TESTS 10 155 13312000
203347051 algebra_er D April 24, 2023, 5:01 p.m. OK Python 3 TESTS 10 202 12288000
203346289 ProCoder12 D April 24, 2023, 4:57 p.m. OK Python 3 TESTS 10 280 6451200
203363334 _aDVEINo_ D April 24, 2023, 7:16 p.m. OK Python 3 TESTS 10 327 6348800
203381354 brightest66 D April 25, 2023, 12:42 a.m. OK Python 3 TESTS 10 342 0
203351867 asan_aLi D April 24, 2023, 5:29 p.m. OK Python 3 TESTS 10 342 0
203348753 unknownchelik D April 24, 2023, 5:09 p.m. OK Python 3 TESTS 10 342 6451200
203363470 sm_07 D April 24, 2023, 7:18 p.m. OK Python 3 TESTS 10 358 5632000
203368359 bugEater D April 24, 2023, 8:19 p.m. OK Python 3 TESTS 10 373 4812800
203392874 Angel_Demon D April 25, 2023, 4:10 a.m. OK Python 3 TESTS 10 374 5529600
203396126 cpchenpi D April 25, 2023, 5 a.m. OK Rust 2021 TESTS 10 30 4198400
203398609 manchik D April 25, 2023, 5:35 a.m. OK Rust 2021 TESTS 10 109 0

remove filters

Back to search problems