Educational Codeforces Round 59 (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
1107 Educational Codeforces Round 59 (Rated for Div. 2) FINISHED False 7200 189008724 Jan. 26, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3746 ) D Compression PROGRAMMING dp implementation math number theory 1800

B"You are given a binary matrix A of size n x n . Let's denote an x -compression of the given matrix as a matrix B of size frac{n}{x} x frac{n}{x} such that for every i in [1, n], j in [1, n] the condition A[i][j] = B[ lceil frac{i}{x} rceil][ lceil frac{j}{x} rceil] is met. Obviously, x -compression is possible only if x divides n , but this condition is not enough. For example, the following matrix of size 2 x 2 does not have any 2 -compression: For the given matrix A , find maximum x such that an x -compression of this matrix is possible. Note that the input is given in compressed form. But even though it is compressed, you'd better use fast input. The first line contains one number n ( 4 <= n <= 5200 ) -- the number of rows and columns in the matrix A . It is guaranteed that n is divisible by 4 . Then the representation of matrix follows. Each of n next lines contains frac{n}{4} one-digit hexadecimal numbers (that is, these numbers can be represented either as digits from 0 to 9 or as uppercase Latin letters from A to F ). Binary representation of each of these numbers denotes next 4 elements of the matrix in the corresponding row. For example, if the number B is given, then the corresponding elements are 1011, and if the number is 5 , then the corresponding elements are 0101. Elements are not separated by whitespaces. Print one number: maximum x such that an x -compression of the given matrix is possible. The first example corresponds to the matrix: It is easy to see that the answer on this example is 1 . "...

Tutorials

