Codeforces Global Round 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
1119 Codeforces Global Round 2 FINISHED False 7200 177272699 April 6, 2019, 11:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6851 ) C Ramesses and Corner Inversion PROGRAMMING constructive algorithms greedy implementation math 1500

B"Ramesses came to university to algorithms practice, and his professor, who is a fairly known programmer, gave him the following task. You are given two matrices A and B of size n x m , each of which consists of 0 and 1 only. You can apply the following operation to the matrix A arbitrary number of times: take any submatrix of the matrix A that has at least two rows and two columns, and invert the values in its corners (i.e. all corners of the submatrix that contain 0 , will be replaced by 1 , and all corners of the submatrix that contain 1 , will be replaced by 0 ). You have to answer whether you can obtain the matrix B from the matrix A . Ramesses don't want to perform these operations by himself, so he asks you to answer this question. A submatrix of matrix M is a matrix which consist of all elements which come from one of the rows with indices x_1, x_1+1, ldots, x_2 of matrix M and one of the columns with indices y_1, y_1+1, ldots, y_2 of matrix M , where x_1, x_2, y_1, y_2 are the edge rows and columns of the submatrix. In other words, a submatrix is a set of elements of source matrix which form a solid rectangle (i.e. without holes) with sides parallel to the sides of the original matrix. The corners of the submatrix are cells (x_1, y_1) , (x_1, y_2) , (x_2, y_1) , (x_2, y_2) , where the cell (i,j) denotes the cell on the intersection of the i -th row and the j -th column. The first line contains two integers n and m ( 1 <= q n, m <= q 500 ) -- the number of rows and the number of columns in matrices A and B . Each of the next n lines contain m integers: the j -th integer in the i -th line is the j -th element of the i -th row of the matrix A ( 0 <= q A_{ij} <= q 1 ). Each of the next n lines contain m integers: the j$"...

Tutorials

