Educational Codeforces Round 41 (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
961 Educational Codeforces Round 41 (Rated for Div. 2) FINISHED False 7200 208972499 April 4, 2018, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5307 ) C Chessboard PROGRAMMING bitmasks brute force implementation 1400

B"Magnus decided to play a classic chess game. Though what he saw in his locker shocked him! His favourite chessboard got broken into 4 pieces, each of size n by n, n is always odd. And what's even worse, some squares were of wrong color. j-th square of the i-th row of k-th piece of the board has color ak, xe2 x80 x89i, xe2 x80 x89j; 1 being black and 0 being white. Now Magnus wants to change color of some squares in such a way that he recolors minimum number of squares and obtained pieces form a valid chessboard. Every square has its color different to each of the neightbouring by side squares in a valid board. Its size should be 2n by 2n. You are allowed to move pieces but not allowed to rotate or flip them. The first line contains odd integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- the size of all pieces of the board. Then 4 segments follow, each describes one piece of the board. Each consists of n lines of n characters; j-th one of i-th line is equal to 1 if the square is black initially and 0 otherwise. Segments are separated by an empty line. Print one number -- minimum number of squares Magnus should recolor to be able to obtain a valid chessboard. "...

Tutorials

Educational Codeforces Round 41 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
36967359 Denor C April 4, 2018, 3:15 p.m. OK Delphi TESTS 19 31 3993600 1400
36964110 ruban C April 4, 2018, 2:56 p.m. OK Delphi TESTS 19 31 17305600 1400
36987675 Ahriman C April 5, 2018, 4:35 a.m. OK FPC TESTS 19 30 3072000 1400
37040633 dambosin C April 7, 2018, 6:56 a.m. OK FPC TESTS 19 30 3174400 1400
58954211 Craspedacusta C Aug. 17, 2019, 12:15 p.m. OK FPC TESTS 19 31 102400 1400
43551061 TShT C Sept. 29, 2018, 12:17 a.m. OK FPC TESTS 19 31 819200 1400
36976384 rabbitcxk C April 4, 2018, 4:33 p.m. OK FPC TESTS 19 31 8499200 1400
41277327 chaorenhaha C Aug. 6, 2018, 1:56 p.m. OK FPC TESTS 19 46 102400 1400
41277319 chaorenhaha C Aug. 6, 2018, 1:55 p.m. OK FPC TESTS 19 46 204800 1400
40406306 chaorenhaha C July 16, 2018, 9:58 a.m. OK FPC TESTS 19 46 819200 1400
36966533 Bunnycxk C April 4, 2018, 3:10 p.m. OK FPC TESTS 19 46 8499200 1400
48059631 khoa101003 C Jan. 7, 2019, 2:21 p.m. OK FPC TESTS 19 61 102400 1400
37047106 alwerty C April 7, 2018, 10:45 a.m. OK GNU C TESTS 19 15 3379200 1400
37226574 mygenel C April 11, 2018, 2:22 p.m. OK GNU C TESTS 19 30 3584000 1400
36964091 pk1210 C April 4, 2018, 2:56 p.m. OK GNU C TESTS 19 31 3379200 1400
36968692 Rose C April 4, 2018, 3:24 p.m. OK GNU C TESTS 19 31 3584000 1400
37690842 Hyeokshin C April 28, 2018, 4:14 p.m. OK GNU C TESTS 19 31 3788800 1400
36979791 alexey.orlov C April 4, 2018, 6:41 p.m. OK GNU C TESTS 19 31 3788800 1400
36975903 zz_zigzag C April 4, 2018, 4:21 p.m. OK GNU C TESTS 19 31 4403200 1400
36975822 zz_zigzag C April 4, 2018, 4:20 p.m. OK GNU C TESTS 19 31 4403200 1400
36968458 TheGreatWa11 C April 4, 2018, 3:22 p.m. OK GNU C TESTS 19 46 3481600 1400
39645830 vjudge2 C June 25, 2018, 10:06 a.m. OK GNU C++ TESTS 19 15 102400 1400
39641806 vjudge3 C June 25, 2018, 7:32 a.m. OK GNU C++ TESTS 19 15 102400 1400
39535830 vjudge1 C June 23, 2018, 8:16 a.m. OK GNU C++ TESTS 19 15 102400 1400
36961841 Trisolaris C April 4, 2018, 2:44 p.m. OK GNU C++ TESTS 19 15 3276800 1400
38336937 trhxnss C May 17, 2018, 3:17 a.m. OK GNU C++ TESTS 19 15 3379200 1400
37263469 _ShadowSong C April 13, 2018, 2:39 a.m. OK GNU C++ TESTS 19 15 3379200 1400
37050042 vjudge3 C April 7, 2018, 12:35 p.m. OK GNU C++ TESTS 19 15 3379200 1400
36971635 shivgarg C April 4, 2018, 3:44 p.m. OK GNU C++ TESTS 19 15 3379200 1400
36966080 yekehe C April 4, 2018, 3:08 p.m. OK GNU C++ TESTS 19 15 3379200 1400
36964377 xish C April 4, 2018, 2:58 p.m. OK GNU C++ TESTS 19 15 3379200 1400
37261862 LudwigVanBeethoven C April 12, 2018, 11:30 p.m. OK GNU C11 TESTS 19 15 3276800 1400
37489688 emptyhu C April 20, 2018, 2:02 p.m. OK GNU C11 TESTS 19 15 3379200 1400
51944426 rainboy C March 28, 2019, 4:05 p.m. OK GNU C11 TESTS 19 31 0 1400
63667770 kaiboy C Oct. 28, 2019, 3:55 p.m. OK GNU C11 TESTS 19 31 0 1400
63688778 kaiboy C Oct. 29, 2019, 12:47 a.m. OK GNU C11 TESTS 19 31 0 1400
37279346 vjudge4 C April 13, 2018, 9:07 a.m. OK GNU C11 TESTS 19 31 3584000 1400
54431841 vjudge3 C May 21, 2019, 12:33 a.m. OK GNU C++11 TESTS 19 15 0 1400
46964471 Number_17 C Dec. 13, 2018, 10:28 a.m. OK GNU C++11 TESTS 19 15 0 1400
65469465 He_Ren C Nov. 21, 2019, 7:45 a.m. OK GNU C++11 TESTS 19 15 0 1400
54431964 vjudge4 C May 21, 2019, 12:46 a.m. OK GNU C++11 TESTS 19 15 102400 1400
39445056 rzaba C June 20, 2018, 7:34 p.m. OK GNU C++11 TESTS 19 15 819200 1400
36989336 i11000 C April 5, 2018, 6:16 a.m. OK GNU C++11 TESTS 19 15 3276800 1400
37572363 superlc320 C April 24, 2018, 12:35 p.m. OK GNU C++11 TESTS 19 15 3379200 1400
37032334 tomaso C April 6, 2018, 9:17 p.m. OK GNU C++11 TESTS 19 15 3379200 1400
36970829 wxh571001500 C April 4, 2018, 3:39 p.m. OK GNU C++11 TESTS 19 15 3379200 1400
37013377 Madeline C April 6, 2018, 5:46 a.m. OK GNU C++11 TESTS 19 15 3379200 1400
38680316 dvyn01 C May 27, 2018, 9:24 p.m. OK GNU C++14 TESTS 19 15 0 1400
38641404 AlexArdelean C May 26, 2018, 6:25 p.m. OK GNU C++14 TESTS 19 15 0 1400
55115130 sarthak1220 C June 5, 2019, 8:18 a.m. OK GNU C++14 TESTS 19 15 0 1400
51946500 Dukkha C March 28, 2019, 5:12 p.m. OK GNU C++14 TESTS 19 15 0 1400
68953175 darkknighht1 C Jan. 16, 2020, 6:50 p.m. OK GNU C++14 TESTS 19 15 0 1400
55695488 igorqs C June 17, 2019, 9:26 p.m. OK GNU C++14 TESTS 19 15 0 1400
55193499 komando1004123 C June 6, 2019, 7:28 a.m. OK GNU C++14 TESTS 19 15 0 1400
68742284 MinecraftFuns C Jan. 14, 2020, 2:08 a.m. OK GNU C++14 TESTS 19 15 102400 1400
59397884 vikas_404 C Aug. 24, 2019, 11:02 a.m. OK GNU C++14 TESTS 19 15 102400 1400
68743373 MinecraftFuns C Jan. 14, 2020, 2:54 a.m. OK GNU C++14 TESTS 19 15 102400 1400
39050754 mandinga C June 8, 2018, 4:20 p.m. OK GNU C++17 TESTS 19 15 0 1400
64556304 noelcowm C Nov. 9, 2019, 3:57 a.m. OK GNU C++17 TESTS 19 15 0 1400
54642709 walkher8 C May 25, 2019, 8:39 p.m. OK GNU C++17 TESTS 19 15 0 1400
50153214 UniPasha C Feb. 19, 2019, 8:35 a.m. OK GNU C++17 TESTS 19 15 0 1400
39788782 Lawali C June 30, 2018, 5:48 a.m. OK GNU C++17 TESTS 19 15 0 1400
39042949 whquddn55 C June 8, 2018, 10:34 a.m. OK GNU C++17 TESTS 19 15 0 1400
39261485 nupt_ant C June 15, 2018, 8:53 a.m. OK GNU C++17 TESTS 19 15 102400 1400
51211888 lhnrichy C March 12, 2019, 8:23 a.m. OK GNU C++17 TESTS 19 15 102400 1400
52458271 ZeroAmbition C April 7, 2019, 12:25 p.m. OK GNU C++17 TESTS 19 15 102400 1400
69548321 Aditya0412 C Jan. 26, 2020, 4:54 a.m. OK GNU C++17 TESTS 19 15 102400 1400
36966794 bupjae C April 4, 2018, 3:12 p.m. OK Go TESTS 19 31 24371200 1400
37007669 soultama C April 5, 2018, 9:06 p.m. OK Go TESTS 19 93 25292800 1400
48790678 mumeinokiseki C Jan. 23, 2019, 11:11 a.m. OK Java 8 TESTS 19 109 0 1400
69873414 maheshwari29 C Jan. 31, 2020, 2:17 a.m. OK Java 8 TESTS 19 109 0 1400
68720673 an09mous C Jan. 13, 2020, 4:08 p.m. OK Java 8 TESTS 19 109 0 1400
52780115 tsumit023 C April 15, 2019, 1:52 p.m. OK Java 8 TESTS 19 109 0 1400
45909169 hoperr C Nov. 18, 2018, 10:15 a.m. OK Java 8 TESTS 19 109 0 1400
45437524 himanshubhardwaj169 C Nov. 8, 2018, 8:55 a.m. OK Java 8 TESTS 19 109 0 1400
44233279 omarnvidia C Oct. 13, 2018, 2:23 a.m. OK Java 8 TESTS 19 109 0 1400
48386023 Washoum C Jan. 14, 2019, 1:05 p.m. OK Java 8 TESTS 19 124 0 1400
45184366 MylnikovNikolay C Nov. 1, 2018, 7:01 p.m. OK Java 8 TESTS 19 124 0 1400
38215981 zephyr_23 C May 14, 2018, 2:02 p.m. OK Java 8 TESTS 19 124 20684800 1400
41583241 0442A403 C Aug. 14, 2018, 9:17 a.m. OK Kotlin TESTS 19 124 0 1400
37403238 xionix C April 17, 2018, 2:41 p.m. OK Kotlin TESTS 19 202 21094400 1400
37928437 Zaczero C May 6, 2018, 12:18 p.m. OK Mono C# TESTS 19 46 13107200 1400
56507423 og.kostya C July 4, 2019, 9 a.m. OK Mono C# TESTS 19 62 0 1400
36965091 batraz C April 4, 2018, 3:02 p.m. OK Mono C# TESTS 19 62 11264000 1400
36964100 valekru C April 4, 2018, 2:56 p.m. OK Mono C# TESTS 19 62 12185600 1400
36967741 batraz00 C April 4, 2018, 3:18 p.m. OK Mono C# TESTS 19 77 11264000 1400
36968080 ucrop C April 4, 2018, 3:20 p.m. OK Mono C# TESTS 19 77 11264000 1400
39702175 vjudge2 C June 27, 2018, 1:02 p.m. OK MS C++ TESTS 19 15 0 1400
37186358 scorpiowf C April 11, 2018, 4:38 a.m. OK MS C++ TESTS 19 15 3481600 1400
36967298 Nadezhda C April 4, 2018, 3:15 p.m. OK MS C++ TESTS 19 15 3481600 1400
36969327 LeCoz C April 4, 2018, 3:28 p.m. OK MS C++ TESTS 19 15 3584000 1400
37709512 vjudge3 C April 29, 2018, 1:25 p.m. OK MS C++ TESTS 19 15 3584000 1400
37047449 vjudge3 C April 7, 2018, 10:59 a.m. OK MS C++ TESTS 19 15 3686400 1400
37017211 merzgling C April 6, 2018, 9:26 a.m. OK MS C++ TESTS 19 15 3686400 1400
36995781 lanran2001 C April 5, 2018, 11:28 a.m. OK MS C++ TESTS 19 15 3788800 1400
37044417 multitasked C April 7, 2018, 8:54 a.m. OK MS C++ TESTS 19 15 3788800 1400
37300946 thucd C April 14, 2018, 2:20 a.m. OK MS C++ TESTS 19 30 3481600 1400
64094429 TianZuiXing C Nov. 2, 2019, 1:31 p.m. OK MS C++ 2017 TESTS 19 30 0 1400
63896750 EDawn C Oct. 31, 2019, 2:33 a.m. OK MS C++ 2017 TESTS 19 31 0 1400
69227025 VagrantAC C Jan. 21, 2020, 7:44 a.m. OK MS C++ 2017 TESTS 19 46 0 1400
36990513 mayakin C April 5, 2018, 7:15 a.m. OK PHP TESTS 19 31 5939200 1400
36967092 alex347 C April 4, 2018, 3:14 p.m. OK PHP TESTS 19 202 6041600 1400
36977954 supachai_pay C April 4, 2018, 5:23 p.m. OK PyPy 2 TESTS 19 124 23040000 1400
68984861 vjudge4 C Jan. 17, 2020, 12:07 p.m. OK PyPy 2 TESTS 19 139 614400 1400
36982470 nealzane C April 4, 2018, 9:34 p.m. OK PyPy 2 TESTS 19 139 23859200 1400
36969800 EON_KID C April 4, 2018, 3:31 p.m. OK PyPy 2 TESTS 19 140 24064000 1400
36962912 zacker-22 C April 4, 2018, 2:50 p.m. OK PyPy 2 TESTS 19 187 27545600 1400
39746784 aeternalis1 C June 28, 2018, 3:11 p.m. OK PyPy 2 TESTS 19 202 2457600 1400
36961756 NoAnguish C April 4, 2018, 2:44 p.m. OK PyPy 2 TESTS 19 405 28774400 1400
37211866 Teferi C April 11, 2018, 9:16 a.m. OK PyPy 3 TESTS 19 109 22016000 1400
36981759 arknave C April 4, 2018, 8:42 p.m. OK PyPy 3 TESTS 19 124 21913600 1400
37213001 Teferi C April 11, 2018, 9:57 a.m. OK PyPy 3 TESTS 19 124 22016000 1400
36961786 figure0907 C April 4, 2018, 2:44 p.m. OK PyPy 3 TESTS 19 140 21811200 1400
36972987 arthurconmy C April 4, 2018, 3:54 p.m. OK PyPy 3 TESTS 19 140 22118400 1400
38439807 badrinarayan.sarma C May 19, 2018, 6:07 p.m. OK PyPy 3 TESTS 19 155 1536000 1400
69047731 vjudge3 C Jan. 18, 2020, 11:36 a.m. OK PyPy 3 TESTS 19 171 1945600 1400
45455489 hrustim25 C Nov. 8, 2018, 6:47 p.m. OK PyPy 3 TESTS 19 171 2150400 1400
58670367 Leendertz C Aug. 12, 2019, 2:11 p.m. OK PyPy 3 TESTS 19 171 2662400 1400
37025214 Yash_ C April 6, 2018, 3:44 p.m. OK PyPy 3 TESTS 19 171 23142400 1400
36963960 pavankatta C April 4, 2018, 2:55 p.m. OK Python 2 TESTS 19 109 6144000 1400
37143074 Ehzyo C April 10, 2018, 11:52 a.m. OK Python 2 TESTS 19 124 6041600 1400
36972753 fromexptolog C April 4, 2018, 3:52 p.m. OK Python 2 TESTS 19 124 6041600 1400
36966853 minhphuoc1998 C April 4, 2018, 3:12 p.m. OK Python 2 TESTS 19 124 6246400 1400
36963478 the_nightmare C April 4, 2018, 2:53 p.m. OK Python 2 TESTS 19 139 6041600 1400
36966783 sushilverma208016 C April 4, 2018, 3:12 p.m. OK Python 2 TESTS 19 155 6041600 1400
36967514 Raghav30 C April 4, 2018, 3:16 p.m. OK Python 2 TESTS 19 202 6451200 1400
36999437 tnowakow C April 5, 2018, 2:01 p.m. OK Python 2 TESTS 19 405 7270400 1400
36965666 deathgun C April 4, 2018, 3:05 p.m. OK Python 2 TESTS 19 795 6348800 1400
37362545 flyingtaco42 C April 15, 2018, 10:56 p.m. OK Python 2 TESTS 19 857 6451200 1400
37224503 Dimon2305 C April 11, 2018, 1:14 p.m. OK Python 3 TESTS 19 77 7065600 1400
37793349 steckel C May 1, 2018, 9:07 a.m. OK Python 3 TESTS 19 93 7065600 1400
37530720 yclrz C April 22, 2018, 10:29 a.m. OK Python 3 TESTS 19 93 7065600 1400
37133763 Yee_172 C April 10, 2018, 1:19 a.m. OK Python 3 TESTS 19 93 7065600 1400
37133682 Yee_172 C April 10, 2018, 1:10 a.m. OK Python 3 TESTS 19 93 7065600 1400
36969529 swapnilsmn C April 4, 2018, 3:30 p.m. OK Python 3 TESTS 19 93 7065600 1400
36967877 Manumanu99 C April 4, 2018, 3:19 p.m. OK Python 3 TESTS 19 93 7168000 1400
37533990 Qumeric C April 22, 2018, 1:15 p.m. OK Python 3 TESTS 19 93 7372800 1400
36985523 Arkabekuly_Mukhtar C April 5, 2018, 2:19 a.m. OK Python 3 TESTS 19 108 7065600 1400
36963371 s_p C April 4, 2018, 2:52 p.m. OK Python 3 TESTS 19 108 7065600 1400
36965079 cojna C April 4, 2018, 3:02 p.m. OK Rust TESTS 19 30 3072000 1400
36971403 tony.mooori C April 4, 2018, 3:43 p.m. OK Rust TESTS 19 30 7680000 1400
36961759 keithohno C April 4, 2018, 2:44 p.m. OK Rust TESTS 19 31 2969600 1400
36972381 nieru C April 4, 2018, 3:50 p.m. OK Scala TESTS 19 577 39936000 1400
36969642 esrever C April 4, 2018, 3:30 p.m. OK Scala TESTS 19 638 40140800 1400

remove filters

Back to search problems