Educational Codeforces Round 117 (Rated for Div. 2)

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
1612 Educational Codeforces Round 117 (Rated for Div. 2) FINISHED False 7200 99692663 Nov. 22, 2021, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17408 ) B Special Permutation PROGRAMMING constructive algorithms

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) exactly once. For example, p=[4, 2, 6, 5, 3, 1] is a permutation of length 6 . You are given three integers n , a and b , where n is an even number. Print any permutation of length n that the minimum among all its elements of the left half equals a and the maximum among all its elements of the right half equals b . Print -1 if no such permutation exists. The first line of the input contains one integer t ( 1 <= t <= 1000 ), the number of test cases in the test. The following t lines contain test case descriptions. Each test case description contains three integers n , a , b ( 2 <= n <= 100 ; 1 <= a,b <= n ; a ne b ), where n is an even number (i.e. n bmod 2 = 0 ). For each test case, print a single line containing any suitable permutation. Print -1 no such permutation exists. If there are multiple answers, print any of them. '...

Tutorials

97164

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
136524062 wahidu1 B Nov. 22, 2021, 2:04 p.m. OK GNU C11 TESTS 7 358 0
136563397 milan_s1 B Nov. 23, 2021, 3:05 a.m. OK GNU C11 TESTS 7 374 0
136512510 LittleNewb B Nov. 22, 2021, 1:15 p.m. OK GNU C11 TESTS 7 374 0
136523648 RUET_1903121 B Nov. 22, 2021, 2:01 p.m. OK GNU C11 TESTS 7 374 0
136562784 murali_33 B Nov. 23, 2021, 2:49 a.m. OK GNU C11 TESTS 7 374 102400
136532811 RobotWizard420 B Nov. 22, 2021, 3:40 p.m. OK GNU C11 TESTS 7 390 0
136520729 SNC123 B Nov. 22, 2021, 1:32 p.m. OK GNU C++14 TESTS 7 0 0
136504148 Richa812 B Nov. 22, 2021, 1:08 p.m. OK GNU C++14 TESTS 7 0 102400
136568897 Ryeblablabla B Nov. 23, 2021, 5:13 a.m. OK GNU C++14 TESTS 7 0 2457600
136564637 AnKhang B Nov. 23, 2021, 3:35 a.m. OK GNU C++14 TESTS 7 15 0
136568121 barthes0131 B Nov. 23, 2021, 4:58 a.m. OK GNU C++14 TESTS 7 15 0
136567844 superstarch B Nov. 23, 2021, 4:52 a.m. OK GNU C++14 TESTS 7 15 0
136566422 vedsarkushwaha B Nov. 23, 2021, 4:18 a.m. OK GNU C++14 TESTS 7 15 0
136565339 loveganr B Nov. 23, 2021, 3:52 a.m. OK GNU C++14 TESTS 7 15 0
136564772 1_Hypex_ B Nov. 23, 2021, 3:38 a.m. OK GNU C++14 TESTS 7 15 0
136570440 Dim245 B Nov. 23, 2021, 5:39 a.m. OK GNU C++14 TESTS 7 15 0
136526184 Dog_food_is_me B Nov. 22, 2021, 2:25 p.m. OK GNU C++17 TESTS 7 0 0
136525639 Arsenie B Nov. 22, 2021, 2:20 p.m. OK GNU C++17 TESTS 7 0 0
136539010 ishikakumari B Nov. 22, 2021, 4:59 p.m. OK GNU C++17 TESTS 7 0 0
136571367 shn.. B Nov. 23, 2021, 5:55 a.m. OK GNU C++17 TESTS 7 0 102400
136530621 ujjval_0908 B Nov. 22, 2021, 3:14 p.m. OK GNU C++17 TESTS 7 0 102400
136476656 chendalao B Nov. 22, 2021, 11:38 a.m. OK GNU C++17 TESTS 7 0 409600
136571641 enlivenboytarek B Nov. 23, 2021, 6 a.m. OK GNU C++17 TESTS 7 15 0
136571144 kamrul5656 B Nov. 23, 2021, 5:52 a.m. OK GNU C++17 TESTS 7 15 0
136570806 lys1280023 B Nov. 23, 2021, 5:46 a.m. OK GNU C++17 TESTS 7 15 0
136569773 adarsh__786 B Nov. 23, 2021, 5:28 a.m. OK GNU C++17 TESTS 7 15 0
136494055 illyakr B Nov. 22, 2021, 1:04 p.m. OK GNU C++17 (64) TESTS 7 0 0
136477078 yajusharma12 B Nov. 22, 2021, 11:40 a.m. OK GNU C++17 (64) TESTS 7 0 0
136525409 _Yeager_ B Nov. 22, 2021, 2:17 p.m. OK GNU C++17 (64) TESTS 7 0 0
136526810 nalin7711 B Nov. 22, 2021, 2:31 p.m. OK GNU C++17 (64) TESTS 7 0 0
136538702 GreyHatRR17 B Nov. 22, 2021, 4:55 p.m. OK GNU C++17 (64) TESTS 7 0 0
136539179 ZerO0O B Nov. 22, 2021, 5:01 p.m. OK GNU C++17 (64) TESTS 7 0 0
136545296 Aero__ B Nov. 22, 2021, 6:31 p.m. OK GNU C++17 (64) TESTS 7 0 0
136545483 qpEDop_MuXauJloBu4 B Nov. 22, 2021, 6:35 p.m. OK GNU C++17 (64) TESTS 7 0 0
136564719 OnMyZenith B Nov. 23, 2021, 3:37 a.m. OK GNU C++17 (64) TESTS 7 0 7987200
136571101 Debapriya010 B Nov. 23, 2021, 5:51 a.m. OK GNU C++17 (64) TESTS 7 15 0
136478943 Amanshah123 B Nov. 22, 2021, 11:52 a.m. OK GNU C++20 (64) TESTS 7 0 0
136466903 vodanhcc6 B Nov. 22, 2021, 11:24 a.m. OK GNU C++20 (64) TESTS 7 0 0
136530968 predator_24 B Nov. 22, 2021, 3:18 p.m. OK GNU C++20 (64) TESTS 7 0 0
136534046 WildHamburger B Nov. 22, 2021, 3:55 p.m. OK GNU C++20 (64) TESTS 7 0 0
136542709 ankushbhagat14 B Nov. 22, 2021, 5:53 p.m. OK GNU C++20 (64) TESTS 7 0 0
136557494 danwuSBU B Nov. 22, 2021, 11:31 p.m. OK GNU C++20 (64) TESTS 7 0 0
136559484 Scano B Nov. 23, 2021, 1:03 a.m. OK GNU C++20 (64) TESTS 7 0 0
136568688 FReAk B Nov. 23, 2021, 5:09 a.m. OK GNU C++20 (64) TESTS 7 0 0
136570393 Chaps-Again B Nov. 23, 2021, 5:39 a.m. OK GNU C++20 (64) TESTS 7 15 0
136567277 LuoHaiDong B Nov. 23, 2021, 4:38 a.m. OK GNU C++20 (64) TESTS 7 15 0
136567831 nitin23329 B Nov. 23, 2021, 4:51 a.m. OK Java 11 TESTS 7 187 0
136560364 jovial3 B Nov. 23, 2021, 1:35 a.m. OK Java 11 TESTS 7 187 0
136545107 wazerd__ B Nov. 22, 2021, 6:28 p.m. OK Java 11 TESTS 7 202 0
136483270 BS_khakim B Nov. 22, 2021, 12:30 p.m. OK Java 11 TESTS 7 202 0
136547452 RadheKrishna1815 B Nov. 22, 2021, 7:10 p.m. OK Java 11 TESTS 7 202 0
136547292 henrychenOutlook B Nov. 22, 2021, 7:07 p.m. OK Java 11 TESTS 7 202 0
136546367 codebook_2000 B Nov. 22, 2021, 6:51 p.m. OK Java 11 TESTS 7 202 0
136479012 sumitchavan B Nov. 22, 2021, 11:52 a.m. OK Java 11 TESTS 7 202 0
136527685 solo07 B Nov. 22, 2021, 2:41 p.m. OK Java 11 TESTS 7 202 0
136521104 procrastinate7 B Nov. 22, 2021, 1:35 p.m. OK Java 11 TESTS 7 202 0
136525182 gautam.abhinav36 B Nov. 22, 2021, 2:15 p.m. OK Java 8 TESTS 7 93 0
136540651 ss1237 B Nov. 22, 2021, 5:23 p.m. OK Java 8 TESTS 7 108 0
136559133 ssingh0271 B Nov. 23, 2021, 12:50 a.m. OK Java 8 TESTS 7 108 0
136554754 WangRuiCong B Nov. 22, 2021, 9:33 p.m. OK Java 8 TESTS 7 108 0
136549373 tishrah_ B Nov. 22, 2021, 7:51 p.m. OK Java 8 TESTS 7 109 0
136537048 Hasib_Ullah B Nov. 22, 2021, 4:33 p.m. OK Java 8 TESTS 7 109 0
136480357 Piyushnagpal80 B Nov. 22, 2021, 12:03 p.m. OK Java 8 TESTS 7 109 0
136552109 nitinrishab2000 B Nov. 22, 2021, 9:03 p.m. OK Java 8 TESTS 7 124 0
136562745 mohamedeidghanem17 B Nov. 23, 2021, 2:49 a.m. OK Java 8 TESTS 7 140 0
136562285 mohamedeidghanem17 B Nov. 23, 2021, 2:37 a.m. OK Java 8 TESTS 7 140 0
136548825 PavelChadnov B Nov. 22, 2021, 7:39 p.m. OK Kotlin 1.4 TESTS 7 171 2252800
136524456 linxiaotian B Nov. 22, 2021, 2:08 p.m. OK Kotlin 1.4 TESTS 7 186 2969600
136540304 tusharpruth B Nov. 22, 2021, 5:18 p.m. OK Kotlin 1.4 TESTS 7 452 1024000
136559008 d1d B Nov. 23, 2021, 12:43 a.m. OK MS C++ 2017 TESTS 7 15 0
136512321 diajutcum B Nov. 22, 2021, 1:13 p.m. OK MS C++ 2017 TESTS 7 15 0
136466087 XianztsZhong B Nov. 22, 2021, 11:22 a.m. OK MS C++ 2017 TESTS 7 15 0
136538263 EDGh B Nov. 22, 2021, 4:49 p.m. OK MS C++ 2017 TESTS 7 31 0
136547349 Damirca B Nov. 22, 2021, 7:08 p.m. OK MS C++ 2017 TESTS 7 46 0
136530054 nikuradze2006 B Nov. 22, 2021, 3:07 p.m. OK MS C++ 2017 TESTS 7 46 0
136481464 wuxin008 B Nov. 22, 2021, 12:12 p.m. OK MS C++ 2017 TESTS 7 46 0
136478481 Tangerine B Nov. 22, 2021, 11:49 a.m. OK MS C++ 2017 TESTS 7 46 0
136476984 Lone_coding B Nov. 22, 2021, 11:39 a.m. OK MS C++ 2017 TESTS 7 46 0
136466164 A_Pier B Nov. 22, 2021, 11:22 a.m. OK MS C++ 2017 TESTS 7 46 0
136539831 whatshisbucket B Nov. 22, 2021, 5:11 p.m. OK PyPy 3 TESTS 7 109 2150400
136551493 wolfram_ B Nov. 22, 2021, 8:45 p.m. OK PyPy 3 TESTS 7 124 8601600
136535097 dominator1234 B Nov. 22, 2021, 4:09 p.m. OK PyPy 3 TESTS 7 140 5017600
136527721 sw_enthusiast B Nov. 22, 2021, 2:41 p.m. OK PyPy 3 TESTS 7 140 67993600
136518088 cloak B Nov. 22, 2021, 1:25 p.m. OK PyPy 3 TESTS 7 155 3788800
136532245 blueedge B Nov. 22, 2021, 3:33 p.m. OK PyPy 3 TESTS 7 155 5120000
136540288 kArteraa B Nov. 22, 2021, 5:18 p.m. OK PyPy 3 TESTS 7 170 3584000
136562708 hxu10 B Nov. 23, 2021, 2:48 a.m. OK PyPy 3 TESTS 7 171 8294400
136528956 easedeath B Nov. 22, 2021, 2:54 p.m. OK PyPy 3 TESTS 7 171 70144000
136527818 AnaAI B Nov. 22, 2021, 2:42 p.m. OK PyPy 3 TESTS 7 186 3584000
136484190 rivnam B Nov. 22, 2021, 12:38 p.m. OK PyPy 3-64 TESTS 7 108 6451200
136534380 mayank35 B Nov. 22, 2021, 3:59 p.m. OK PyPy 3-64 TESTS 7 109 10035200
136555392 oadey89 B Nov. 22, 2021, 9:54 p.m. OK PyPy 3-64 TESTS 7 140 8294400
136480675 1015634 B Nov. 22, 2021, 12:05 p.m. OK PyPy 3-64 TESTS 7 140 11878400
136547804 todorokishoto.ua15 B Nov. 22, 2021, 7:17 p.m. OK PyPy 3-64 TESTS 7 156 10444800
136541353 gujik B Nov. 22, 2021, 5:33 p.m. OK PyPy 3-64 TESTS 7 170 7065600
136550161 tyzzi B Nov. 22, 2021, 8:09 p.m. OK PyPy 3-64 TESTS 7 171 8499200
136556270 TiNTen B Nov. 22, 2021, 10:31 p.m. OK PyPy 3-64 TESTS 7 171 9728000
136534517 Maltsev_Kir B Nov. 22, 2021, 4:01 p.m. OK PyPy 3-64 TESTS 7 171 9830400
136520899 kojihashimoto B Nov. 22, 2021, 1:33 p.m. OK PyPy 3-64 TESTS 7 171 10342400
136480838 elistark B Nov. 22, 2021, 12:06 p.m. OK Python 2 TESTS 7 46 0
136524063 OLOGY B Nov. 22, 2021, 2:04 p.m. OK Python 2 TESTS 7 46 0
136521287 OLOGY B Nov. 22, 2021, 1:37 p.m. OK Python 2 TESTS 7 61 0
136525650 OLOGY B Nov. 22, 2021, 2:20 p.m. OK Python 2 TESTS 7 61 0
136522759 OLOGY B Nov. 22, 2021, 1:52 p.m. OK Python 2 TESTS 7 61 0
136480395 juramoshkov B Nov. 22, 2021, 12:03 p.m. OK Python 3 TESTS 7 61 307200
136481650 reireg B Nov. 22, 2021, 12:14 p.m. OK Python 3 TESTS 7 77 0
136523784 GodSerena B Nov. 22, 2021, 2:02 p.m. OK Python 3 TESTS 7 78 0
136562794 DaTm27 B Nov. 23, 2021, 2:50 a.m. OK Python 3 TESTS 7 78 0
136485030 maniram477 B Nov. 22, 2021, 12:46 p.m. OK Python 3 TESTS 7 78 0
136554969 DomingoL B Nov. 22, 2021, 9:40 p.m. OK Python 3 TESTS 7 93 0
136524595 cruim B Nov. 22, 2021, 2:10 p.m. OK Python 3 TESTS 7 93 0
136504243 zhanghengrui B Nov. 22, 2021, 1:09 p.m. OK Python 3 TESTS 7 93 0
136466905 kacperziemecki B Nov. 22, 2021, 11:24 a.m. OK Python 3 TESTS 7 93 0
136530933 nkevinbastos B Nov. 22, 2021, 3:18 p.m. OK Python 3 TESTS 7 109 0
136558764 noogler B Nov. 23, 2021, 12:30 a.m. OK Rust TESTS 7 0 102400
136512690 mikaelrocks B Nov. 22, 2021, 1:17 p.m. OK Rust TESTS 7 15 0
136530871 Spheniscine B Nov. 22, 2021, 3:17 p.m. OK Rust TESTS 7 15 102400
136527864 Hyrulia B Nov. 22, 2021, 2:43 p.m. OK Rust TESTS 7 31 102400

remove filters

Back to search problems