Codeforces Global Round 2 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52389447 hos.lyric C April 6, 2019, 11:49 a.m. OK D TESTS 47 46 11878400 1500
52399233 avm C April 6, 2019, 12:23 p.m. OK D TESTS 47 46 32870400 1500
52398457 ia7ck C April 6, 2019, 12:19 p.m. OK D TESTS 47 61 11776000 1500
52394403 Gassa C April 6, 2019, 12:03 p.m. OK D TESTS 47 62 11776000 1500
52746717 dblark C April 14, 2019, 12:02 p.m. OK FPC TESTS 47 77 2048000 1500
52456106 Bear.-. C April 7, 2019, 11:48 a.m. OK FPC TESTS 47 639 2867200 1500
52404581 TShT C April 6, 2019, 12:52 p.m. OK FPC TESTS 47 639 3276800 1500
52393243 sansen C April 6, 2019, noon OK GNU C11 TESTS 47 31 2048000 1500
52397916 jschr C April 6, 2019, 12:17 p.m. OK GNU C11 TESTS 47 46 512000 1500
54745371 _nmp_ C May 28, 2019, 10:17 a.m. OK GNU C11 TESTS 47 77 1945600 1500
52678834 MYNAMEISSHARIFUL C April 13, 2019, 11:10 a.m. OK GNU C11 TESTS 47 77 1945600 1500
52608809 paispls C April 11, 2019, 3:05 p.m. OK GNU C11 TESTS 47 77 2048000 1500
52486758 PoojaJoshi31 C April 8, 2019, 9:26 a.m. OK GNU C11 TESTS 47 78 1945600 1500
52395820 zysbzddsj C April 6, 2019, 12:08 p.m. OK GNU C11 TESTS 47 78 2048000 1500
52424028 nipungoel11 C April 6, 2019, 6:30 p.m. OK GNU C11 TESTS 47 78 2048000 1500
52531340 newbiechdboom0 C April 9, 2019, 1:35 p.m. OK GNU C++11 TESTS 47 30 9011200 1500
52396800 TinyDumpling C April 6, 2019, 12:12 p.m. OK GNU C++11 TESTS 47 31 0 1500
56622990 tjj233233 C July 6, 2019, 12:37 p.m. OK GNU C++11 TESTS 47 31 307200 1500
56622329 luogu_bot2 C July 6, 2019, 12:22 p.m. OK GNU C++11 TESTS 47 31 307200 1500
52395556 KLL C April 6, 2019, 12:07 p.m. OK GNU C++11 TESTS 47 31 307200 1500
52395437 Fan_of_IceLocke C April 6, 2019, 12:07 p.m. OK GNU C++11 TESTS 47 31 307200 1500
52395121 cwxabc C April 6, 2019, 12:06 p.m. OK GNU C++11 TESTS 47 31 307200 1500
52664211 ZJH111111 C April 13, 2019, 3:17 a.m. OK GNU C++11 TESTS 47 31 512000 1500
52623913 xuxing C April 12, 2019, 1:16 a.m. OK GNU C++11 TESTS 47 31 512000 1500
52462450 star_magic_young C April 7, 2019, 2 p.m. OK GNU C++11 TESTS 47 31 512000 1500
52511902 islammohsen C April 9, 2019, 12:24 a.m. OK GNU C++14 TESTS 47 31 0 1500
52390977 dario2994 C April 6, 2019, 11:53 a.m. OK GNU C++14 TESTS 47 31 307200 1500
52391807 Linkus C April 6, 2019, 11:55 a.m. OK GNU C++14 TESTS 47 31 2048000 1500
52395416 tokitsukaze C April 6, 2019, 12:07 p.m. OK GNU C++14 TESTS 47 31 2150400 1500
52393693 wleung_bvg C April 6, 2019, 12:01 p.m. OK GNU C++14 TESTS 47 31 2150400 1500
52405092 Eassion_C C April 6, 2019, 12:55 p.m. OK GNU C++14 TESTS 47 31 3072000 1500
52429044 Jarug C April 6, 2019, 8:59 p.m. OK GNU C++14 TESTS 47 46 0 1500
52396170 _HYX_ C April 6, 2019, 12:10 p.m. OK GNU C++14 TESTS 47 46 512000 1500
52394366 .ckodser. C April 6, 2019, 12:03 p.m. OK GNU C++14 TESTS 47 46 716800 1500
52398015 dsl2002 C April 6, 2019, 12:17 p.m. OK GNU C++14 TESTS 47 61 1024000 1500
54267181 LiChenKoh C May 17, 2019, 6:43 a.m. OK GNU C++17 TESTS 47 31 102400 1500
52398984 mai C April 6, 2019, 12:22 p.m. OK GNU C++17 TESTS 47 31 307200 1500
52405757 Hackerman C April 6, 2019, 12:58 p.m. OK GNU C++17 TESTS 47 31 512000 1500
52392770 TrannyGraduate C April 6, 2019, 11:58 a.m. OK GNU C++17 TESTS 47 31 512000 1500
56991486 guilhermeppl C July 13, 2019, 6:34 p.m. OK GNU C++17 TESTS 47 31 1228800 1500
52400133 aysyxx53 C April 6, 2019, 12:27 p.m. OK GNU C++17 TESTS 47 31 2048000 1500
52680439 .tx C April 13, 2019, 12:06 p.m. OK GNU C++17 TESTS 47 31 2048000 1500
52393935 Trisolaris C April 6, 2019, 12:02 p.m. OK GNU C++17 TESTS 47 31 2150400 1500
52391896 idxcalccalc C April 6, 2019, 11:55 a.m. OK GNU C++17 TESTS 47 31 2355200 1500
52390423 IgorSmirnov C April 6, 2019, 11:51 a.m. OK GNU C++17 TESTS 47 31 3276800 1500
52660346 suryanshv23 C April 12, 2019, 10:12 p.m. OK Go TESTS 47 217 0 1500
52401415 Dekedro C April 6, 2019, 12:34 p.m. OK Go TESTS 47 217 0 1500
52660243 suryanshv23 C April 12, 2019, 10:05 p.m. OK Go TESTS 47 218 0 1500
67269096 CodAR C Dec. 20, 2019, 7:25 a.m. OK Java 11 TESTS 47 577 0 1500
55661980 heet_2201 C June 16, 2019, 10:12 p.m. OK Java 8 TESTS 47 109 0 1500
53277104 Musin C April 25, 2019, 10:04 a.m. OK Java 8 TESTS 47 109 0 1500
52551494 Tarun C April 10, 2019, 4:54 a.m. OK Java 8 TESTS 47 109 0 1500
52428409 tsumit023 C April 6, 2019, 8:32 p.m. OK Java 8 TESTS 47 109 0 1500
52399650 jonsnow7 C April 6, 2019, 12:25 p.m. OK Java 8 TESTS 47 109 0 1500
55807441 tmwilliamlin168 C June 20, 2019, 12:21 a.m. OK Java 8 TESTS 47 124 0 1500
55540655 prem_cse C June 13, 2019, 7:28 p.m. OK Java 8 TESTS 47 124 0 1500
53053943 jenish9599 C April 20, 2019, 4:10 p.m. OK Java 8 TESTS 47 124 0 1500
52810871 dalt C April 16, 2019, 8:36 a.m. OK Java 8 TESTS 47 124 0 1500
52528172 Ajudiya_13 C April 9, 2019, 12:23 p.m. OK Java 8 TESTS 47 124 0 1500
63771375 Spheniscine C Oct. 30, 2019, 8:06 a.m. OK Kotlin TESTS 47 140 0 1500
52397397 Lishy2010 C April 6, 2019, 12:15 p.m. OK Kotlin TESTS 47 202 4300800 1500
52399500 alexey.enkov C April 6, 2019, 12:24 p.m. OK Kotlin TESTS 47 265 204800 1500
55936630 og.kostya C June 22, 2019, 2:18 p.m. OK Mono C# TESTS 47 61 1945600 1500
52398414 omikad C April 6, 2019, 12:19 p.m. OK Mono C# TESTS 47 62 5017600 1500
52516818 frodob C April 9, 2019, 6:06 a.m. OK Mono C# TESTS 47 108 5017600 1500
52392564 eki C April 6, 2019, 11:57 a.m. OK Mono C# TESTS 47 109 5120000 1500
52488256 lewasupaman SaurumanS LapsleyJuno C April 8, 2019, 10:24 a.m. OK Mono C# TESTS 47 124 5120000 1500
52455341 IleksaNott C April 7, 2019, 11:30 a.m. OK Mono C# TESTS 47 124 7168000 1500
52398377 claw88 C April 6, 2019, 12:19 p.m. OK Mono C# TESTS 47 124 7577600 1500
52478728 camypaper C April 8, 2019, 2:55 a.m. OK Mono C# TESTS 47 124 9318400 1500
52512157 dinarisio C April 9, 2019, 12:47 a.m. OK Mono C# TESTS 47 124 11059200 1500
52394241 riantkb C April 6, 2019, 12:03 p.m. OK Mono C# TESTS 47 124 11161600 1500
52403733 wjfwjfwjf C April 6, 2019, 12:47 p.m. OK MS C++ TESTS 47 61 2048000 1500
54173518 S.K C May 15, 2019, 12:40 p.m. OK MS C++ TESTS 47 62 1024000 1500
52560182 vjudge4 C April 10, 2019, 9:55 a.m. OK MS C++ TESTS 47 62 2048000 1500
52604809 vjudge5 C April 11, 2019, 1:27 p.m. OK MS C++ TESTS 47 62 2048000 1500
52433145 vjudge3 C April 7, 2019, 1:10 a.m. OK MS C++ TESTS 47 62 2048000 1500
52435677 vjudge3 C April 7, 2019, 3:15 a.m. OK MS C++ TESTS 47 62 2048000 1500
52402424 wawahaha C April 6, 2019, 12:39 p.m. OK MS C++ TESTS 47 62 2457600 1500
52397823 2017212212283 C April 6, 2019, 12:17 p.m. OK MS C++ TESTS 47 77 2048000 1500
52555817 vjudge5 C April 10, 2019, 7:42 a.m. OK MS C++ TESTS 47 77 2048000 1500
52524937 vjudge3 C April 9, 2019, 11 a.m. OK MS C++ TESTS 47 77 2457600 1500
54898506 Lordxx C June 1, 2019, 4:59 a.m. OK MS C++ 2017 TESTS 47 62 2457600 1500
52523361 hwangganzi C April 9, 2019, 10:09 a.m. OK MS C++ 2017 TESTS 47 109 2048000 1500
52650629 CtrlAlt C April 12, 2019, 4:26 p.m. OK MS C++ 2017 TESTS 47 109 2150400 1500
52396127 hayk.saribekyan C April 6, 2019, 12:10 p.m. OK MS C++ 2017 TESTS 47 109 2252800 1500
52400226 R99 C April 6, 2019, 12:28 p.m. OK MS C++ 2017 TESTS 47 109 3072000 1500
52435667 Ivan11 C April 7, 2019, 3:14 a.m. OK MS C++ 2017 TESTS 47 109 4198400 1500
52411502 caiwj C April 6, 2019, 1:31 p.m. OK MS C++ 2017 TESTS 47 124 1024000 1500
52808860 DWAE86 C April 16, 2019, 7:10 a.m. OK MS C++ 2017 TESTS 47 124 1024000 1500
55970037 petko_mitkov C June 23, 2019, 2:15 p.m. OK MS C++ 2017 TESTS 47 124 2048000 1500
60264880 vjudge4 C Sept. 8, 2019, 1:04 p.m. OK MS C++ 2017 TESTS 47 124 2048000 1500
54884188 CyberGoose C May 31, 2019, 4:12 p.m. OK Ocaml TESTS 47 78 1536000 1500
52402102 gmusya C April 6, 2019, 12:38 p.m. OK PascalABC.NET TESTS 47 468 1126400 1500
52417455 Mukundan314 C April 6, 2019, 3:39 p.m. OK PyPy 2 TESTS 47 155 4505600 1500
52397520 frederika C April 6, 2019, 12:15 p.m. OK PyPy 2 TESTS 47 155 5632000 1500
52402815 potpath C April 6, 2019, 12:42 p.m. OK PyPy 2 TESTS 47 171 11161600 1500
52423630 sy_chen C April 6, 2019, 6:17 p.m. OK PyPy 2 TESTS 47 187 4096000 1500
52573914 raj1307 C April 10, 2019, 3:27 p.m. OK PyPy 2 TESTS 47 187 4710400 1500
52392250 pajenegod C April 6, 2019, 11:56 a.m. OK PyPy 2 TESTS 47 187 6144000 1500
52395113 c1729 C April 6, 2019, 12:06 p.m. OK PyPy 2 TESTS 47 202 6246400 1500
52400168 kabeer27 C April 6, 2019, 12:28 p.m. OK PyPy 2 TESTS 47 202 7884800 1500
52406186 allonsy_kim C April 6, 2019, 1:01 p.m. OK PyPy 2 TESTS 47 218 12492800 1500
53043447 Bovniova C April 20, 2019, 11:04 a.m. OK PyPy 3 TESTS 47 186 3686400 1500
52428135 LordVoldebug C April 6, 2019, 8:25 p.m. OK PyPy 3 TESTS 47 217 3891200 1500
52427635 LordVoldebug C April 6, 2019, 8:07 p.m. OK PyPy 3 TESTS 47 218 3891200 1500
52462974 I_love_Kim_Possible C April 7, 2019, 2:12 p.m. OK PyPy 3 TESTS 47 249 8294400 1500
54889415 Stephan C May 31, 2019, 7:21 p.m. OK PyPy 3 TESTS 47 249 8396800 1500
54951730 Zuizehongquaunha C June 1, 2019, 7:29 p.m. OK PyPy 3 TESTS 47 264 8294400 1500
52482286 AbduSharif C April 8, 2019, 6:29 a.m. OK PyPy 3 TESTS 47 264 8601600 1500
52392080 LeiviniaBirdway C April 6, 2019, 11:56 a.m. OK PyPy 3 TESTS 47 265 8294400 1500
52673863 nobe0716 C April 13, 2019, 8:42 a.m. OK PyPy 3 TESTS 47 265 13312000 1500
52650499 adshin21 C April 12, 2019, 4:23 p.m. OK PyPy 3 TESTS 47 280 8294400 1500
52417436 Helli.code C April 6, 2019, 3:39 p.m. OK Python 2 TESTS 47 187 102400 1500
52391451 nwi C April 6, 2019, 11:54 a.m. OK Python 2 TESTS 47 264 4096000 1500
52652342 wunder9l C April 12, 2019, 5:13 p.m. OK Python 2 TESTS 47 311 1126400 1500
52397153 igorock C April 6, 2019, 12:14 p.m. OK Python 2 TESTS 47 390 2457600 1500
52401422 slitvinov C April 6, 2019, 12:34 p.m. OK Python 2 TESTS 47 405 2355200 1500
52398353 Uranux C April 6, 2019, 12:19 p.m. OK Python 2 TESTS 47 436 3276800 1500
52404108 tangchuanxin C April 6, 2019, 12:49 p.m. OK Python 2 TESTS 47 483 2560000 1500
52651283 gatsko C April 12, 2019, 4:44 p.m. OK Python 2 TESTS 47 545 6860800 1500
52402058 ashashwat C April 6, 2019, 12:38 p.m. OK Python 2 TESTS 47 561 6144000 1500
52421400 mlmaster C April 6, 2019, 5:16 p.m. OK Python 3 TESTS 47 109 409600 1500
52392609 asvasil C April 6, 2019, 11:58 a.m. OK Python 3 TESTS 47 109 409600 1500
53529696 kp_2141 C April 29, 2019, 6:42 p.m. OK Python 3 TESTS 47 124 409600 1500
52453318 SamuelLH C April 7, 2019, 10:43 a.m. OK Python 3 TESTS 47 124 1433600 1500
52419159 bluecloud C April 6, 2019, 4:23 p.m. OK Python 3 TESTS 47 218 5529600 1500
52469546 Kirusha_krasavchik C April 7, 2019, 5:43 p.m. OK Python 3 TESTS 47 233 3174400 1500
52583418 Black_Fregat C April 10, 2019, 8:55 p.m. OK Python 3 TESTS 47 249 4505600 1500
53050485 gaidash C April 20, 2019, 2:22 p.m. OK Python 3 TESTS 47 264 2969600 1500
52517767 Dowlet.A C April 9, 2019, 6:49 a.m. OK Python 3 TESTS 47 264 4096000 1500
52421231 thongnon1996 C April 6, 2019, 5:12 p.m. OK Python 3 TESTS 47 265 4505600 1500
52405486 rinzu C April 6, 2019, 12:57 p.m. OK Ruby TESTS 47 296 2662400 1500
52390031 kobae964 C April 6, 2019, 11:50 a.m. OK Rust TESTS 47 93 2560000 1500
52400879 yakamoto C April 6, 2019, 12:31 p.m. OK Scala TESTS 47 499 0 1500

remove filters

Back to search problems