Codeforces Round 546 (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
1136 Codeforces Round 546 (Div. 2) FINISHED False 7200 185117087 March 11, 2019, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7769 ) C Nastya Is Transposing Matrices PROGRAMMING constructive algorithms sortings 1500

B'Nastya came to her informatics lesson, and her teacher who is, by the way, a little bit famous here gave her the following task. Two matrices A and B are given, each of them has size n x m . Nastya can perform the following operation to matrix A unlimited number of times: Nastya 's task is to check whether it is possible to transform the matrix A to the matrix B . As it may require a lot of operations, you are asked to answer this question for Nastya. A square submatrix of matrix M is a matrix which consist of all elements which comes from one of the rows with indeces x, x+1, ... , x+k-1 of matrix M and comes from one of the columns with indeces y, y+1, ... , y+k-1 of matrix M . k is the size of square submatrix. In other words, square submatrix is the set of elements of source matrix which form a solid square (i.e. without holes). The first line contains two integers n and m separated by space ( 1 <= q n, m <= q 500 ) -- the numbers of rows and columns in A and B respectively. Each of the next n lines contains m integers, the j -th number in the i -th of these lines denotes the j -th element of the i -th row of the matrix A ( 1 <= q A_{ij} <= q 10^{9} ). Each of the next n lines contains m integers, the j -th number in the i -th of these lines denotes the j -th element of the i -th row of the matrix B ( 1 <= q B_{ij} <= q 10^{9} ). Print "YES" (without quotes) if it is possible to transform A to B and "NO" (without quotes) otherwise. You can print each letter in any case (upper or lower). Consider the third example. The matrix A initially looks as follows. begin{bmatrix} 1 & 2 & 3 4 & 5 & 6 7 & 8 & 9 end{bmatrix} Then we choose the whole matrix as transposed submatrix and it becomes begin{bmatrix} 1 & 4 & 7 2 & 5 & 8 3 '...

Tutorials

