Educational Codeforces Round 44 (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
985 Educational Codeforces Round 44 (Rated for Div. 2) FINISHED False 7200 204909299 May 21, 2018, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8171 ) A Chess Placing PROGRAMMING implementation 1200

B'You are given a chessboard of size 1 xe2 x80 x89 xc3 x97 xe2 x80 x89n. It is guaranteed that n is even. The chessboard is painted like this: "BWBW...BW". Some cells of the board are occupied by the chess pieces. Each cell contains no more than one chess piece. It is known that the total number of pieces equals to . In one step you can move one of the pieces one cell to the left or to the right. You cannot move pieces beyond the borders of the board. You also cannot move pieces to the cells that are already occupied. Your task is to place all the pieces in the cells of the same color using the minimum number of moves (all the pieces must occupy only the black cells or only the white cells after all the moves are made). The first line of the input contains one integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, n is even) -- the size of the chessboard. The second line of the input contains integer numbers (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- initial positions of the pieces. It is guaranteed that all the positions are distinct. Print one integer -- the minimum number of moves you have to make to place all the pieces in the cells of the same color. In the first example the only possible strategy is to move the piece at the position 6 to the position 5 and move the piece at the position 2 to the position 3. Notice that if you decide to place the pieces in the white cells the minimum number of moves will be 3. In the second example the possible strategy is to move in 4 moves, then in 3 moves, in 2 moves and in 1 move. '...

Tutorials

