Educational Codeforces Round 7

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
622 Educational Codeforces Round 7 FINISHED False 7200 276706799 Feb. 10, 2016, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3009 ) D Optimal Number Permutation PROGRAMMING constructive algorithms 1900

B"You have array a that contains all integers from 1 to n twice. You can arbitrary permute any numbers in a. Let number i be in positions xi, xe2 x80 x89yi (xi xe2 x80 x89< xe2 x80 x89yi) in the permuted array a. Let's define the value di xe2 x80 x89= xe2 x80 x89yi xe2 x80 x89- xe2 x80 x89xi -- the distance between the positions of the number i. Permute the numbers in array a to minimize the value of the sum . The only line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xc2 xb7105). Print 2n integers -- the permuted array a that minimizes the value of the sum s."...

Tutorials

Editorial of Educational Codeforces Round 7

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
15953206 gorbunov D Feb. 11, 2016, 9:11 a.m. OK D TESTS 16 156 6041600 1900
15952955 gorbunov D Feb. 11, 2016, 8:52 a.m. OK D TESTS 16 405 6041600 1900
15939409 igdor99 D Feb. 10, 2016, 4:10 p.m. OK Delphi TESTS 16 156 8908800 1900
16044813 Jicote D Feb. 16, 2016, 3:42 a.m. OK Delphi TESTS 16 170 3993600 1900
15952130 balalaika D Feb. 11, 2016, 7:46 a.m. OK Delphi TESTS 16 171 0 1900
15944045 kulpet345 D Feb. 10, 2016, 5:12 p.m. OK Delphi TESTS 16 171 3993600 1900
15942372 ruban D Feb. 10, 2016, 4:45 p.m. OK Delphi TESTS 16 217 8806400 1900
51774913 Andrey15253545 D March 23, 2019, 8:50 p.m. OK Delphi TESTS 16 218 0 1900
15946260 qtuan140101 D Feb. 10, 2016, 6:52 p.m. OK FPC TESTS 16 265 14028800 1900
15945571 Zeron D Feb. 10, 2016, 6:15 p.m. OK FPC TESTS 16 280 14028800 1900
42202278 chaorenhaha D Aug. 28, 2018, 9:24 a.m. OK FPC TESTS 16 280 42700800 1900
15953578 moysol D Feb. 11, 2016, 9:36 a.m. OK FPC TESTS 16 311 30105600 1900
15953198 Husayn_Hasanov D Feb. 11, 2016, 9:11 a.m. OK FPC TESTS 16 311 30105600 1900
15936802 zhaoxinyi D Feb. 10, 2016, 3:45 p.m. OK FPC TESTS 16 326 30105600 1900
42201490 chaorenhaha D Aug. 28, 2018, 9 a.m. OK FPC TESTS 16 327 42700800 1900
16055326 toraoh D Feb. 16, 2016, 12:02 p.m. OK FPC TESTS 16 374 14028800 1900
15975926 misleader D Feb. 12, 2016, 5:58 p.m. OK GNU C TESTS 16 202 0 1900
16420924 pr3pony D Feb. 29, 2016, 5:21 a.m. OK GNU C TESTS 16 218 0 1900
15943953 silver9450 D Feb. 10, 2016, 5:09 p.m. OK GNU C TESTS 16 218 0 1900
15943917 deror1869107 D Feb. 10, 2016, 5:08 p.m. OK GNU C TESTS 16 218 0 1900
15951168 honeysingh D Feb. 11, 2016, 6:19 a.m. OK GNU C TESTS 16 218 3993600 1900
24700665 rainboy D Feb. 15, 2017, 4:28 p.m. OK GNU C TESTS 16 218 5939200 1900
16023776 yougaindra D Feb. 14, 2016, 8:28 p.m. OK GNU C TESTS 16 233 3993600 1900
40489847 vjudge2 D July 17, 2018, 7:28 p.m. OK GNU C TESTS 16 234 0 1900
15943408 rchehab D Feb. 10, 2016, 4:58 p.m. OK GNU C TESTS 16 249 3993600 1900
15938261 TerryMcGinnis D Feb. 10, 2016, 3:58 p.m. OK GNU C++ TESTS 16 124 0 1900
16032494 Merodach D Feb. 15, 2016, 12:19 p.m. OK GNU C++ TESTS 16 202 0 1900
15945358 Daniar D Feb. 10, 2016, 6:03 p.m. OK GNU C++ TESTS 16 202 0 1900
15943960 silver9450 D Feb. 10, 2016, 5:09 p.m. OK GNU C++ TESTS 16 202 0 1900
15952566 simararorarox94 D Feb. 11, 2016, 8:22 a.m. OK GNU C++ TESTS 16 202 3993600 1900
15941077 Farsid D Feb. 10, 2016, 4:29 p.m. OK GNU C++ TESTS 16 202 3993600 1900
16983623 dhuacm10 D March 28, 2016, 7:49 a.m. OK GNU C++ TESTS 16 202 6860800 1900
22039523 pedroteosousa PedroBortolli D Nov. 4, 2016, 5:17 p.m. OK GNU C++ TESTS 16 217 0 1900
16055471 14190121 D Feb. 16, 2016, 12:12 p.m. OK GNU C++ TESTS 16 217 0 1900
15950864 16588 D Feb. 11, 2016, 5:52 a.m. OK GNU C++ TESTS 16 217 0 1900
16032022 Aidos D Feb. 15, 2016, 11:49 a.m. OK GNU C++11 TESTS 16 62 0 1900
15982676 mightyvoice D Feb. 13, 2016, 6:53 a.m. OK GNU C++11 TESTS 16 62 0 1900
15944186 agul D Feb. 10, 2016, 5:16 p.m. OK GNU C++11 TESTS 16 62 512000 1900
23377450 0verrider D Dec. 28, 2016, 12:20 p.m. OK GNU C++11 TESTS 16 62 2048000 1900
44073548 Umi D Oct. 10, 2018, 12:26 p.m. OK GNU C++11 TESTS 16 62 4300800 1900
40985247 ReaLNero1 D July 30, 2018, 7:50 p.m. OK GNU C++11 TESTS 16 78 0 1900
57816237 py_ultron D July 26, 2019, 7:51 p.m. OK GNU C++11 TESTS 16 187 3788800 1900
55739736 monsoon D June 19, 2019, 6:46 a.m. OK GNU C++11 TESTS 16 187 3788800 1900
55691881 monsoon D June 17, 2019, 6:41 p.m. OK GNU C++11 TESTS 16 187 3788800 1900
57255062 beacon_cwk D July 18, 2019, 2:04 a.m. OK GNU C++11 TESTS 16 187 3993600 1900
23330967 mola.mola D Dec. 26, 2016, 1:30 a.m. OK GNU C++14 TESTS 16 124 23142400 1900
28176199 no_one_ D June 30, 2017, 3:44 p.m. OK GNU C++14 TESTS 16 139 7884800 1900
34094082 Vlad1k D Jan. 11, 2018, 6:08 p.m. OK GNU C++14 TESTS 16 140 5939200 1900
34186002 demonsbane D Jan. 14, 2018, 11:26 p.m. OK GNU C++14 TESTS 16 155 1945600 1900
32946550 3agwa D Dec. 5, 2017, 11:29 a.m. OK GNU C++14 TESTS 16 155 1945600 1900
41949797 modric19 D Aug. 21, 2018, 11:17 p.m. OK GNU C++14 TESTS 16 155 3993600 1900
32199473 shyamkb D Nov. 10, 2017, 3:46 p.m. OK GNU C++14 TESTS 16 155 3993600 1900
30335929 FiftyNine D Sept. 14, 2017, 6:09 p.m. OK GNU C++14 TESTS 16 155 3993600 1900
26962002 dendi239 D May 8, 2017, 5:55 p.m. OK GNU C++14 TESTS 16 155 3993600 1900
22194370 ForgotToUpsolve D Nov. 13, 2016, 2:12 p.m. OK GNU C++14 TESTS 16 155 3993600 1900
56459083 vjudge5 D July 3, 2019, 5:54 a.m. OK GNU C++17 TESTS 16 155 0 1900
40446401 anctartica D July 16, 2018, 4:45 p.m. OK GNU C++17 TESTS 16 155 0 1900
58816443 Anar D Aug. 14, 2019, 12:39 p.m. OK GNU C++17 TESTS 16 155 3993600 1900
52751836 Swan D April 14, 2019, 2:28 p.m. OK GNU C++17 TESTS 16 155 3993600 1900
51918555 szechuan_sauce D March 28, 2019, 1:28 a.m. OK GNU C++17 TESTS 16 155 3993600 1900
46894868 personnon D Dec. 11, 2018, 8:37 a.m. OK GNU C++17 TESTS 16 155 3993600 1900
42245826 Loftier harshit15 sandy_033 D Aug. 29, 2018, 3:14 p.m. OK GNU C++17 TESTS 16 155 3993600 1900
40527662 dmkozyrev D July 18, 2018, 10:59 p.m. OK GNU C++17 TESTS 16 155 3993600 1900
40160256 dmkozyrev D July 10, 2018, 6:44 a.m. OK GNU C++17 TESTS 16 155 3993600 1900
40160208 dmkozyrev D July 10, 2018, 6:42 a.m. OK GNU C++17 TESTS 16 155 6041600 1900
16296426 binhuq D Feb. 23, 2016, 4:57 p.m. OK Go TESTS 16 280 16793600 1900
16296466 binhuq D Feb. 23, 2016, 5 p.m. OK Go TESTS 16 327 26009600 1900
19923703 pavel.rosputko D Aug. 17, 2016, 9:22 a.m. OK Haskell TESTS 16 187 55500800 1900
16143298 -Wave- D Feb. 18, 2016, 2:46 p.m. OK Haskell TESTS 16 295 18022400 1900
15942943 9mmlitswe D Feb. 10, 2016, 4:52 p.m. OK Haskell TESTS 16 342 42188800 1900
15951179 marcose18 D Feb. 11, 2016, 6:20 a.m. OK Java 7 TESTS 16 202 47616000 1900
15940562 nhrubin D Feb. 10, 2016, 4:22 p.m. OK Java 7 TESTS 16 218 0 1900
16217684 mkirsche D Feb. 19, 2016, 10:57 p.m. OK Java 7 TESTS 16 311 0 1900
16321572 alibaba D Feb. 25, 2016, 6:50 a.m. OK Java 7 TESTS 16 312 0 1900
15935629 nitegazer D Feb. 10, 2016, 3:35 p.m. OK Java 7 TESTS 16 327 49254400 1900
44259755 Heisen_Berg D Oct. 13, 2018, 1:57 p.m. OK Java 8 TESTS 16 187 28160000 1900
15939360 fnch D Feb. 10, 2016, 4:09 p.m. OK Java 8 TESTS 16 202 47206400 1900
15979811 alexrcoleman D Feb. 12, 2016, 11:38 p.m. OK Java 8 TESTS 16 217 47923200 1900
20468029 Corvus D Sept. 8, 2016, 7:30 p.m. OK Java 8 TESTS 16 218 43417600 1900
15958447 henrybear327 D Feb. 11, 2016, 3:08 p.m. OK Java 8 TESTS 16 218 47104000 1900
15979877 alexrcoleman D Feb. 12, 2016, 11:45 p.m. OK Java 8 TESTS 16 218 50892800 1900
15959546 hiro116s D Feb. 11, 2016, 4:17 p.m. OK Java 8 TESTS 16 233 0 1900
16873852 stacy992 D March 22, 2016, 3:58 p.m. OK Java 8 TESTS 16 233 20480000 1900
16542202 vio D March 5, 2016, 10:12 p.m. OK Java 8 TESTS 16 248 0 1900
51990632 jenish9599 D March 29, 2019, 7:52 p.m. OK Java 8 TESTS 16 249 0 1900
42766622 Slamur D Sept. 11, 2018, 1:29 p.m. OK Kotlin TESTS 16 296 1024000 1900
51888720 hongquanntct D March 27, 2019, 7:58 a.m. OK Mono C# TESTS 16 312 50176000 1900
42720191 QuantumKnight D Sept. 9, 2018, 11:32 p.m. OK Mono C# TESTS 16 343 64716800 1900
15936757 og.kostya D Feb. 10, 2016, 3:44 p.m. OK MS C# TESTS 16 171 7168000 1900
15936597 azukun D Feb. 10, 2016, 3:43 p.m. OK MS C# TESTS 16 187 50483200 1900
15951214 TranCongDuy D Feb. 11, 2016, 6:23 a.m. OK MS C# TESTS 16 202 50892800 1900
16013134 DigitalArtistKz D Feb. 14, 2016, 5:45 a.m. OK MS C# TESTS 16 218 9420800 1900
15940013 eitaho D Feb. 10, 2016, 4:17 p.m. OK MS C# TESTS 16 233 50073600 1900
15939708 toraoh D Feb. 10, 2016, 4:13 p.m. OK MS C# TESTS 16 248 3276800 1900
15972348 bati06 D Feb. 12, 2016, 2:34 p.m. OK MS C# TESTS 16 249 50790400 1900
16016491 korvin87 D Feb. 14, 2016, 10:34 a.m. OK MS C# TESTS 16 249 50790400 1900
15939260 AnatolyTolstobrov D Feb. 10, 2016, 4:08 p.m. OK MS C# TESTS 16 249 50892800 1900
56460097 vjudge5 D July 3, 2019, 6:24 a.m. OK MS C++ TESTS 16 218 0 1900
15968237 ip96cns D Feb. 12, 2016, 9:07 a.m. OK MS C++ TESTS 16 218 0 1900
19608239 Awata D Aug. 4, 2016, 3:04 a.m. OK MS C++ TESTS 16 233 0 1900
16274839 smmr_20 D Feb. 22, 2016, 10:26 a.m. OK MS C++ TESTS 16 233 0 1900
15957989 weedjy D Feb. 11, 2016, 2:41 p.m. OK MS C++ TESTS 16 233 3993600 1900
15955542 Perforator D Feb. 11, 2016, 12:16 p.m. OK MS C++ TESTS 16 233 3993600 1900
15944698 balalaika D Feb. 10, 2016, 5:34 p.m. OK MS C++ TESTS 16 233 3993600 1900
56459382 vjudge1 D July 3, 2019, 6:04 a.m. OK MS C++ TESTS 16 233 3993600 1900
56460537 vjudge5 D July 3, 2019, 6:35 a.m. OK MS C++ TESTS 16 233 3993600 1900
56461198 vjudge4 D July 3, 2019, 6:53 a.m. OK MS C++ TESTS 16 234 0 1900
69400052 pichulia D Jan. 23, 2020, 8:13 a.m. OK MS C++ 2017 TESTS 16 249 3993600 1900
15938393 alexey.shchepin D Feb. 10, 2016, 3:59 p.m. OK Ocaml TESTS 16 296 7372800 1900
15945023 nkt D Feb. 10, 2016, 5:48 p.m. OK PyPy 2 TESTS 16 202 57548800 1900
15942604 kfx D Feb. 10, 2016, 4:48 p.m. OK PyPy 2 TESTS 16 202 57548800 1900
40155461 aeternalis1 D July 10, 2018, 2:36 a.m. OK PyPy 2 TESTS 16 280 41164800 1900
17157096 TokuchiToa D April 4, 2016, 11:51 a.m. OK PyPy 2 TESTS 16 311 70451200 1900
46641861 IrOty1oX5uSp4 D Dec. 5, 2018, 10:11 a.m. OK PyPy 2 TESTS 16 404 84992000 1900
41540771 Onesh0t D Aug. 12, 2018, 10:53 p.m. OK PyPy 2 TESTS 16 623 72806400 1900
48085220 Skybytskyi.Nikita D Jan. 8, 2019, 10:51 a.m. OK PyPy 3 TESTS 16 748 45260800 1900
31875073 yugle7 D Oct. 29, 2017, 6:51 p.m. OK PyPy 3 TESTS 16 857 108748800 1900
15979770 cugel D Feb. 12, 2016, 11:34 p.m. OK PyPy 3 TESTS 16 857 110592000 1900
26877485 0w1 D May 5, 2017, 9:47 a.m. OK PyPy 3 TESTS 16 998 54886400 1900
15941906 alex457 D Feb. 10, 2016, 4:39 p.m. OK Python 2 TESTS 16 405 45363200 1900
18873159 olegp04728 D July 3, 2016, 9:46 p.m. OK Python 2 TESTS 16 421 58572800 1900
15938118 WeakChicken D Feb. 10, 2016, 3:57 p.m. OK Python 2 TESTS 16 498 60518400 1900
16043861 mrthefakeperson D Feb. 16, 2016, 1:54 a.m. OK Python 2 TESTS 16 529 0 1900
17592247 andreamaf D April 30, 2016, 9:11 a.m. OK Python 2 TESTS 16 529 59289600 1900
16009218 mplaton D Feb. 13, 2016, 8:58 p.m. OK Python 2 TESTS 16 655 20070400 1900
15942205 PrimePassion D Feb. 10, 2016, 4:43 p.m. OK Python 2 TESTS 16 795 26521600 1900
15944793 neizod D Feb. 10, 2016, 5:37 p.m. OK Python 3 TESTS 16 420 50278400 1900
15962400 liuyubobobo D Feb. 11, 2016, 6:56 p.m. OK Python 3 TESTS 16 654 56320000 1900
15939479 Artem_179 D Feb. 10, 2016, 4:11 p.m. OK Python 3 TESTS 16 670 55808000 1900
15966473 ACkf D Feb. 12, 2016, 6:26 a.m. OK Python 3 TESTS 16 888 55910400 1900
15944415 cielavenir D Feb. 10, 2016, 5:23 p.m. OK Ruby TESTS 16 452 16179200 1900
35896136 ______u______ D March 3, 2018, 5:02 p.m. OK Ruby TESTS 16 467 22630400 1900
35888024 ______k______ D March 3, 2018, 2:14 p.m. OK Ruby TESTS 16 467 22630400 1900
35887078 ______i______ D March 3, 2018, 1:57 p.m. OK Ruby TESTS 16 467 22630400 1900
35885111 ______M______ D March 3, 2018, 1:22 p.m. OK Ruby TESTS 16 467 22630400 1900
17203160 CyberZHG D April 7, 2016, 12:07 p.m. OK Ruby TESTS 16 483 24473600 1900
17203150 vjudge1 D April 7, 2016, 12:06 p.m. OK Ruby TESTS 16 498 24473600 1900
15944442 deror1869107 D Feb. 10, 2016, 5:25 p.m. OK Ruby TESTS 16 561 0 1900
15958026 octaviantuchila14 D Feb. 11, 2016, 2:44 p.m. OK Scala TESTS 16 374 59801600 1900

remove filters

Back to search problems