Codeforces Round 777 (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
1647 Codeforces Round 777 (Div. 2) FINISHED False 7200 90257063 March 11, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15619 ) B Madoka and the Elegant Gift PROGRAMMING brute force graphs implementation

B'Madoka 's father just reached 1 million subscribers on Mathub! So the website decided to send him a personalized award -- The Mathhub 's Bit Button! The Bit Button is a rectangular table with n rows and m columns with 0 or 1 in each cell. After exploring the table Madoka found out that: For example, in the first illustration the red subrectangle is nice, but in the second one it 's not, because it 's contained in the purple subrectangle. Help Madoka to determine whether the table is elegant. Each test contains multiple test cases. The first line contains a single integer t ( 1 <= t <= 200 ) -- the number of test cases. Description of the test cases follows. The first line of each test case contains two positive integers n, m ( 1 <= n, m <= 100 ). The next n lines contain strings of length m consisting of zeros and ones -- the description of the table. It is guaranteed that the sum of the values of n and the sum of the values of m for all test cases do not exceed 777 . For each test case print "YES" if its table is elegant or print "NO" otherwise. You may print each letter in any case (for example, "YES", "Yes", "yes", "yEs" will all be recognized as positive answer). In the second test case the table is not elegant, because the red and the purple subrectangles are nice and intersect. In the fourth test case the table is not elegant, because the red and the purple subrectangles are nice and intersect. '...

Tutorials