Editorial of Round #546(Div.2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56660171 vjudge3 C July 7, 2019, 9:38 a.m. OK Clang++17 Diagnostics TESTS 132 498 10547200 1500
51181900 avm C March 11, 2019, 5:10 p.m. OK D TESTS 132 124 32870400 1500
55273443 xcodevn C June 7, 2019, 5:37 p.m. OK D TESTS 132 295 11878400 1500
51180086 ruban C March 11, 2019, 5:02 p.m. OK Delphi TESTS 132 264 259072000 1500
51186296 PhuongPeu C March 11, 2019, 5:32 p.m. OK FPC TESTS 132 171 8396800 1500
51447075 makar_1212_J_C C March 18, 2019, 12:59 p.m. OK FPC TESTS 132 187 20377600 1500
52068002 sansen C March 31, 2019, 6:30 a.m. OK GNU C11 TESTS 132 77 2048000 1500
51245724 2018030401093 C March 13, 2019, 4:58 a.m. OK GNU C11 TESTS 132 124 2048000 1500
51245743 vjudge2 C March 13, 2019, 4:59 a.m. OK GNU C11 TESTS 132 140 2048000 1500
68611998 kaiboy C Jan. 11, 2020, 4:03 p.m. OK GNU C11 TESTS 132 140 2048000 1500
68672831 kaiboy C Jan. 12, 2020, 5:25 p.m. OK GNU C11 TESTS 132 140 2048000 1500
51554467 CLF C March 20, 2019, 3:44 a.m. OK GNU C11 TESTS 132 155 1945600 1500
51191015 17ucs002 C March 11, 2019, 6:03 p.m. OK GNU C11 TESTS 132 171 3993600 1500
51186143 WhiteRose45 C March 11, 2019, 5:31 p.m. OK GNU C11 TESTS 132 202 2048000 1500
53320998 __Salty__ C April 26, 2019, 12:52 p.m. OK GNU C++11 TESTS 132 46 1945600 1500
51404734 mdp C March 17, 2019, 9:15 a.m. OK GNU C++11 TESTS 132 46 2048000 1500
51225553 Zechariah_2001 is_ffacs C March 12, 2019, 1:59 p.m. OK GNU C++11 TESTS 132 46 2048000 1500
53219428 Cesarelg AyoAyowei CaoRui2019 C April 24, 2019, 11:02 a.m. OK GNU C++11 TESTS 132 46 6246400 1500
55479215 csj C June 12, 2019, 3:32 a.m. OK GNU C++11 TESTS 132 46 10240000 1500
55478957 csj C June 12, 2019, 3:19 a.m. OK GNU C++11 TESTS 132 46 10240000 1500
52299565 ACananas C April 4, 2019, 8:16 a.m. OK GNU C++11 TESTS 132 61 3788800 1500
51209694 AlphaWA C March 12, 2019, 7:10 a.m. OK GNU C++11 TESTS 132 61 6041600 1500
64057155 disposrestfuIly C Nov. 2, 2019, 2 a.m. OK GNU C++11 TESTS 132 61 6041600 1500
53222507 AyoAyowei C April 24, 2019, 12:37 p.m. OK GNU C++11 TESTS 132 61 6246400 1500
51230763 tokitsukaze C March 12, 2019, 4:07 p.m. OK GNU C++14 TESTS 132 62 3891200 1500
52401080 kinssang C April 6, 2019, 12:33 p.m. OK GNU C++14 TESTS 132 124 1945600 1500
51184092 DranceTheLagonTrainer C March 11, 2019, 5:20 p.m. OK GNU C++14 TESTS 132 124 2048000 1500
51376381 nong C March 16, 2019, 2:16 p.m. OK GNU C++14 TESTS 132 124 2252800 1500
51421999 Srk1C C March 17, 2019, 5:04 p.m. OK GNU C++14 TESTS 132 124 3584000 1500
61259604 Suraj1667 C Sept. 25, 2019, 11:15 a.m. OK GNU C++14 TESTS 132 124 3584000 1500
56513539 yan-zp C July 4, 2019, 11:38 a.m. OK GNU C++14 TESTS 132 124 3584000 1500
52953311 pppepito86 C April 18, 2019, 12:46 p.m. OK GNU C++14 TESTS 132 124 3584000 1500
51728723 vjudge4 C March 22, 2019, 8:05 p.m. OK GNU C++14 TESTS 132 124 3584000 1500
51460120 Hemdan C March 18, 2019, 7:08 p.m. OK GNU C++14 TESTS 132 124 3584000 1500
52733467 nickluo C April 14, 2019, 5:16 a.m. OK GNU C++17 TESTS 132 61 2764800 1500
51226271 .tx C March 12, 2019, 2:16 p.m. OK GNU C++17 TESTS 132 62 5836800 1500
51180482 engiplayer C March 11, 2019, 5:04 p.m. OK GNU C++17 TESTS 132 124 2048000 1500
51206843 HumHumMonster C March 12, 2019, 5:29 a.m. OK GNU C++17 TESTS 132 124 2048000 1500
51210586 mohamedeltair C March 12, 2019, 7:41 a.m. OK GNU C++17 TESTS 132 124 2048000 1500
51255337 k63k1_uet_vnu C March 13, 2019, 11:01 a.m. OK GNU C++17 TESTS 132 124 3584000 1500
51474793 Stepavly C March 19, 2019, 8:45 a.m. OK GNU C++17 TESTS 132 124 3584000 1500
54072868 jspark C May 13, 2019, 5:30 p.m. OK GNU C++17 TESTS 132 124 3584000 1500
56813493 alif_cse_ju C July 10, 2019, 5:39 p.m. OK GNU C++17 TESTS 132 124 3584000 1500
62611666 landcold7 C Oct. 15, 2019, 10:01 a.m. OK GNU C++17 TESTS 132 124 3584000 1500
52313015 WintersCurse C April 4, 2019, 3:38 p.m. OK Go TESTS 132 124 5324800 1500
51393254 msg555 C March 17, 2019, 2:05 a.m. OK Go TESTS 132 140 5324800 1500
62077060 sighduck C Oct. 7, 2019, 6:52 p.m. OK Go TESTS 132 483 5324800 1500
51325876 2008061626 C March 15, 2019, 9:39 a.m. OK Go TESTS 132 514 18739200 1500
51268154 falken_great C March 13, 2019, 4:37 p.m. OK Java 8 TESTS 132 156 0 1500
51182948 Yugioh C March 11, 2019, 5:15 p.m. OK Java 8 TESTS 132 171 0 1500
61058640 Ad-007 C Sept. 22, 2019, 8:50 a.m. OK Java 8 TESTS 132 171 0 1500
51181543 iceburst C March 11, 2019, 5:08 p.m. OK Java 8 TESTS 132 171 0 1500
51324085 revanthreddy85 C March 15, 2019, 8:49 a.m. OK Java 8 TESTS 132 186 0 1500
51180103 wery0 C March 11, 2019, 5:02 p.m. OK Java 8 TESTS 132 187 0 1500
51202854 Sharon C March 12, 2019, 1:53 a.m. OK Java 8 TESTS 132 202 0 1500
51197319 Anonymous C March 11, 2019, 8:20 p.m. OK Java 8 TESTS 132 202 0 1500
56294393 Sleep C June 30, 2019, 4:36 a.m. OK Java 8 TESTS 132 218 0 1500
53186076 KharYusuf C April 23, 2019, 10:25 a.m. OK Java 8 TESTS 132 218 0 1500
51393305 Harolinch C March 17, 2019, 2:08 a.m. OK JavaScript TESTS 132 249 12288000 1500
51272653 sharepoLOVEDDD C March 13, 2019, 6:54 p.m. OK JavaScript TESTS 132 280 11776000 1500
51190986 spookywooky C March 11, 2019, 6:03 p.m. OK Kotlin TESTS 132 920 5939200 1500
55668588 og.kostya C June 17, 2019, 6:04 a.m. OK Mono C# TESTS 132 93 5017600 1500
51186176 mircea85 C March 11, 2019, 5:31 p.m. OK Mono C# TESTS 132 202 5324800 1500
54784072 camypaper C May 29, 2019, 2:05 a.m. OK Mono C# TESTS 132 202 7168000 1500
51751224 nastya1199 C March 23, 2019, 9:38 a.m. OK Mono C# TESTS 132 233 30822400 1500
59200135 aleks180700 C Aug. 21, 2019, 4:12 a.m. OK Mono C# TESTS 132 234 5324800 1500
59200016 aleks180700 C Aug. 21, 2019, 4:06 a.m. OK Mono C# TESTS 132 249 7065600 1500
53116199 treasuryonly C April 22, 2019, 8:13 a.m. OK Mono C# TESTS 132 249 7782400 1500
51424295 _SHREDDER_ C March 17, 2019, 6:19 p.m. OK Mono C# TESTS 132 249 8908800 1500
51230410 hhsaffar C March 12, 2019, 3:57 p.m. OK Mono C# TESTS 132 264 11673600 1500
51180650 omikad C March 11, 2019, 5:05 p.m. OK Mono C# TESTS 132 311 11980800 1500
51365839 MYSNKS C March 16, 2019, 9:34 a.m. OK MS C++ TESTS 132 108 2048000 1500
51245822 vjudge5 C March 13, 2019, 5:04 a.m. OK MS C++ TESTS 132 108 2048000 1500
54450784 scorpiowf C May 21, 2019, 1:26 p.m. OK MS C++ TESTS 132 109 2252800 1500
51288273 vjudge3 C March 14, 2019, 8:37 a.m. OK MS C++ TESTS 132 124 2048000 1500
52640058 vjudge4 C April 12, 2019, 12:05 p.m. OK MS C++ TESTS 132 124 2048000 1500
52639728 vjudge2 C April 12, 2019, 11:57 a.m. OK MS C++ TESTS 132 124 2048000 1500
51218002 vjudge1 C March 12, 2019, 11:25 a.m. OK MS C++ TESTS 132 124 2048000 1500
54221326 vjudge5 C May 16, 2019, 3:31 a.m. OK MS C++ TESTS 132 124 3993600 1500
51260439 vjudge3 C March 13, 2019, 1:06 p.m. OK MS C++ TESTS 132 124 6144000 1500
51260311 vjudge5 C March 13, 2019, 1:03 p.m. OK MS C++ TESTS 132 124 6144000 1500
51437997 hrbustddb C March 18, 2019, 7:59 a.m. OK MS C++ 2017 TESTS 132 171 2048000 1500
51355656 beacon_cwk C March 16, 2019, 3:58 a.m. OK MS C++ 2017 TESTS 132 171 2048000 1500
51271709 petko_mitkov C March 13, 2019, 6:21 p.m. OK MS C++ 2017 TESTS 132 171 8089600 1500
61332391 quyunhao C Sept. 26, 2019, 3:23 p.m. OK MS C++ 2017 TESTS 132 186 5222400 1500
51218681 hwangganzi C March 12, 2019, 11:39 a.m. OK MS C++ 2017 TESTS 132 187 4812800 1500
51431905 jackcaptain C March 18, 2019, 1:36 a.m. OK MS C++ 2017 TESTS 132 187 10035200 1500
51192492 GomBu C March 11, 2019, 6:14 p.m. OK MS C++ 2017 TESTS 132 202 2048000 1500
51180475 youx C March 11, 2019, 5:04 p.m. OK MS C++ 2017 TESTS 132 202 21401600 1500
55005562 Lordxx C June 3, 2019, 7:19 a.m. OK MS C++ 2017 TESTS 132 217 5120000 1500
51186077 NASOCHEC C March 11, 2019, 5:31 p.m. OK MS C++ 2017 TESTS 132 233 2048000 1500
52239842 sash0 C April 2, 2019, 3:20 p.m. OK Ocaml TESTS 132 171 7372800 1500
51192018 rsFalse C March 11, 2019, 6:10 p.m. OK Perl TESTS 132 779 38604800 1500
51562898 UuuuuxxxOwO C March 20, 2019, 8:37 a.m. OK Perl TESTS 132 795 38604800 1500
51276288 Bashuk C March 13, 2019, 9:43 p.m. OK PyPy 2 TESTS 132 233 6758400 1500
51199278 bertrandovide C March 11, 2019, 9:17 p.m. OK PyPy 2 TESTS 132 248 5427200 1500
51184710 Zeyu C March 11, 2019, 5:23 p.m. OK PyPy 2 TESTS 132 249 5529600 1500
51187723 supachai_pay C March 11, 2019, 5:41 p.m. OK PyPy 2 TESTS 132 264 5120000 1500
51620527 thenewguy39 C March 21, 2019, 2:07 p.m. OK PyPy 2 TESTS 132 295 10240000 1500
51202943 kabeer27 C March 12, 2019, 1:59 a.m. OK PyPy 2 TESTS 132 296 23756800 1500
51180073 pajenegod C March 11, 2019, 5:02 p.m. OK PyPy 2 TESTS 132 296 34304000 1500
51322929 ashok123 C March 15, 2019, 8:12 a.m. OK PyPy 2 TESTS 132 312 10854400 1500
51228953 gatsko C March 12, 2019, 3:18 p.m. OK PyPy 2 TESTS 132 358 23347200 1500
51181334 c1729 C March 11, 2019, 5:07 p.m. OK PyPy 2 TESTS 132 405 30617600 1500
51219153 __Harrison__ C March 12, 2019, 11:49 a.m. OK PyPy 3 TESTS 132 514 9113600 1500
51218265 __Harrison__ C March 12, 2019, 11:30 a.m. OK PyPy 3 TESTS 132 514 9216000 1500
51196928 titia C March 11, 2019, 8:14 p.m. OK PyPy 3 TESTS 132 514 13414400 1500
51219495 __Harrison__ C March 12, 2019, 11:55 a.m. OK PyPy 3 TESTS 132 529 9113600 1500
51186040 cgfs10000 C March 11, 2019, 5:31 p.m. OK PyPy 3 TESTS 132 529 9216000 1500
51216522 __Harrison__ C March 12, 2019, 10:47 a.m. OK PyPy 3 TESTS 132 530 9113600 1500
51353954 Stephan C March 16, 2019, 2:18 a.m. OK PyPy 3 TESTS 132 545 8908800 1500
51234195 15411019 C March 12, 2019, 5:45 p.m. OK PyPy 3 TESTS 132 545 9011200 1500
51251444 Leendertz C March 13, 2019, 8:56 a.m. OK PyPy 3 TESTS 132 560 9216000 1500
51246066 renjied C March 13, 2019, 5:18 a.m. OK PyPy 3 TESTS 132 561 10137600 1500
51220702 Monstrosity C March 12, 2019, 12:21 p.m. OK Python 2 TESTS 132 545 11980800 1500
51199213 bertrandovide C March 11, 2019, 9:14 p.m. OK Python 2 TESTS 132 577 9011200 1500
51180355 Neil C March 11, 2019, 5:03 p.m. OK Python 2 TESTS 132 577 9011200 1500
51199151 bertrandovide C March 11, 2019, 9:12 p.m. OK Python 2 TESTS 132 577 9113600 1500
51263231 mgor C March 13, 2019, 2:16 p.m. OK Python 2 TESTS 132 607 10649600 1500
54277302 kaif_7 C May 17, 2019, 11:46 a.m. OK Python 2 TESTS 132 607 14643200 1500
51419643 nealzane C March 17, 2019, 3:49 p.m. OK Python 2 TESTS 132 608 14336000 1500
51188051 ilkerkosaroglu C March 11, 2019, 5:43 p.m. OK Python 2 TESTS 132 639 14233600 1500
51182880 Uranux C March 11, 2019, 5:14 p.m. OK Python 2 TESTS 132 670 14643200 1500
51186251 Izubr C March 11, 2019, 5:32 p.m. OK Python 2 TESTS 132 685 17305600 1500
51197379 eugalt C March 11, 2019, 8:21 p.m. OK Python 3 TESTS 132 405 12902400 1500
51224102 ParsaBahrami C March 12, 2019, 1:29 p.m. OK Python 3 TESTS 132 405 14438400 1500
51198933 eugalt C March 11, 2019, 9:04 p.m. OK Python 3 TESTS 132 421 13004800 1500
51205268 eugalt C March 12, 2019, 4:14 a.m. OK Python 3 TESTS 132 421 14131200 1500
51364585 SamuelLH C March 16, 2019, 8:57 a.m. OK Python 3 TESTS 132 421 14848000 1500
51199082 eugalt C March 11, 2019, 9:09 p.m. OK Python 3 TESTS 132 436 14028800 1500
51198016 raj1307 C March 11, 2019, 8:35 p.m. OK Python 3 TESTS 132 436 15052800 1500
51330625 Lancern C March 15, 2019, noon OK Python 3 TESTS 132 452 11571200 1500
53693866 minjunkweon C May 3, 2019, 6:37 a.m. OK Python 3 TESTS 132 452 13312000 1500
51199481 eugalt C March 11, 2019, 9:25 p.m. OK Python 3 TESTS 132 452 14028800 1500
51247379 duanhv C March 13, 2019, 6:19 a.m. OK Ruby TESTS 132 920 11468800 1500
51211203 macho_uno C March 12, 2019, 8:01 a.m. OK Rust TESTS 132 93 8499200 1500
52425179 alykov C April 6, 2019, 7 p.m. OK Rust TESTS 132 124 7577600 1500
51618839 kobae964 C March 21, 2019, 1:30 p.m. OK Rust TESTS 132 280 6553600 1500
51182065 yakamoto C March 11, 2019, 5:11 p.m. OK Scala TESTS 132 733 0 1500
51776237 jimiolugboyega C March 23, 2019, 10:05 p.m. OK Scala TESTS 132 826 30003200 1500

remove filters

Back to search problems