Educational Codeforces Round 131 (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
1701 Educational Codeforces Round 131 (Rated for Div. 2) FINISHED False 7200 74532299 July 8, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26426 ) A Grass Field PROGRAMMING implementation

B'There is a field of size 2 x 2 . Each cell of this field can either contain grass or be empty. The value a_{i, j} is 1 if the cell (i, j) contains grass, or 0 otherwise. In one move, you can choose one row and one column and cut all the grass in this row and this column. In other words, you choose the row x and the column y , then you cut the grass in all cells a_{x, i} and all cells a_{i, y} for all i from 1 to 2 . After you cut the grass from a cell, it becomes empty (i. xe2 x80 x89e. its value is replaced by 0 ). Your task is to find the minimum number of moves required to cut the grass in all non-empty cells of the field (i. xe2 x80 x89e. make all a_{i, j} zeros). You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 16 ) -- the number of test cases. Then t test cases follow. The test case consists of two lines, each of these lines contains two integers. The j -th integer in the i -th row is a_{i, j} . If a_{i, j} = 0 then the cell (i, j) is empty, and if a_{i, j} = 1 the cell (i, j) contains grass. For each test case, print one integer -- the minimum number of moves required to cut the grass in all non-empty cells of the field (i. xe2 x80 x89e. make all a_{i, j} zeros) in the corresponding test case. '...

Tutorials