Codeforces Round #777 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
149314780 Gassa B March 11, 2022, 4:10 p.m. OK D TESTS 6 15 0
149320984 loki_7 B March 11, 2022, 4:27 p.m. OK GNU C11 TESTS 6 15 0
149319691 ppsracchriskim B March 11, 2022, 4:24 p.m. OK GNU C11 TESTS 6 15 0
149367658 FrancaisDrake B March 12, 2022, 2:21 a.m. OK GNU C++14 TESTS 7 0 0
149366995 hust_zhaoziren B March 12, 2022, 2:07 a.m. OK GNU C++14 TESTS 7 0 0
149366836 cywwen B March 12, 2022, 2:03 a.m. OK GNU C++14 TESTS 7 0 0
149364705 filmadzija B March 12, 2022, 1:05 a.m. OK GNU C++14 TESTS 7 0 0
149359265 __ShreyaGupta B March 11, 2022, 9:37 p.m. OK GNU C++14 TESTS 6 0 0
149356542 belalelshafei10 B March 11, 2022, 8:42 p.m. OK GNU C++14 TESTS 6 0 0
149378458 nnnnnick B March 12, 2022, 5:13 a.m. OK GNU C++14 TESTS 7 0 0
149376481 beerbelly B March 12, 2022, 4:46 a.m. OK GNU C++14 TESTS 7 0 0
149370154 saidjonakramjanov B March 12, 2022, 2:52 a.m. OK GNU C++14 TESTS 7 0 0
149380477 RedDaisy B March 12, 2022, 5:39 a.m. OK GNU C++14 TESTS 7 0 0
149379385 yi-coder18 B March 12, 2022, 5:25 a.m. OK GNU C++17 TESTS 7 0 0
149378743 pranavd892 B March 12, 2022, 5:16 a.m. OK GNU C++17 TESTS 7 0 0
149376447 20bcs030 B March 12, 2022, 4:45 a.m. OK GNU C++17 TESTS 7 0 0
149374989 dip_10 B March 12, 2022, 4:22 a.m. OK GNU C++17 TESTS 7 0 0
149372910 Gautam__ B March 12, 2022, 3:44 a.m. OK GNU C++17 TESTS 7 0 0
149370845 dhkhanh B March 12, 2022, 3:07 a.m. OK GNU C++17 TESTS 7 0 0
149370283 notyour-Z B March 12, 2022, 2:55 a.m. OK GNU C++17 TESTS 7 0 0
149368231 jaimehta B March 12, 2022, 2:33 a.m. OK GNU C++17 TESTS 7 0 0
149382346 TinyJoy B March 12, 2022, 6 a.m. OK GNU C++17 TESTS 7 0 0
149381326 _.pain._ B March 12, 2022, 5:49 a.m. OK GNU C++17 TESTS 7 0 0
149377305 Saimun_Islam B March 12, 2022, 4:57 a.m. OK GNU C++17 (64) TESTS 7 0 0
149374582 Xu__An1 B March 12, 2022, 4:16 a.m. OK GNU C++17 (64) TESTS 7 0 0
149367269 unoexp B March 12, 2022, 2:13 a.m. OK GNU C++17 (64) TESTS 7 0 0
149365829 Steins__Gate B March 12, 2022, 1:39 a.m. OK GNU C++17 (64) TESTS 7 0 0
149364652 InariInDream B March 12, 2022, 1:02 a.m. OK GNU C++17 (64) TESTS 7 0 0
149364406 HX123 B March 12, 2022, 12:53 a.m. OK GNU C++17 (64) TESTS 7 0 0
149357293 anbhv B March 11, 2022, 8:56 p.m. OK GNU C++17 (64) TESTS 6 0 0
149353407 Isreal B March 11, 2022, 7:52 p.m. OK GNU C++17 (64) TESTS 6 0 0
149352634 Nikhil0702 B March 11, 2022, 7:41 p.m. OK GNU C++17 (64) TESTS 6 0 0
149346167 Vr_07 B March 11, 2022, 6:29 p.m. OK GNU C++17 (64) TESTS 6 0 0
149380061 Lwind07 B March 12, 2022, 5:34 a.m. OK GNU C++20 (64) TESTS 7 0 0
149379920 downpour B March 12, 2022, 5:32 a.m. OK GNU C++20 (64) TESTS 7 0 0
149378818 sarveshtiwari24 B March 12, 2022, 5:18 a.m. OK GNU C++20 (64) TESTS 7 0 0
149378795 chah4t B March 12, 2022, 5:17 a.m. OK GNU C++20 (64) TESTS 7 0 0
149377987 tiasmondal B March 12, 2022, 5:07 a.m. OK GNU C++20 (64) TESTS 7 0 0
149377129 hitesh21 B March 12, 2022, 4:55 a.m. OK GNU C++20 (64) TESTS 7 0 0
149376460 bijibenli B March 12, 2022, 4:45 a.m. OK GNU C++20 (64) TESTS 7 0 0
149376345 Codersmith B March 12, 2022, 4:44 a.m. OK GNU C++20 (64) TESTS 7 0 0
149380243 shaosy B March 12, 2022, 5:36 a.m. OK GNU C++20 (64) TESTS 7 0 0
149381131 shadow221213 B March 12, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 7 0 0
149353733 koqo B March 11, 2022, 7:56 p.m. OK Go TESTS 6 15 102400
149361790 cuzynot B March 11, 2022, 10:49 p.m. OK Java 11 TESTS 6 155 0
149345739 Dcoder123 B March 11, 2022, 6:26 p.m. OK Java 11 TESTS 6 155 0
149337278 henrychenOutlook B March 11, 2022, 5:37 p.m. OK Java 11 TESTS 6 155 0
149335980 pothyne B March 11, 2022, 5:27 p.m. OK Java 11 TESTS 6 155 0
149332695 Lior B March 11, 2022, 5:14 p.m. OK Java 11 TESTS 6 155 0
149331997 LongWalk B March 11, 2022, 5:10 p.m. OK Java 11 TESTS 6 155 0
149351653 iamsoumik B March 11, 2022, 7:29 p.m. OK Java 11 TESTS 6 156 0
149337081 tusharpruth B March 11, 2022, 5:36 p.m. OK Java 11 TESTS 6 170 0
149374664 DSRathore B March 12, 2022, 4:17 a.m. OK Java 11 TESTS 7 171 0
149372945 amuthanmannar4 B March 12, 2022, 3:45 a.m. OK Java 11 TESTS 7 171 0
149343187 Push_back7 B March 11, 2022, 6:04 p.m. OK Java 8 TESTS 6 77 0
149375131 govindrajput B March 12, 2022, 4:25 a.m. OK Java 8 TESTS 7 77 0
149332608 Yehia8 B March 11, 2022, 5:14 p.m. OK Java 8 TESTS 6 78 0
149373296 sky9313 B March 12, 2022, 3:52 a.m. OK Java 8 TESTS 7 92 0
149377438 ak_ankit_ B March 12, 2022, 5 a.m. OK Java 8 TESTS 7 93 0
149342558 aryaman_571 B March 11, 2022, 5:58 p.m. OK Java 8 TESTS 6 93 0
149341748 Diaa12360 B March 11, 2022, 5:50 p.m. OK Java 8 TESTS 6 93 0
149328157 sanjayram21 B March 11, 2022, 4:54 p.m. OK Java 8 TESTS 6 93 0
149328134 amit_roy B March 11, 2022, 4:54 p.m. OK Java 8 TESTS 6 93 0
149346673 mass_2701 B March 11, 2022, 6:34 p.m. OK Java 8 TESTS 6 93 0
149374683 darkl0rd B March 12, 2022, 4:18 a.m. OK Kotlin 1.5 TESTS 7 171 0
149339610 Tlatoani B March 11, 2022, 5:43 p.m. OK Kotlin 1.5 TESTS 6 265 0
149313955 ktropin B March 11, 2022, 4:08 p.m. OK Mono C# TESTS 6 78 6860800
149335913 dandb B March 11, 2022, 5:27 p.m. OK MS C++ 2017 TESTS 6 0 0
149313712 DenMusya B March 11, 2022, 4:07 p.m. OK MS C++ 2017 TESTS 6 0 0
149365948 Levi__Ackerman B March 12, 2022, 1:42 a.m. OK MS C++ 2017 TESTS 7 15 0
149373764 Liutaiji B March 12, 2022, 4:01 a.m. OK MS C++ 2017 TESTS 7 15 0
149365827 Levi__Ackerman B March 12, 2022, 1:39 a.m. OK MS C++ 2017 TESTS 7 15 0
149354391 OmarRnr B March 11, 2022, 8:06 p.m. OK MS C++ 2017 TESTS 6 15 0
149366228 RealStarlight B March 12, 2022, 1:49 a.m. OK MS C++ 2017 TESTS 7 15 102400
149336002 minigb B March 11, 2022, 5:27 p.m. OK MS C++ 2017 TESTS 6 15 102400
149368191 su2617 B March 12, 2022, 2:32 a.m. OK MS C++ 2017 TESTS 7 15 102400
149364266 SaifAbuR3d B March 12, 2022, 12:48 a.m. OK MS C++ 2017 TESTS 7 15 409600
149331996 1_2_3_4_5_9 B March 11, 2022, 5:10 p.m. OK PyPy 2 TESTS 6 124 2969600
149344051 nhipata B March 11, 2022, 6:11 p.m. OK PyPy 2 TESTS 6 140 3788800
149376041 you1234 B March 12, 2022, 4:39 a.m. OK PyPy 2 TESTS 7 155 9625600
149314233 FrozenKandy B March 11, 2022, 4:08 p.m. OK PyPy 3 TESTS 6 77 2048000
149378062 PVR11 B March 12, 2022, 5:08 a.m. OK PyPy 3 TESTS 7 93 2457600
149377510 kuanc B March 12, 2022, 5:01 a.m. OK PyPy 3 TESTS 7 108 4505600
149377492 NIU_MA2.0 B March 12, 2022, 5:01 a.m. OK PyPy 3 TESTS 7 109 2252800
149321102 coder3433 B March 11, 2022, 4:28 p.m. OK PyPy 3 TESTS 6 109 3481600
149367865 crapcode B March 12, 2022, 2:26 a.m. OK PyPy 3 TESTS 7 109 3788800
149314144 amnidersingh B March 11, 2022, 4:08 p.m. OK PyPy 3 TESTS 6 124 2150400
149319335 lebron87 B March 11, 2022, 4:23 p.m. OK PyPy 3 TESTS 6 124 2969600
149314107 alexk07 B March 11, 2022, 4:08 p.m. OK PyPy 3 TESTS 6 124 4300800
149331992 akshat11 B March 11, 2022, 5:10 p.m. OK PyPy 3 TESTS 6 124 4608000
149377233 Tao1925 B March 12, 2022, 4:56 a.m. OK PyPy 3-64 TESTS 7 62 3072000
149358841 Bucher B March 11, 2022, 9:27 p.m. OK PyPy 3-64 TESTS 6 77 3891200
149345137 beethoven97 B March 11, 2022, 6:20 p.m. OK PyPy 3-64 TESTS 6 77 3993600
149350780 nitish420 B March 11, 2022, 7:19 p.m. OK PyPy 3-64 TESTS 6 77 4403200
149344957 dvaravind B March 11, 2022, 6:18 p.m. OK PyPy 3-64 TESTS 6 77 5836800
149374372 rivnam B March 12, 2022, 4:13 a.m. OK PyPy 3-64 TESTS 7 77 6451200
149371806 forever_rp__ B March 12, 2022, 3:24 a.m. OK PyPy 3-64 TESTS 7 77 7475200
149362437 MayThe4rceBWY B March 11, 2022, 11:37 p.m. OK PyPy 3-64 TESTS 6 78 4096000
149367768 Youarenotgood B March 12, 2022, 2:23 a.m. OK PyPy 3-64 TESTS 7 78 6144000
149316765 worldsaver B March 11, 2022, 4:16 p.m. OK PyPy 3-64 TESTS 6 78 6656000
149329539 vyas_samarth11 B March 11, 2022, 5:02 p.m. OK Python 3 TESTS 6 46 0
149319992 bucak B March 11, 2022, 4:25 p.m. OK Python 3 TESTS 6 46 0
149321534 carpe_diemist B March 11, 2022, 4:29 p.m. OK Python 3 TESTS 6 61 0
149320980 Divyanshu1593 B March 11, 2022, 4:27 p.m. OK Python 3 TESTS 6 61 0
149319527 Vashi B March 11, 2022, 4:24 p.m. OK Python 3 TESTS 6 61 0
149359365 kurrbanov B March 11, 2022, 9:40 p.m. OK Python 3 TESTS 6 62 0
149343277 Suraz11 B March 11, 2022, 6:05 p.m. OK Python 3 TESTS 6 62 0
149320415 sushantyerawar_2002 B March 11, 2022, 4:26 p.m. OK Python 3 TESTS 6 62 0
149337093 Srikanth31 B March 11, 2022, 5:36 p.m. OK Python 3 TESTS 6 77 0
149318868 bodkakurt B March 11, 2022, 4:22 p.m. OK Python 3 TESTS 6 77 0
149321968 orz_liuwei B March 11, 2022, 4:30 p.m. OK Rust 2021 TESTS 6 15 204800

remove filters

Back to search problems