Codeforces Round 644 (Div. 3)

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
1360 Codeforces Round 644 (Div. 3) FINISHED False 7200 147025511 May 24, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25875 ) E Polygon PROGRAMMING dp graphs implementation shortest paths 1300

B'Polygon is not only the best platform for developing problems but also a square matrix with side n , initially filled with the character 0. On the polygon, military training was held. The soldiers placed a cannon above each cell in the first row and a cannon to the left of each cell in the first column. Thus, exactly 2n cannons were placed. Cannons shoot character 1. At any moment of time, no more than one cannon is shooting. When a 1 flies out of a cannon, it flies forward (in the direction of the shot) until it collides with a polygon border or another 1. After that, it takes the cell in which it was before the collision and remains there. Take a look at the examples for better understanding. More formally: For example, consider the following sequence of shots: 1. Shoot the cannon in the row 2 . 2. Shoot the cannon in the row 2 . 3. Shoot the cannon in column 3 . You have a report from the military training on your desk. This report is a square matrix with side length n consisting of 0 and 1. You wonder if the training actually happened. In other words, is there a sequence of shots such that, after the training, you get the given matrix? Each cannon can make an arbitrary number of shots. Before the training, each cell of the polygon contains 0. The first line contains an integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then t test cases follow. Each test case starts with a line containing an integer n ( 1 <= n <= 50 ) -- the size of the polygon. This is followed by n lines of length n , consisting of 0 and 1 -- the polygon matrix after the training. The total area of the matrices in all test cases in one test does not exceed 10^5 . For each test case print: The letters in the words YES and NO can be printed in any case. The first test case was explained in the stateme'...

Tutorials