Educational Codeforces Round 44 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45648789 shubhamk_ojha A Nov. 12, 2018, 9:51 p.m. OK Clang++17 Diagnostics TESTS 27 46 307200 1200
38518527 rr_ A May 21, 2018, 9:01 p.m. OK D TESTS 27 31 0 1200
38518518 rr_ A May 21, 2018, 9 p.m. OK D TESTS 27 31 0 1200
39078427 Dasha_Gnedko A June 9, 2018, 8:40 p.m. OK FPC TESTS 27 15 0 1200
39263256 samau07012005 A June 15, 2018, 10:30 a.m. OK FPC TESTS 27 15 0 1200
38510931 PAG A May 21, 2018, 4:43 p.m. OK FPC TESTS 27 31 0 1200
38538083 AHTOH._. A May 22, 2018, 2:10 p.m. OK FPC TESTS 27 31 0 1200
49502645 PhuongPeu A Feb. 5, 2019, 3:58 p.m. OK FPC TESTS 27 31 102400 1200
38604814 BakedGluten A May 25, 2018, 9:21 a.m. OK GNU C TESTS 27 15 0 1200
39238328 codacoda A June 14, 2018, 9:33 a.m. OK GNU C TESTS 27 15 0 1200
38576457 code_pr A May 24, 2018, 4:23 a.m. OK GNU C TESTS 27 15 0 1200
39521443 samyak1021 A June 22, 2018, 4:02 p.m. OK GNU C TESTS 27 15 0 1200
38712144 alexbenescu A May 29, 2018, 7:39 a.m. OK GNU C TESTS 27 15 0 1200
38706192 jklemm22 Udders A May 28, 2018, 11:57 p.m. OK GNU C TESTS 27 15 0 1200
38704200 indianfootball A May 28, 2018, 8:44 p.m. OK GNU C TESTS 27 15 0 1200
38688942 falcon_9 A May 28, 2018, 8:53 a.m. OK GNU C TESTS 27 15 0 1200
38656794 tanvirbd A May 27, 2018, 2:04 p.m. OK GNU C TESTS 27 15 0 1200
38619471 nahid_1710039 A May 25, 2018, 11:06 p.m. OK GNU C TESTS 27 15 0 1200
39599866 menjiantong A June 24, 2018, 11:09 a.m. OK GNU C++ TESTS 27 15 0 1200
42446729 avighanshani A Sept. 4, 2018, 4:19 a.m. OK GNU C++ TESTS 27 15 0 1200
39424853 SuperBlueCat A June 20, 2018, 2:45 a.m. OK GNU C++ TESTS 27 15 0 1200
39062844 vjudge1 A June 9, 2018, 7:29 a.m. OK GNU C++ TESTS 27 15 0 1200
39061014 vjudge3 A June 9, 2018, 6 a.m. OK GNU C++ TESTS 27 15 0 1200
39059919 vjudge5 A June 9, 2018, 4:47 a.m. OK GNU C++ TESTS 27 15 0 1200
39059845 vjudge4 A June 9, 2018, 4:42 a.m. OK GNU C++ TESTS 27 15 0 1200
39059578 vjudge2 A June 9, 2018, 4:23 a.m. OK GNU C++ TESTS 27 15 0 1200
39059425 vjudge1 A June 9, 2018, 4:11 a.m. OK GNU C++ TESTS 27 15 0 1200
39059424 vjudge3 A June 9, 2018, 4:11 a.m. OK GNU C++ TESTS 27 15 0 1200
44986428 yrk317 A Oct. 28, 2018, 10:41 a.m. OK GNU C11 TESTS 27 30 0 1200
51642243 rainboy A March 21, 2019, 4:46 p.m. OK GNU C11 TESTS 27 30 0 1200
52882212 kaiboy A April 17, 2019, 1:33 a.m. OK GNU C11 TESTS 27 31 0 1200
49041888 vjudge1 A Jan. 27, 2019, 6:50 a.m. OK GNU C11 TESTS 27 31 0 1200
49041354 vjudge4 A Jan. 27, 2019, 6:37 a.m. OK GNU C11 TESTS 27 31 0 1200
46857641 NoSoul A Dec. 10, 2018, 3:50 p.m. OK GNU C11 TESTS 27 31 0 1200
46285623 Arpanet A Nov. 27, 2018, 3:59 p.m. OK GNU C11 TESTS 27 31 0 1200
38624297 karam123 A May 26, 2018, 5:53 a.m. OK GNU C11 TESTS 27 31 0 1200
43566134 Tanvir_Rasel A Sept. 29, 2018, 11:08 a.m. OK GNU C11 TESTS 27 31 0 1200
56435738 ifran09 A July 2, 2019, 2:05 p.m. OK GNU C11 TESTS 27 31 0 1200
47316531 Kianaz.A A Dec. 21, 2018, 4:21 a.m. OK GNU C++11 TESTS 27 15 0 1200
46752650 begiashvililevan A Dec. 8, 2018, 9:59 a.m. OK GNU C++11 TESTS 27 15 0 1200
44470822 Loi_tttty A Oct. 18, 2018, 6:15 a.m. OK GNU C++11 TESTS 27 15 0 1200
44280159 luogu_bot2 A Oct. 14, 2018, 3:35 a.m. OK GNU C++11 TESTS 27 15 0 1200
44278478 vjudge3 A Oct. 14, 2018, 1:28 a.m. OK GNU C++11 TESTS 27 15 0 1200
40050702 Vfire A July 7, 2018, 4:23 a.m. OK GNU C++11 TESTS 27 15 0 1200
39400979 dysnomia A June 19, 2018, 6:51 a.m. OK GNU C++11 TESTS 27 15 0 1200
39349658 wizardvun A June 18, 2018, 7:28 a.m. OK GNU C++11 TESTS 27 15 0 1200
39258235 Home3 A June 15, 2018, 5:48 a.m. OK GNU C++11 TESTS 27 15 0 1200
39245532 kingcranky A June 14, 2018, 1:29 p.m. OK GNU C++11 TESTS 27 15 0 1200
49978376 vishal_2504 A Feb. 16, 2019, 7:08 a.m. OK GNU C++14 TESTS 27 15 0 1200
55203258 Xerx_ A June 6, 2019, 11:30 a.m. OK GNU C++14 TESTS 27 15 0 1200
58043200 Sadra A July 30, 2019, 8:53 p.m. OK GNU C++14 TESTS 27 15 0 1200
58136254 harshmodi278 A Aug. 1, 2019, 4:13 p.m. OK GNU C++14 TESTS 27 15 0 1200
58994640 The_Black_Jaguar A Aug. 18, 2019, 10:49 a.m. OK GNU C++14 TESTS 27 15 0 1200
59433414 p.ferrari A Aug. 25, 2019, 7:32 a.m. OK GNU C++14 TESTS 27 15 0 1200
61057237 vipin123456 A Sept. 22, 2019, 8:26 a.m. OK GNU C++14 TESTS 27 15 0 1200
68985458 vjudge2 A Jan. 17, 2020, 12:19 p.m. OK GNU C++14 TESTS 27 15 0 1200
69676241 ysav A Jan. 28, 2020, 2:22 p.m. OK GNU C++14 TESTS 27 15 0 1200
69914542 chick_magnet A Jan. 31, 2020, 4:24 p.m. OK GNU C++14 TESTS 27 15 0 1200
69000216 Newbie-Compiler A Jan. 17, 2020, 7:14 p.m. OK GNU C++17 TESTS 27 15 0 1200
68484373 vjudge4 A Jan. 10, 2020, 9:05 a.m. OK GNU C++17 TESTS 27 15 0 1200
67790535 manovik18 A Dec. 28, 2019, 2:29 p.m. OK GNU C++17 TESTS 27 15 0 1200
66641101 nor A Dec. 11, 2019, 2:46 p.m. OK GNU C++17 TESTS 27 15 0 1200
64616689 limabeans A Nov. 10, 2019, 5:09 a.m. OK GNU C++17 TESTS 27 15 0 1200
61981936 Prateek A Oct. 6, 2019, 12:19 p.m. OK GNU C++17 TESTS 27 15 0 1200
61441249 A_to_A pranavg000 A Sept. 28, 2019, 6:53 p.m. OK GNU C++17 TESTS 27 15 0 1200
59200278 abhishekjoshi2612 A Aug. 21, 2019, 4:18 a.m. OK GNU C++17 TESTS 27 15 0 1200
56883870 IsaacMoris A July 12, 2019, 11:43 a.m. OK GNU C++17 TESTS 27 15 0 1200
56814557 aniket9465 A July 10, 2019, 6:18 p.m. OK GNU C++17 TESTS 27 15 0 1200
38643487 cclplus A May 26, 2018, 9:17 p.m. OK Go TESTS 27 31 102400 1200
38525531 lolopat2 A May 22, 2018, 6:28 a.m. OK Go TESTS 27 31 204800 1200
38515102 stczhc A May 21, 2018, 6:03 p.m. OK Haskell TESTS 27 15 0 1200
38584671 dusja.ds A May 24, 2018, 11:32 a.m. OK Haskell TESTS 27 15 102400 1200
38512528 rareone0602 A May 21, 2018, 4:57 p.m. OK Haskell TESTS 27 30 8499200 1200
47887288 Harbin A Jan. 4, 2019, 1:34 a.m. OK Java 8 TESTS 27 108 0 1200
46093260 shreyas_21 A Nov. 22, 2018, 8:49 p.m. OK Java 8 TESTS 27 124 0 1200
67052590 fundamentals A Dec. 17, 2019, 5:08 a.m. OK Java 8 TESTS 27 124 0 1200
61835221 Basilhijaz A Oct. 4, 2019, 7:49 a.m. OK Java 8 TESTS 27 124 0 1200
58113377 Vatsal53 A Aug. 1, 2019, 8:02 a.m. OK Java 8 TESTS 27 124 0 1200
54282199 Ikari_stream A May 17, 2019, 1:58 p.m. OK Java 8 TESTS 27 124 0 1200
51916117 Atomwolfie A March 27, 2019, 9:57 p.m. OK Java 8 TESTS 27 124 0 1200
47444912 llamaoo7 A Dec. 24, 2018, 5:28 a.m. OK Java 8 TESTS 27 124 0 1200
46127148 tooeasymakeitbetter A Nov. 23, 2018, 7:57 p.m. OK Java 8 TESTS 27 124 0 1200
45947571 ghangh A Nov. 19, 2018, 2:34 a.m. OK Java 8 TESTS 27 124 0 1200
38701311 HassanAzzam A May 28, 2018, 5:52 p.m. OK JavaScript TESTS 27 30 204800 1200
39203041 Salah_3id A June 13, 2018, 12:04 a.m. OK JavaScript TESTS 27 31 204800 1200
39203021 Salah_3id A June 13, 2018, 12:02 a.m. OK JavaScript TESTS 27 31 204800 1200
38591314 Sheldon_Cooper A May 24, 2018, 3:51 p.m. OK JavaScript TESTS 27 46 204800 1200
48582026 .tx A Jan. 19, 2019, 5:06 p.m. OK Kotlin TESTS 27 124 0 1200
46933924 Killer45 A Dec. 12, 2018, 12:57 p.m. OK Kotlin TESTS 27 124 409600 1200
38618246 g13 A May 25, 2018, 9:30 p.m. OK Kotlin TESTS 27 155 409600 1200
38512386 0442A403 A May 21, 2018, 4:55 p.m. OK Kotlin TESTS 27 155 614400 1200
38554121 Bjornie A May 23, 2018, 7:22 a.m. OK Kotlin TESTS 27 171 1126400 1200
38512474 yodhacs A May 21, 2018, 4:56 p.m. OK Kotlin TESTS 27 187 1126400 1200
38567234 louez A May 23, 2018, 4:04 p.m. OK Mono C# TESTS 27 31 0 1200
38511934 og.kostya A May 21, 2018, 4:48 p.m. OK Mono C# TESTS 27 31 0 1200
38523766 keep.deep A May 22, 2018, 4:49 a.m. OK Mono C# TESTS 27 31 0 1200
38696730 ztl8702 A May 28, 2018, 2:24 p.m. OK Mono C# TESTS 27 31 0 1200
38567321 B1GG A May 23, 2018, 4:08 p.m. OK Mono C# TESTS 27 46 0 1200
38696922 ztl8702 A May 28, 2018, 2:31 p.m. OK Mono C# TESTS 27 46 0 1200
38543444 n.a.borisov A May 22, 2018, 5:54 p.m. OK Mono C# TESTS 27 46 0 1200
38693230 merabi26 A May 28, 2018, 11:59 a.m. OK Mono C# TESTS 27 46 3584000 1200
38951082 Samyrai A June 4, 2018, 4:59 p.m. OK Mono C# TESTS 27 46 7987200 1200
38537216 wleung_bvg A May 22, 2018, 1:37 p.m. OK Mono C# TESTS 27 46 153804800 1200
44278384 vjudge1 A Oct. 14, 2018, 1:18 a.m. OK MS C++ TESTS 27 15 0 1200
38516278 turbokirichenko A May 21, 2018, 6:52 p.m. OK MS C++ TESTS 27 15 0 1200
38527474 1291835312 A May 22, 2018, 7:49 a.m. OK MS C++ TESTS 27 15 0 1200
38533656 Ancient_mage A May 22, 2018, 11:40 a.m. OK MS C++ TESTS 27 15 0 1200
38542276 backspacehistory A May 22, 2018, 4:54 p.m. OK MS C++ TESTS 27 15 0 1200
38543304 Abanob_Emad66 A May 22, 2018, 5:48 p.m. OK MS C++ TESTS 27 15 0 1200
38548374 pericle A May 23, 2018, 12:22 a.m. OK MS C++ TESTS 27 15 0 1200
38550045 Alecks A May 23, 2018, 3:12 a.m. OK MS C++ TESTS 27 15 0 1200
38551155 achudov89 A May 23, 2018, 4:44 a.m. OK MS C++ TESTS 27 15 0 1200
38628289 Akemii A May 26, 2018, 8:16 a.m. OK MS C++ TESTS 27 15 0 1200
68932904 amirseit.a.a A Jan. 16, 2020, 11:53 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
62057535 vjudge2 A Oct. 7, 2019, 12:35 p.m. OK MS C++ 2017 TESTS 27 31 0 1200
61980441 vjudge3 A Oct. 6, 2019, 11:50 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
61704049 vjudge3 A Oct. 2, 2019, 9:28 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
61681173 vjudge5 A Oct. 2, 2019, 1:13 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
59352902 Mad112233 A Aug. 23, 2019, 12:28 p.m. OK MS C++ 2017 TESTS 27 31 0 1200
57595338 CtrlAlt A July 23, 2019, 1:44 p.m. OK MS C++ 2017 TESTS 27 31 0 1200
53272138 taolahung01 A April 25, 2019, 7:06 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
51920366 g-m-blake A March 28, 2019, 3:39 a.m. OK MS C++ 2017 TESTS 27 31 0 1200
67454068 Parsa84 A Dec. 23, 2019, 5:59 a.m. OK MS C++ 2017 TESTS 27 31 307200 1200
39431726 secondwtq A June 20, 2018, 9:33 a.m. OK Ocaml TESTS 27 15 0 1200
38570046 jan25 A May 23, 2018, 6:32 p.m. OK Perl TESTS 27 31 0 1200
38519186 gabe A May 21, 2018, 10:07 p.m. OK Perl TESTS 27 46 0 1200
38549775 chawla_pro A May 23, 2018, 2:53 a.m. OK PyPy 2 TESTS 27 92 0 1200
38518643 fortmax120 A May 21, 2018, 9:11 p.m. OK PyPy 2 TESTS 27 108 0 1200
38640336 pypractice A May 26, 2018, 5:06 p.m. OK PyPy 3 TESTS 27 109 0 1200
38622199 stark_C A May 26, 2018, 3:52 a.m. OK PyPy 3 TESTS 27 109 0 1200
38506887 _GJH A May 21, 2018, 4:24 p.m. OK PyPy 3 TESTS 27 109 0 1200
38955057 stas_sl A June 4, 2018, 9:08 p.m. OK PyPy 3 TESTS 27 109 21401600 1200
38919270 bortoz A June 3, 2018, 11:33 a.m. OK PyPy 3 TESTS 27 109 21401600 1200
40848312 xumouyi A July 27, 2018, 1:15 p.m. OK PyPy 3 TESTS 27 124 0 1200
39234860 piyushkumarmaurya A June 14, 2018, 7:49 a.m. OK PyPy 3 TESTS 27 124 0 1200
38513495 arknave A May 21, 2018, 5:16 p.m. OK PyPy 3 TESTS 27 124 0 1200
68011192 Drago_ A Dec. 31, 2019, 3:53 p.m. OK PyPy 3 TESTS 27 139 0 1200
58687159 kchau A Aug. 13, 2019, 12:41 a.m. OK PyPy 3 TESTS 27 139 0 1200
38547224 nealzane A May 22, 2018, 9:58 p.m. OK Python 2 TESTS 27 93 0 1200
38537533 LanceTheDragonTrainer A May 22, 2018, 1:49 p.m. OK Python 2 TESTS 27 93 0 1200
38523652 valeti_manoj A May 22, 2018, 4:40 a.m. OK Python 2 TESTS 27 93 0 1200
39054073 imsubkrishd A June 8, 2018, 7:52 p.m. OK Python 2 TESTS 27 108 0 1200
38618170 hugox14 A May 25, 2018, 9:22 p.m. OK Python 2 TESTS 27 108 0 1200
38589100 Xeronn A May 24, 2018, 2:11 p.m. OK Python 2 TESTS 27 108 0 1200
38554885 tnowakow A May 23, 2018, 7:54 a.m. OK Python 2 TESTS 27 108 0 1200
39424454 sophirothwither A June 20, 2018, 2:02 a.m. OK Python 2 TESTS 27 109 0 1200
39070669 PBatch A June 9, 2018, 1:43 p.m. OK Python 2 TESTS 27 109 0 1200
39003918 dwij28 A June 6, 2018, 8:41 p.m. OK Python 2 TESTS 27 109 0 1200
39605150 LobsterLord A June 24, 2018, 2:17 p.m. OK Python 3 TESTS 27 77 0 1200
39421962 surik03yegor A June 19, 2018, 9:01 p.m. OK Python 3 TESTS 27 77 0 1200
39396488 rv15hwakarthik A June 19, 2018, 2:52 a.m. OK Python 3 TESTS 27 77 0 1200
38599288 boiiofboom A May 25, 2018, 2:17 a.m. OK Python 3 TESTS 27 77 0 1200
38565456 _Fizzz_ A May 23, 2018, 2:44 p.m. OK Python 3 TESTS 27 77 0 1200
38553761 atharva456 A May 23, 2018, 7:06 a.m. OK Python 3 TESTS 27 77 0 1200
38537531 AndreJQ A May 22, 2018, 1:49 p.m. OK Python 3 TESTS 27 77 0 1200
38513506 Abhi_hundal A May 21, 2018, 5:17 p.m. OK Python 3 TESTS 27 77 0 1200
39603001 vishal_911 A June 24, 2018, 12:52 p.m. OK Python 3 TESTS 27 78 0 1200
38716777 CodeMaster A May 29, 2018, 11:16 a.m. OK Python 3 TESTS 27 78 0 1200
38721924 khodzha A May 29, 2018, 2:55 p.m. OK Ruby TESTS 27 62 0 1200
38535159 cielavenir A May 22, 2018, 12:28 p.m. OK Ruby TESTS 27 78 204800 1200
38700179 C051N3 A May 28, 2018, 5 p.m. OK Rust TESTS 27 30 0 1200
38805274 pifagor97 A May 31, 2018, 2:39 p.m. OK Scala TESTS 27 530 39628800 1200
38513680 shastri.shankar9 A May 21, 2018, 5:21 p.m. OK Scala TESTS 27 560 0 1200

remove filters

Back to search problems