Educational Codeforces Round 59 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51916185 rr_ D March 27, 2019, 10:02 p.m. OK D TESTS 73 1169 223641600 1800
51916603 rr_ D March 27, 2019, 10:34 p.m. OK D TESTS 73 1310 184115200 1800
49032421 ruban D Jan. 26, 2019, 11:59 p.m. OK Delphi TESTS 73 1731 176537600 1800
49022052 ruban D Jan. 26, 2019, 5:46 p.m. OK Delphi TESTS 73 2074 176537600 1800
49012930 PhuongPeu D Jan. 26, 2019, 4:46 p.m. OK FPC TESTS 73 826 218009600 1800
49059474 TShT D Jan. 27, 2019, 2:48 p.m. OK FPC TESTS 73 888 32972800 1800
49019288 AHTOH._. D Jan. 26, 2019, 5:23 p.m. OK FPC TESTS 73 1201 27955200 1800
49052842 ruban D Jan. 27, 2019, 11:54 a.m. OK FPC TESTS 73 1622 177561600 1800
49022955 rainboy D Jan. 26, 2019, 5:58 p.m. OK GNU C11 TESTS 73 233 108339200 1800
49011904 rainboy D Jan. 26, 2019, 4:40 p.m. OK GNU C11 TESTS 73 265 135577600 1800
49019638 zysbzddsj D Jan. 26, 2019, 5:25 p.m. OK GNU C11 TESTS 73 280 108544000 1800
49155583 jack880319 D Jan. 29, 2019, 1:39 p.m. OK GNU C11 TESTS 73 295 217190400 1800
50274609 sansen D Feb. 21, 2019, 9:17 a.m. OK GNU C11 TESTS 73 296 108441600 1800
50274638 sansen D Feb. 21, 2019, 9:18 a.m. OK GNU C11 TESTS 73 405 102400 1800
49106679 hmnid D Jan. 28, 2019, 1:23 p.m. OK GNU C11 TESTS 73 483 27136000 1800
49141781 rishiraje D Jan. 29, 2019, 10:37 a.m. OK GNU C11 TESTS 73 701 27136000 1800
49224040 gfonn D Jan. 30, 2019, 9:03 p.m. OK GNU C11 TESTS 73 1075 28160000 1800
49224123 gfonn D Jan. 30, 2019, 9:06 p.m. OK GNU C11 TESTS 73 1091 28160000 1800
49012096 crosscheese D Jan. 26, 2019, 4:41 p.m. OK GNU C++11 TESTS 73 139 108544000 1800
58257478 dengyaotriangle D Aug. 4, 2019, 10:42 a.m. OK GNU C++11 TESTS 73 155 108544000 1800
50643611 vjudge4 D March 1, 2019, 2:57 p.m. OK GNU C++11 TESTS 73 155 108646400 1800
49035973 luogu_bot4 D Jan. 27, 2019, 3:17 a.m. OK GNU C++11 TESTS 73 155 135884800 1800
50099097 vjudge5 D Feb. 18, 2019, 2:07 p.m. OK GNU C++11 TESTS 73 170 108646400 1800
49008232 Ant_Man D Jan. 26, 2019, 4:20 p.m. OK GNU C++11 TESTS 73 170 108748800 1800
49049218 Lich_King D Jan. 27, 2019, 10:14 a.m. OK GNU C++11 TESTS 73 171 28160000 1800
49953662 skk1faker D Feb. 15, 2019, 3:04 p.m. OK GNU C++11 TESTS 73 171 108646400 1800
49179704 Riolku D Jan. 30, 2019, 12:21 a.m. OK GNU C++11 TESTS 73 171 135577600 1800
49020353 lzfff D Jan. 26, 2019, 5:29 p.m. OK GNU C++11 TESTS 73 171 164352000 1800
49646739 DICS D Feb. 9, 2019, 5:03 a.m. OK GNU C++14 TESTS 73 78 204800 1800
49049698 DICS D Jan. 27, 2019, 10:27 a.m. OK GNU C++14 TESTS 73 108 204800 1800
49011903 bgrm D Jan. 26, 2019, 4:40 p.m. OK GNU C++14 TESTS 73 124 6860800 1800
49050267 antoshkin D Jan. 27, 2019, 10:43 a.m. OK GNU C++14 TESTS 73 124 11059200 1800
49011672 zacker-22 D Jan. 26, 2019, 4:38 p.m. OK GNU C++14 TESTS 73 155 10956800 1800
49056587 MasT_ D Jan. 27, 2019, 1:33 p.m. OK GNU C++14 TESTS 73 155 108646400 1800
49198745 interestingLSY D Jan. 30, 2019, 11:38 a.m. OK GNU C++14 TESTS 73 171 137011200 1800
55557852 imbr92 D June 14, 2019, 10:55 a.m. OK GNU C++14 TESTS 73 186 8089600 1800
49025224 Dhruba10414 D Jan. 26, 2019, 6:43 p.m. OK GNU C++14 TESTS 73 186 31744000 1800
59084087 vjudge4 D Aug. 19, 2019, 10:24 a.m. OK GNU C++14 TESTS 73 186 56320000 1800
51165793 Time_lord D March 11, 2019, 2:14 p.m. OK GNU C++17 TESTS 73 124 11059200 1800
49048615 Saurabh303 D Jan. 27, 2019, 9:58 a.m. OK GNU C++17 TESTS 73 139 7987200 1800
49012743 antoshkin D Jan. 26, 2019, 4:44 p.m. OK GNU C++17 TESTS 73 155 11161600 1800
51814837 DevilInChina D March 25, 2019, 8:28 a.m. OK GNU C++17 TESTS 73 156 38092800 1800
49019451 yyzs123 D Jan. 26, 2019, 5:24 p.m. OK GNU C++17 TESTS 73 156 128921600 1800
60815851 miseri D Sept. 18, 2019, 8:14 p.m. OK GNU C++17 TESTS 73 171 17100800 1800
49021645 zheksenovr D Jan. 26, 2019, 5:42 p.m. OK GNU C++17 TESTS 73 171 31948800 1800
49010256 VIProgrammer D Jan. 26, 2019, 4:31 p.m. OK GNU C++17 TESTS 73 171 108851200 1800
49013341 ZhihuiLiu D Jan. 26, 2019, 4:48 p.m. OK GNU C++17 TESTS 73 171 138649600 1800
49045821 queragion2726 D Jan. 27, 2019, 8:43 a.m. OK GNU C++17 TESTS 73 186 108646400 1800
49520570 hqhs D Feb. 6, 2019, 7:35 a.m. OK Go TESTS 73 1060 27648000 1800
50036859 MadChicken D Feb. 16, 2019, 9:22 p.m. OK Java 8 TESTS 73 280 18534400 1800
50036627 LAKOUAM_IMAD D Feb. 16, 2019, 9:12 p.m. OK Java 8 TESTS 73 280 18534400 1800
49471771 zhishou D Feb. 4, 2019, 5:25 p.m. OK Java 8 TESTS 73 451 0 1800
49139641 di_halt D Jan. 29, 2019, 9:31 a.m. OK Java 8 TESTS 73 452 145510400 1800
67583479 saurabhs1206 D Dec. 25, 2019, 7:14 a.m. OK Java 8 TESTS 73 498 145408000 1800
49011442 Dukkha D Jan. 26, 2019, 4:37 p.m. OK Java 8 TESTS 73 499 145510400 1800
49223850 Fred_Flintstone D Jan. 30, 2019, 8:53 p.m. OK Java 8 TESTS 73 545 142643200 1800
49029424 SpargelTarzan D Jan. 26, 2019, 8:58 p.m. OK Java 8 TESTS 73 560 38195200 1800
49013899 finnlidbetter D Jan. 26, 2019, 4:51 p.m. OK Java 8 TESTS 73 561 259174400 1800
49031495 TheRaven D Jan. 26, 2019, 10:45 p.m. OK Java 8 TESTS 73 577 142950400 1800
49016991 LLI_E_P_JI_O_K D Jan. 26, 2019, 5:10 p.m. OK JavaScript TESTS 73 1887 128819200 1800
49025437 Quaternion D Jan. 26, 2019, 6:48 p.m. OK Kotlin TESTS 73 2496 146944000 1800
49346712 selpo D Feb. 2, 2019, 5:58 a.m. OK Mono C# TESTS 73 1231 173465600 1800
49345373 selpo D Feb. 2, 2019, 5:09 a.m. OK Mono C# TESTS 73 1294 255283200 1800
49336188 selpo D Feb. 1, 2019, 6:36 p.m. OK Mono C# TESTS 73 1325 255283200 1800
49346564 selpo D Feb. 2, 2019, 5:54 a.m. OK Mono C# TESTS 73 1341 255283200 1800
49345307 selpo D Feb. 2, 2019, 5:06 a.m. OK Mono C# TESTS 73 1357 255283200 1800
49346781 selpo D Feb. 2, 2019, 6:01 a.m. OK Mono C# TESTS 73 2058 124211200 1800
49336495 selpo D Feb. 1, 2019, 6:46 p.m. OK Mono C# TESTS 73 2276 124211200 1800
49017342 eki D Jan. 26, 2019, 5:12 p.m. OK Mono C# TESTS 73 2464 238796800 1800
56966436 vjudge4 D July 13, 2019, 8:30 a.m. OK MS C++ TESTS 73 233 216883200 1800
60833787 vjudge3 D Sept. 19, 2019, 8:08 a.m. OK MS C++ TESTS 73 374 225177600 1800
51483195 vjudge1 D March 19, 2019, 12:31 p.m. OK MS C++ TESTS 73 405 27648000 1800
49035807 Houbunsha D Jan. 27, 2019, 3:09 a.m. OK MS C++ TESTS 73 452 135782400 1800
53292989 vjudge4 D April 25, 2019, 4:22 p.m. OK MS C++ TESTS 73 514 145715200 1800
56150534 vjudge4 D June 27, 2019, 8 a.m. OK MS C++ TESTS 73 545 27238400 1800
49348992 scorpiowf D Feb. 2, 2019, 7:17 a.m. OK MS C++ TESTS 73 748 135577600 1800
49692224 vjudge1 D Feb. 10, 2019, 11:54 a.m. OK MS C++ TESTS 73 811 27136000 1800
49936819 vjudge5 D Feb. 15, 2019, 7:40 a.m. OK MS C++ TESTS 73 826 27136000 1800
50284026 ys1468362286 D Feb. 21, 2019, 2:01 p.m. OK MS C++ TESTS 73 888 136089600 1800
51423876 petko_mitkov D March 17, 2019, 6:05 p.m. OK MS C++ 2017 TESTS 73 249 216985600 1800
49032331 aeremin D Jan. 26, 2019, 11:51 p.m. OK MS C++ 2017 TESTS 73 311 38400000 1800
52325512 _nicktz1408_ D April 4, 2019, 11:56 p.m. OK MS C++ 2017 TESTS 73 607 42598400 1800
49176244 elvinaa D Jan. 29, 2019, 8:47 p.m. OK MS C++ 2017 TESTS 73 654 112742400 1800
55944073 hrustim25 D June 22, 2019, 6:30 p.m. OK MS C++ 2017 TESTS 73 795 27238400 1800
49112465 wasvlad D Jan. 28, 2019, 3:31 p.m. OK MS C++ 2017 TESTS 73 857 33996800 1800
49201522 Dmit_riy D Jan. 30, 2019, 12:35 p.m. OK MS C++ 2017 TESTS 73 920 108441600 1800
49048903 pill D Jan. 27, 2019, 10:06 a.m. OK MS C++ 2017 TESTS 73 935 216883200 1800
57171343 vjudge2 D July 17, 2019, 3:14 a.m. OK MS C++ 2017 TESTS 73 1123 112537600 1800
57171902 116c D July 17, 2019, 3:37 a.m. OK MS C++ 2017 TESTS 73 1154 112640000 1800
49042035 sk0 D Jan. 27, 2019, 6:55 a.m. OK Ocaml TESTS 73 1216 265420800 1800
49332312 sk0 D Feb. 1, 2019, 4:48 p.m. OK Ocaml TESTS 73 1965 230707200 1800
49031047 pajenegod D Jan. 26, 2019, 10:15 p.m. OK PyPy 2 TESTS 73 311 21811200 1800
49031223 pajenegod D Jan. 26, 2019, 10:25 p.m. OK PyPy 2 TESTS 73 342 21708800 1800
49031128 pajenegod D Jan. 26, 2019, 10:19 p.m. OK PyPy 2 TESTS 73 342 21811200 1800
49026643 pajenegod D Jan. 26, 2019, 7:20 p.m. OK PyPy 2 TESTS 73 343 21811200 1800
49025732 pajenegod D Jan. 26, 2019, 6:56 p.m. OK PyPy 2 TESTS 73 343 21811200 1800
49031026 pajenegod D Jan. 26, 2019, 10:14 p.m. OK PyPy 2 TESTS 73 358 21811200 1800
49030941 pajenegod D Jan. 26, 2019, 10:10 p.m. OK PyPy 2 TESTS 73 374 21811200 1800
49031008 pajenegod D Jan. 26, 2019, 10:12 p.m. OK PyPy 2 TESTS 73 389 21913600 1800
49025111 pajenegod D Jan. 26, 2019, 6:40 p.m. OK PyPy 2 TESTS 73 390 21811200 1800
49030689 pajenegod D Jan. 26, 2019, 9:56 p.m. OK PyPy 2 TESTS 73 452 23859200 1800
49512604 pajenegod D Feb. 5, 2019, 9:38 p.m. OK PyPy 3 TESTS 73 264 15257600 1800
49224674 pajenegod D Jan. 30, 2019, 9:35 p.m. OK PyPy 3 TESTS 73 280 21708800 1800
49243352 Mukundan314 D Jan. 31, 2019, 11:26 a.m. OK PyPy 3 TESTS 73 311 21606400 1800
49243240 Mukundan314 D Jan. 31, 2019, 11:24 a.m. OK PyPy 3 TESTS 73 311 21606400 1800
49243868 Mukundan314 D Jan. 31, 2019, 11:41 a.m. OK PyPy 3 TESTS 73 327 8396800 1800
49031162 pajenegod D Jan. 26, 2019, 10:22 p.m. OK PyPy 3 TESTS 73 638 73318400 1800
49051512 Bovniova D Jan. 27, 2019, 11:18 a.m. OK PyPy 3 TESTS 73 966 75878400 1800
49050066 Vichitr D Jan. 27, 2019, 10:37 a.m. OK PyPy 3 TESTS 73 1029 65945600 1800
49025142 titia D Jan. 26, 2019, 6:40 p.m. OK PyPy 3 TESTS 73 1044 66764800 1800
49050878 Bovniova D Jan. 27, 2019, 11:01 a.m. OK PyPy 3 TESTS 73 1044 75161600 1800
49379338 frp D Feb. 2, 2019, 11:23 p.m. OK Rust TESTS 73 717 29286400 1800
49394519 kobae964 D Feb. 3, 2019, 11:50 a.m. OK Rust TESTS 73 2293 57753600 1800
49025704 yakamoto D Jan. 26, 2019, 6:56 p.m. OK Scala TESTS 73 1356 133222400 1800

remove filters

Back to search problems