Codeforces Round #644 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81367642 HETRAKESHFADIA E May 25, 2020, 9:31 a.m. OK Clang++17 Diagnostics TESTS 7 77 8396800 1300
81573084 ak5147 E May 27, 2020, 2:01 a.m. OK GNU C11 TESTS 7 15 0 1300
81588525 AB_Turjo E May 27, 2020, 6:35 a.m. OK GNU C11 TESTS 7 15 0 1300
81336674 zeus_mmmut E May 24, 2020, 11:34 p.m. OK GNU C11 TESTS 7 15 0 1300
81425498 atillaqun E May 25, 2020, 11:33 p.m. OK GNU C11 TESTS 7 15 0 1300
81475314 chowdhuryshashwoto E May 26, 2020, 1:33 p.m. OK GNU C11 TESTS 7 15 0 1300
81477385 Israt_Jahan_Nahin E May 26, 2020, 1:58 p.m. OK GNU C11 TESTS 7 15 0 1300
81479742 akash19jain E May 26, 2020, 2:27 p.m. OK GNU C11 TESTS 7 15 0 1300
81581297 RHasanR E May 27, 2020, 4:55 a.m. OK GNU C11 TESTS 7 15 204800 1300
81586212 Tanzim_bn E May 27, 2020, 6:06 a.m. OK GNU C11 TESTS 7 31 0 1300
81441886 mesumit E May 26, 2020, 6:22 a.m. OK GNU C11 TESTS 7 31 0 1300
81396610 priyankg101 E May 25, 2020, 3:16 p.m. OK GNU C++11 TESTS 7 15 0 1300
81388420 cbl_nhathuy E May 25, 2020, 1:41 p.m. OK GNU C++11 TESTS 7 15 0 1300
81576128 Joycer E May 27, 2020, 3:14 a.m. OK GNU C++11 TESTS 7 15 0 1300
81467214 mostafizurnayam E May 26, 2020, 12:01 p.m. OK GNU C++11 TESTS 7 15 0 1300
81436717 touhed E May 26, 2020, 5:01 a.m. OK GNU C++11 TESTS 7 15 0 1300
81432368 trueBatty E May 26, 2020, 3:20 a.m. OK GNU C++11 TESTS 7 15 0 1300
81426427 rafsan.rafi159 E May 26, 2020, 12:14 a.m. OK GNU C++11 TESTS 7 15 0 1300
81399168 vjudge2 E May 25, 2020, 3:46 p.m. OK GNU C++11 TESTS 7 15 0 1300
81399165 Tom66 E May 25, 2020, 3:46 p.m. OK GNU C++11 TESTS 7 15 0 1300
81398202 Matteo.Verz E May 25, 2020, 3:35 p.m. OK GNU C++11 TESTS 7 15 0 1300
81564982 bambery E May 26, 2020, 9:10 p.m. OK GNU C++14 TESTS 7 15 0 1300
81601774 harishm E May 27, 2020, 9:19 a.m. OK GNU C++14 TESTS 7 15 0 1300
81473616 saketh2341 E May 26, 2020, 1:13 p.m. OK GNU C++14 TESTS 7 15 0 1300
81469373 prasannabhat018 E May 26, 2020, 12:29 p.m. OK GNU C++14 TESTS 7 15 0 1300
81463798 chaitanya27 E May 26, 2020, 11:19 a.m. OK GNU C++14 TESTS 7 15 0 1300
81434051 bits_srin E May 26, 2020, 4:02 a.m. OK GNU C++14 TESTS 7 15 0 1300
81385291 Soda_Tea E May 25, 2020, 1:03 p.m. OK GNU C++14 TESTS 7 15 0 1300
81366277 oneAboveAll E May 25, 2020, 9:13 a.m. OK GNU C++14 TESTS 7 15 0 1300
81339264 A_to_A E May 25, 2020, 1:17 a.m. OK GNU C++14 TESTS 7 15 0 1300
81334989 knakul_853 E May 24, 2020, 10:15 p.m. OK GNU C++14 TESTS 7 15 0 1300
81423332 SoloProgrammer E May 25, 2020, 9:54 p.m. OK GNU C++17 TESTS 7 15 0 1300
81711415 karthik1747 E May 28, 2020, 1:52 p.m. OK GNU C++17 TESTS 7 15 0 1300
81663630 msd.jb.007 E May 28, 2020, 2:19 a.m. OK GNU C++17 TESTS 7 15 0 1300
81472059 sandeepverma199712 E May 26, 2020, 12:55 p.m. OK GNU C++17 TESTS 7 15 0 1300
81461433 dalddong E May 26, 2020, 10:47 a.m. OK GNU C++17 TESTS 7 15 0 1300
81414462 abhpd E May 25, 2020, 6:54 p.m. OK GNU C++17 TESTS 7 15 0 1300
81412560 MarwanNabil E May 25, 2020, 6:42 p.m. OK GNU C++17 TESTS 7 15 0 1300
81394233 hosein_bidaki E May 25, 2020, 2:50 p.m. OK GNU C++17 TESTS 7 15 0 1300
81366032 avi_dak_hyd E May 25, 2020, 9:10 a.m. OK GNU C++17 TESTS 7 15 0 1300
81360366 lakshaygpt28 E May 25, 2020, 8 a.m. OK GNU C++17 TESTS 7 15 0 1300
81379010 WZYYN E May 25, 2020, 11:49 a.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81392902 ayush_nishad E May 25, 2020, 2:36 p.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81395118 AayushAC1998 E May 25, 2020, 3:01 p.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81398028 Vianti E May 25, 2020, 3:33 p.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81399389 vee_nits123 E May 25, 2020, 3:50 p.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81424640 Ernestico E May 25, 2020, 10:47 p.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81426179 brunomont E May 26, 2020, 12:06 a.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81436028 vjudge4 E May 26, 2020, 4:47 a.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81562219 Alexand_Romanenko E May 26, 2020, 8:10 p.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81613688 Sakhiya07 E May 27, 2020, 11:50 a.m. OK GNU C++17 (64) TESTS 7 15 0 1300
81451134 dblokhin E May 26, 2020, 8:27 a.m. OK Go TESTS 7 46 0 1300
81638456 frederick99 E May 27, 2020, 4:20 p.m. OK Haskell TESTS 7 15 102400 1300
81664932 slemus E May 28, 2020, 2:53 a.m. OK Haskell TESTS 7 30 102400 1300
81428523 Russell_Emerine E May 26, 2020, 1:26 a.m. OK Haskell TESTS 7 31 102400 1300
81426190 slemus E May 26, 2020, 12:06 a.m. OK Haskell TESTS 7 31 102400 1300
81326260 clyring E May 24, 2020, 6:53 p.m. OK Haskell TESTS 7 31 102400 1300
81433513 Critanaro E May 26, 2020, 3:49 a.m. OK Java 11 TESTS 7 156 0 1300
81453132 decoder_1671 E May 26, 2020, 8:53 a.m. OK Java 11 TESTS 7 170 0 1300
81674797 zhupeijun E May 28, 2020, 6:09 a.m. OK Java 11 TESTS 7 171 0 1300
81617267 prefixsum E May 27, 2020, 12:24 p.m. OK Java 11 TESTS 7 171 0 1300
81600302 nikhilmishra1211 E May 27, 2020, 9 a.m. OK Java 11 TESTS 7 171 0 1300
81588697 pennyIsLove E May 27, 2020, 6:38 a.m. OK Java 11 TESTS 7 171 0 1300
81587914 mr___hacker____ E May 27, 2020, 6:27 a.m. OK Java 11 TESTS 7 171 0 1300
81465741 201601120 E May 26, 2020, 11:42 a.m. OK Java 11 TESTS 7 171 0 1300
81423081 jakejase2 E May 25, 2020, 9:45 p.m. OK Java 11 TESTS 7 171 0 1300
81398908 ankit301 E May 25, 2020, 3:43 p.m. OK Java 11 TESTS 7 171 0 1300
81470792 kunal725725 E May 26, 2020, 12:39 p.m. OK Java 8 TESTS 7 93 0 1300
81409015 anshum_it_is E May 25, 2020, 5:51 p.m. OK Java 8 TESTS 7 93 0 1300
81390728 dewanshnigam E May 25, 2020, 2:09 p.m. OK Java 8 TESTS 7 93 0 1300
81703191 labdhi E May 28, 2020, 12:11 p.m. OK Java 8 TESTS 7 108 0 1300
81676692 yash49 E May 28, 2020, 6:33 a.m. OK Java 8 TESTS 7 108 0 1300
81478532 turing_fan123 E May 26, 2020, 2:12 p.m. OK Java 8 TESTS 7 108 0 1300
81461660 ra20r E May 26, 2020, 10:51 a.m. OK Java 8 TESTS 7 108 0 1300
81426649 luchy0120 E May 26, 2020, 12:21 a.m. OK Java 8 TESTS 7 108 0 1300
81399565 suraj99p E May 25, 2020, 3:52 p.m. OK Java 8 TESTS 7 108 0 1300
81374547 Aabhas99 E May 25, 2020, 10:56 a.m. OK Java 8 TESTS 7 108 0 1300
81373999 koboshi E May 25, 2020, 10:50 a.m. OK Kotlin TESTS 7 109 0 1300
81379406 Fortin E May 25, 2020, 11:53 a.m. OK Kotlin TESTS 7 124 0 1300
81346280 golions E May 25, 2020, 4:30 a.m. OK Kotlin TESTS 7 124 0 1300
81636487 UD_xlinsist E May 27, 2020, 3:57 p.m. OK Kotlin TESTS 7 139 0 1300
81404262 scnucjh E May 25, 2020, 4:54 p.m. OK Kotlin TESTS 7 139 0 1300
81366056 Cyber.1 E May 25, 2020, 9:11 a.m. OK Kotlin TESTS 7 140 0 1300
81337830 Igorjan94 E May 25, 2020, 12:25 a.m. OK Kotlin TESTS 7 140 0 1300
81479568 Black_Fregat E May 26, 2020, 2:25 p.m. OK Kotlin TESTS 7 155 0 1300
81328201 IsTinG E May 24, 2020, 7:25 p.m. OK Kotlin TESTS 7 155 0 1300
81355046 lazaroofarrill E May 25, 2020, 6:47 a.m. OK Kotlin TESTS 7 155 819200 1300
81364191 _Trung_Nguyen E May 25, 2020, 8:47 a.m. OK Mono C# TESTS 7 46 512000 1300
81384742 TRR E May 25, 2020, 12:57 p.m. OK Mono C# TESTS 7 62 204800 1300
81438087 0401180141 E May 26, 2020, 5:27 a.m. OK MS C++ 2017 TESTS 7 15 307200 1300
81704108 dariasaligina E May 28, 2020, 12:23 p.m. OK MS C++ 2017 TESTS 7 30 0 1300
81462241 dimasidorenko E May 26, 2020, 10:59 a.m. OK MS C++ 2017 TESTS 7 30 0 1300
81457842 Still_Theory E May 26, 2020, 9:57 a.m. OK MS C++ 2017 TESTS 7 30 307200 1300
81365143 vjudge3 E May 25, 2020, 8:59 a.m. OK MS C++ 2017 TESTS 7 31 0 1300
81709997 sakiller E May 28, 2020, 1:35 p.m. OK MS C++ 2017 TESTS 7 31 0 1300
81593268 CrashMaster E May 27, 2020, 7:35 a.m. OK MS C++ 2017 TESTS 7 31 0 1300
81385486 Kasumigaoka E May 25, 2020, 1:05 p.m. OK MS C++ 2017 TESTS 7 31 0 1300
81355012 rawatkaran930 E May 25, 2020, 6:47 a.m. OK MS C++ 2017 TESTS 7 31 0 1300
81338617 vjudge4 E May 25, 2020, 12:53 a.m. OK MS C++ 2017 TESTS 7 31 0 1300
81360231 andreytomak E May 25, 2020, 7:57 a.m. OK PascalABC.NET TESTS 7 358 102400 1300
81329061 beethoven97 E May 24, 2020, 7:41 p.m. OK PyPy 2 TESTS 7 140 819200 1300
81663994 ____ankit_sm____ E May 28, 2020, 2:30 a.m. OK PyPy 2 TESTS 7 140 1126400 1300
81605968 yumtam E May 27, 2020, 10:14 a.m. OK PyPy 2 TESTS 7 155 1228800 1300
81339983 mir.panov E May 25, 2020, 1:45 a.m. OK PyPy 2 TESTS 7 155 2048000 1300
81369612 reddevil100 E May 25, 2020, 9:55 a.m. OK PyPy 2 TESTS 7 155 2457600 1300
81341593 ____ankit_sm____ E May 25, 2020, 2:34 a.m. OK PyPy 2 TESTS 7 156 1126400 1300
81355138 aditya1050 E May 25, 2020, 6:48 a.m. OK PyPy 3 TESTS 7 155 2355200 1300
81360416 kznil96 E May 25, 2020, 8 a.m. OK PyPy 3 TESTS 7 170 2662400 1300
81410415 starzhinkus E May 25, 2020, 6:10 p.m. OK PyPy 3 TESTS 7 170 2969600 1300
81331112 Aestroix E May 24, 2020, 8:24 p.m. OK PyPy 3 TESTS 7 171 2867200 1300
81645575 Parag_AP E May 27, 2020, 5:50 p.m. OK PyPy 3 TESTS 7 171 3276800 1300
81463052 shiv_99 E May 26, 2020, 11:09 a.m. OK PyPy 3 TESTS 7 186 2457600 1300
81648829 shamdin E May 27, 2020, 6:48 p.m. OK PyPy 3 TESTS 7 186 2662400 1300
81352922 dipta007 E May 25, 2020, 6:19 a.m. OK PyPy 3 TESTS 7 187 2867200 1300
81479827 amruth_kumar E May 26, 2020, 2:28 p.m. OK PyPy 3 TESTS 7 187 2969600 1300
81348566 ax216 E May 25, 2020, 5:11 a.m. OK PyPy 3 TESTS 7 202 3686400 1300
81410717 shidi.zhao E May 25, 2020, 6:14 p.m. OK Python 2 TESTS 7 171 0 1300
81422920 crapplet E May 25, 2020, 9:40 p.m. OK Python 2 TESTS 7 249 102400 1300
81706899 bhaveshrane125 E May 28, 2020, 12:56 p.m. OK Python 3 TESTS 7 108 307200 1300
81390760 agGK E May 25, 2020, 2:10 p.m. OK Python 3 TESTS 7 108 307200 1300
81351933 chandureddyn5 E May 25, 2020, 6:05 a.m. OK Python 3 TESTS 7 109 307200 1300
81480156 87ouo E May 26, 2020, 2:32 p.m. OK Python 3 TESTS 7 124 0 1300
81455288 xhitijcoder E May 26, 2020, 9:23 a.m. OK Python 3 TESTS 7 124 0 1300
81453841 abod.hi.5 E May 26, 2020, 9:02 a.m. OK Python 3 TESTS 7 124 0 1300
81350162 KanhuKeNanu E May 25, 2020, 5:38 a.m. OK Python 3 TESTS 7 124 0 1300
81333274 mmhaxor1 E May 24, 2020, 9:18 p.m. OK Python 3 TESTS 7 124 0 1300
81706377 hlp2599 E May 28, 2020, 12:50 p.m. OK Python 3 TESTS 7 124 307200 1300
81704118 post_red E May 28, 2020, 12:23 p.m. OK Python 3 TESTS 7 124 307200 1300
81555431 BIG_OUNCE69420 E May 26, 2020, 6:26 p.m. OK Ruby TESTS 7 109 0 1300
81428813 TomazGomes E May 26, 2020, 1:37 a.m. OK Rust TESTS 7 30 0 1300
81382721 kobae964 E May 25, 2020, 12:32 p.m. OK Rust TESTS 7 30 819200 1300
81428827 TomazGomes E May 26, 2020, 1:37 a.m. OK Rust TESTS 7 31 0 1300
81436564 springroll E May 26, 2020, 4:58 a.m. OK Rust TESTS 7 31 102400 1300
81331516 one_feeble_coder E May 24, 2020, 8:32 p.m. OK Rust TESTS 7 31 102400 1300
81367189 IvanDyachenko E May 25, 2020, 9:25 a.m. OK Scala TESTS 7 561 0 1300

remove filters

Back to search problems