Educational Codeforces Round 131 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
163313463 kd_angie A July 8, 2022, 6:35 p.m. OK C# 10 TESTS 2 15 0
163324767 bluemegane A July 8, 2022, 10:38 p.m. OK C# 8 TESTS 2 61 0
163343051 alvi_saheb A July 9, 2022, 5:36 a.m. OK Clang++17 Diagnostics TESTS 2 15 0
163303852 alvi_saheb A July 8, 2022, 4:52 p.m. OK Clang++17 Diagnostics TESTS 2 31 0
163330146 moly_hhh A July 9, 2022, 1:48 a.m. OK Clang++20 Diagnostics TESTS 2 15 0
163330198 moly_hhh A July 9, 2022, 1:49 a.m. OK Clang++20 Diagnostics TESTS 2 31 0
163313329 TAA1999 A July 8, 2022, 6:34 p.m. OK Clang++20 Diagnostics TESTS 2 31 0
163339217 Nawsheen_Sharmila A July 9, 2022, 4:42 a.m. OK GNU C11 TESTS 2 0 0
163341289 DeviLRoger A July 9, 2022, 5:13 a.m. OK GNU C11 TESTS 2 0 0
163345190 d.2002pullstop A July 9, 2022, 6:02 a.m. OK GNU C11 TESTS 2 0 0
163304270 Abu_Musa38 A July 8, 2022, 4:55 p.m. OK GNU C11 TESTS 2 0 0
163306840 antupa235 A July 8, 2022, 5:18 p.m. OK GNU C11 TESTS 2 0 0
163309960 Sarna_Das A July 8, 2022, 5:52 p.m. OK GNU C11 TESTS 2 0 0
163320430 Divyansh10108 A July 8, 2022, 8:35 p.m. OK GNU C11 TESTS 2 15 0
163341537 _Paradox_ A July 9, 2022, 5:16 a.m. OK GNU C11 TESTS 2 15 0
163344803 TREXROY A July 9, 2022, 5:57 a.m. OK GNU C11 TESTS 2 15 0
163344914 TREXROY A July 9, 2022, 5:59 a.m. OK GNU C11 TESTS 2 15 0
163344879 plcpunk A July 9, 2022, 5:58 a.m. OK GNU C++14 TESTS 2 0 0
163344739 luogu_bot1 A July 9, 2022, 5:57 a.m. OK GNU C++14 TESTS 2 0 0
163344671 linken_vashistha A July 9, 2022, 5:56 a.m. OK GNU C++14 TESTS 2 0 0
163344578 Gunivere A July 9, 2022, 5:55 a.m. OK GNU C++14 TESTS 2 0 0
163344173 liumonong A July 9, 2022, 5:50 a.m. OK GNU C++14 TESTS 2 0 0
163344021 wucaijie A July 9, 2022, 5:48 a.m. OK GNU C++14 TESTS 2 0 0
163343784 Ayham3 A July 9, 2022, 5:45 a.m. OK GNU C++14 TESTS 2 0 0
163343746 zhangmingxuan A July 9, 2022, 5:45 a.m. OK GNU C++14 TESTS 2 0 0
163345103 vinod_iitkgp A July 9, 2022, 6:01 a.m. OK GNU C++14 TESTS 2 0 0
163345015 aquatic101 A July 9, 2022, 6 a.m. OK GNU C++14 TESTS 2 0 0
163344487 Sarthak_324 A July 9, 2022, 5:53 a.m. OK GNU C++17 TESTS 2 0 0
163344503 binary_bae A July 9, 2022, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
163344685 Ilya_Is2022 A July 9, 2022, 5:56 a.m. OK GNU C++17 TESTS 2 0 0
163344762 hmm789 A July 9, 2022, 5:57 a.m. OK GNU C++17 TESTS 2 0 0
163344797 tanmoy.2002 A July 9, 2022, 5:57 a.m. OK GNU C++17 TESTS 2 0 0
163344827 mrunmayi A July 9, 2022, 5:58 a.m. OK GNU C++17 TESTS 2 0 0
163344904 huiye A July 9, 2022, 5:59 a.m. OK GNU C++17 TESTS 2 0 0
163345152 12_Utpal A July 9, 2022, 6:01 a.m. OK GNU C++17 TESTS 2 0 0
163344411 shamimahmed82245 A July 9, 2022, 5:52 a.m. OK GNU C++17 TESTS 2 0 0
163344270 cyborg_7459 A July 9, 2022, 5:51 a.m. OK GNU C++17 TESTS 2 0 0
163342715 Shreyathakral24 A July 9, 2022, 5:32 a.m. OK GNU C++17 (64) TESTS 2 0 0
163344870 par4dox A July 9, 2022, 5:58 a.m. OK GNU C++17 (64) TESTS 2 0 0
163344499 IrisQAQ A July 9, 2022, 5:54 a.m. OK GNU C++17 (64) TESTS 2 0 0
163343467 dashu_101 A July 9, 2022, 5:42 a.m. OK GNU C++17 (64) TESTS 2 0 0
163342105 hemanshu02 A July 9, 2022, 5:24 a.m. OK GNU C++17 (64) TESTS 2 0 0
163340277 Koo_ A July 9, 2022, 4:59 a.m. OK GNU C++17 (64) TESTS 2 0 0
163339783 noob_04 A July 9, 2022, 4:51 a.m. OK GNU C++17 (64) TESTS 2 0 0
163339216 fczhao A July 9, 2022, 4:42 a.m. OK GNU C++17 (64) TESTS 2 0 0
163338444 Junaid077 A July 9, 2022, 4:28 a.m. OK GNU C++17 (64) TESTS 2 0 0
163338228 Lunarfang A July 9, 2022, 4:24 a.m. OK GNU C++17 (64) TESTS 2 0 0
163343184 pseudosodium A July 9, 2022, 5:38 a.m. OK GNU C++20 (64) TESTS 2 0 0
163343359 Nishit-7908 A July 9, 2022, 5:40 a.m. OK GNU C++20 (64) TESTS 2 0 0
163343501 khanghb2006 A July 9, 2022, 5:42 a.m. OK GNU C++20 (64) TESTS 2 0 0
163343929 D_Evour_God A July 9, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 2 0 0
163344117 PM_2509 A July 9, 2022, 5:49 a.m. OK GNU C++20 (64) TESTS 2 0 0
163344159 Tangyixin A July 9, 2022, 5:49 a.m. OK GNU C++20 (64) TESTS 2 0 0
163344326 Danil_Krokodil A July 9, 2022, 5:52 a.m. OK GNU C++20 (64) TESTS 2 0 0
163345137 OceanCat A July 9, 2022, 6:01 a.m. OK GNU C++20 (64) TESTS 2 0 0
163345172 Neerav03 A July 9, 2022, 6:02 a.m. OK GNU C++20 (64) TESTS 2 0 0
163345193 mohdikram A July 9, 2022, 6:02 a.m. OK GNU C++20 (64) TESTS 2 0 0
163336363 swift51385 A July 9, 2022, 3:48 a.m. OK Java 11 TESTS 2 139 0
163332428 KarMa_ A July 9, 2022, 2:34 a.m. OK Java 11 TESTS 2 139 0
163312310 yudi23 A July 8, 2022, 6:21 p.m. OK Java 11 TESTS 2 139 0
163341224 priyam_anand A July 9, 2022, 5:12 a.m. OK Java 11 TESTS 2 140 0
163340123 suhas5979 A July 9, 2022, 4:56 a.m. OK Java 11 TESTS 2 140 0
163330193 shojin_pro A July 9, 2022, 1:49 a.m. OK Java 11 TESTS 2 140 0
163310588 md2076379 A July 8, 2022, 5:59 p.m. OK Java 11 TESTS 2 140 0
163305938 Lelouch20 A July 8, 2022, 5:09 p.m. OK Java 11 TESTS 2 140 0
163305122 g_square A July 8, 2022, 5:02 p.m. OK Java 11 TESTS 2 140 0
163303899 HelloWorld03 A July 8, 2022, 4:53 p.m. OK Java 11 TESTS 2 140 0
163334349 gwcoder1 A July 9, 2022, 3:10 a.m. OK Java 17 TESTS 2 109 0
163330039 17821147 A July 9, 2022, 1:45 a.m. OK Java 17 TESTS 2 124 0
163308206 _ryan18_ A July 8, 2022, 5:32 p.m. OK Java 17 TESTS 2 186 0
163322410 Koka A July 8, 2022, 9:22 p.m. OK Java 8 TESTS 2 62 0
163308295 BhargavModha A July 8, 2022, 5:33 p.m. OK Java 8 TESTS 2 77 0
163302224 Sussykin A July 8, 2022, 4:43 p.m. OK Java 8 TESTS 2 77 0
163341692 SarKot A July 9, 2022, 5:18 a.m. OK Java 8 TESTS 2 78 0
163317501 gagan_6730 A July 8, 2022, 7:40 p.m. OK Java 8 TESTS 2 78 0
163305359 swaggy_baba A July 8, 2022, 5:04 p.m. OK Java 8 TESTS 2 108 0
163303890 blade2912 A July 8, 2022, 4:53 p.m. OK Java 8 TESTS 2 108 0
163313842 liomsv A July 8, 2022, 6:40 p.m. OK Java 8 TESTS 2 124 0
163342279 yaswanth_coder A July 9, 2022, 5:26 a.m. OK Java 8 TESTS 2 140 0
163343783 forgotmyhandle A July 9, 2022, 5:45 a.m. OK MS C++ 2017 TESTS 2 0 0
163318678 maxaquentin A July 8, 2022, 8:01 p.m. OK Node.js TESTS 2 31 0
163321350 784 A July 8, 2022, 8:55 p.m. OK Perl TESTS 2 15 0
163321165 784 A July 8, 2022, 8:50 p.m. OK Perl TESTS 2 15 0
163304391 784 A July 8, 2022, 4:56 p.m. OK Perl TESTS 2 31 0
163315595 zxcuser2 A July 8, 2022, 7:08 p.m. OK PyPy 3 TESTS 2 61 0
163344694 yswon A July 9, 2022, 5:56 a.m. OK PyPy 3 TESTS 2 62 0
163338786 zouyu9631 A July 9, 2022, 4:34 a.m. OK PyPy 3 TESTS 2 77 0
163334658 magic_cat A July 9, 2022, 3:15 a.m. OK PyPy 3 TESTS 2 77 0
163332830 DesignCodeForces A July 9, 2022, 2:42 a.m. OK PyPy 3 TESTS 2 77 0
163331589 Ench_Lolz A July 9, 2022, 2:19 a.m. OK PyPy 3 TESTS 2 77 0
163319513 Vt_code A July 8, 2022, 8:16 p.m. OK PyPy 3 TESTS 2 77 0
163302789 dev8ag A July 8, 2022, 4:46 p.m. OK PyPy 3 TESTS 2 77 0
163315667 gotcoding124 A July 8, 2022, 7:09 p.m. OK PyPy 3 TESTS 2 77 307200
163311574 Su_123 A July 8, 2022, 6:12 p.m. OK PyPy 3 TESTS 2 77 307200
163309100 sumit_chugwani A July 8, 2022, 5:42 p.m. OK PyPy 3-64 TESTS 2 30 0
163306642 xyz1233 A July 8, 2022, 5:16 p.m. OK PyPy 3-64 TESTS 2 30 0
163341295 shelby70 A July 9, 2022, 5:13 a.m. OK PyPy 3-64 TESTS 2 31 0
163330445 youki. A July 9, 2022, 1:54 a.m. OK PyPy 3-64 TESTS 2 31 0
163317345 Tanguyvans A July 8, 2022, 7:37 p.m. OK PyPy 3-64 TESTS 2 31 0
163315601 vhadzi A July 8, 2022, 7:08 p.m. OK PyPy 3-64 TESTS 2 31 0
163343256 erudition_0705 A July 9, 2022, 5:39 a.m. OK PyPy 3-64 TESTS 2 46 0
163339478 OmarMoBadr A July 9, 2022, 4:46 a.m. OK PyPy 3-64 TESTS 2 46 0
163331136 mwen A July 9, 2022, 2:09 a.m. OK PyPy 3-64 TESTS 2 46 0
163330426 Youarenotgood A July 9, 2022, 1:54 a.m. OK PyPy 3-64 TESTS 2 46 0
163343248 OLOGY A July 9, 2022, 5:39 a.m. OK Python 2 TESTS 2 30 0
163305114 Xam_132 A July 8, 2022, 5:02 p.m. OK Python 3 TESTS 2 15 0
163343657 NickAs A July 9, 2022, 5:43 a.m. OK Python 3 TESTS 2 30 0
163341684 Tanish08 A July 9, 2022, 5:18 a.m. OK Python 3 TESTS 2 30 0
163329643 BeBeBe66666 A July 9, 2022, 1:35 a.m. OK Python 3 TESTS 2 30 0
163316470 ParasBedi298 A July 8, 2022, 7:21 p.m. OK Python 3 TESTS 2 30 0
163301590 saly.ea A July 8, 2022, 4:39 p.m. OK Python 3 TESTS 2 30 0
163301161 Lhohelhohehmm A July 8, 2022, 4:38 p.m. OK Python 3 TESTS 2 30 0
163300957 AshrafSustS19 A July 8, 2022, 4:37 p.m. OK Python 3 TESTS 2 30 0
163298722 Vcelist A July 8, 2022, 4:32 p.m. OK Python 3 TESTS 2 30 0
163336420 ritesh_43 A July 9, 2022, 3:50 a.m. OK Python 3 TESTS 2 31 0
163308354 stargsc A July 8, 2022, 5:34 p.m. OK Ruby 3 TESTS 2 218 204800
163337164 Thallium54 A July 9, 2022, 4:05 a.m. OK Rust 2021 TESTS 2 0 0
163337407 Thallium54 A July 9, 2022, 4:09 a.m. OK Rust 2021 TESTS 2 15 0
163336695 Thallium54 A July 9, 2022, 3:55 a.m. OK Rust 2021 TESTS 2 15 0
163326940 dorakueyon A July 9, 2022, 12:04 a.m. OK Rust 2021 TESTS 2 15 0

remove filters

Back to search problems