Codeforces Round 682 (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
1438 Codeforces Round 682 (Div. 2) FINISHED False 7200 132074711 Nov. 13, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10718 ) C Engineer Artem PROGRAMMING 2-sat constructive algorithms

B'Artem is building a new robot. He has a matrix a consisting of n rows and m columns. The cell located on the i -th row from the top and the j -th column from the left has a value a_{i,j} written in it. If two adjacent cells contain the same value, the robot will break. A matrix is called good if no two adjacent cells contain the same value, where two cells are called adjacent if they share a side. Artem wants to increment the values in some cells by one to make a good. More formally, find a good matrix b that satisfies the following condition -- For the constraints of this problem, it can be shown that such a matrix b always exists. If there are several such tables, you can output any of them. Please note that you do not have to minimize the number of increments. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10 ). Description of the test cases follows. The first line of each test case contains two integers n, m ( 1 <= n <= 100 , 1 <= m <= 100 ) -- the number of rows and columns, respectively. The following n lines each contain m integers. The j -th integer in the i -th line is a_{i,j} ( 1 <= q a_{i,j} <= q 10^9 ). For each case, output n lines each containing m integers. The j -th integer in the i -th line is b_{i,j} . In all the cases, you can verify that no two adjacent cells have the same value and that b is the same as a with some values incremented by one. '...

Tutorials

Codeforces Round #682 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
98331954 sare C Nov. 13, 2020, 7 p.m. OK Clang++17 Diagnostics TESTS 11 483 0
98346207 ndocx C Nov. 14, 2020, 2:51 a.m. OK FPC TESTS 11 109 0
98321555 akash456 C Nov. 13, 2020, 4:23 p.m. OK GNU C11 TESTS 11 140 0
98329624 RF_Faisal C Nov. 13, 2020, 6:21 p.m. OK GNU C11 TESTS 11 140 0
98330671 1435730 C Nov. 13, 2020, 6:37 p.m. OK GNU C11 TESTS 11 140 102400
98328689 akash19jain C Nov. 13, 2020, 6:07 p.m. OK GNU C11 TESTS 11 156 102400
98346734 mollnn C Nov. 14, 2020, 3:05 a.m. OK GNU C++11 TESTS 11 31 0
98343664 luogu_bot4 C Nov. 14, 2020, 1:40 a.m. OK GNU C++11 TESTS 11 31 0
98342163 panjinhua C Nov. 14, 2020, 12:41 a.m. OK GNU C++11 TESTS 11 31 0
98341250 pengtianyu C Nov. 13, 2020, 11:57 p.m. OK GNU C++11 TESTS 11 31 0
98341236 pengtianyu C Nov. 13, 2020, 11:56 p.m. OK GNU C++11 TESTS 11 31 0
98340751 tourifeng C Nov. 13, 2020, 11:32 p.m. OK GNU C++11 TESTS 11 31 0
98318313 GTX1999inside C Nov. 13, 2020, 4:05 p.m. OK GNU C++11 TESTS 11 31 0
98349077 Yzm007 C Nov. 14, 2020, 4:06 a.m. OK GNU C++11 TESTS 11 31 0
98350684 abi200415 C Nov. 14, 2020, 4:51 a.m. OK GNU C++11 TESTS 11 31 0
98352447 luogu_bot1 C Nov. 14, 2020, 5:30 a.m. OK GNU C++11 TESTS 11 31 0
98350809 ravi_sins C Nov. 14, 2020, 4:54 a.m. OK GNU C++14 TESTS 11 31 0
98349272 shweta391 C Nov. 14, 2020, 4:11 a.m. OK GNU C++14 TESTS 11 31 0
98344448 anhkha2003 C Nov. 14, 2020, 2:06 a.m. OK GNU C++14 TESTS 11 31 0
98344302 anhkha1004 C Nov. 14, 2020, 2:01 a.m. OK GNU C++14 TESTS 11 31 0
98343453 cicada2020 C Nov. 14, 2020, 1:32 a.m. OK GNU C++14 TESTS 11 31 0
98342969 Akif_Azwad C Nov. 14, 2020, 1:15 a.m. OK GNU C++14 TESTS 11 31 0
98342958 playhuntt C Nov. 14, 2020, 1:14 a.m. OK GNU C++14 TESTS 11 31 0
98353862 paliya_64 C Nov. 14, 2020, 5:59 a.m. OK GNU C++14 TESTS 11 31 0
98353623 rum3r C Nov. 14, 2020, 5:54 a.m. OK GNU C++14 TESTS 11 31 0
98353002 dont_blink C Nov. 14, 2020, 5:42 a.m. OK GNU C++14 TESTS 11 31 0
98313251 YabelAurelius C Nov. 13, 2020, 3:42 p.m. OK GNU C++17 TESTS 11 30 0
98349997 Simones C Nov. 14, 2020, 4:32 a.m. OK GNU C++17 TESTS 11 30 0
98334849 aymane7 C Nov. 13, 2020, 7:59 p.m. OK GNU C++17 TESTS 11 30 0
98333367 Zhora_.004 C Nov. 13, 2020, 7:26 p.m. OK GNU C++17 TESTS 11 30 204800
98352725 wttc C Nov. 14, 2020, 5:36 a.m. OK GNU C++17 TESTS 11 31 0
98353429 qinghua C Nov. 14, 2020, 5:50 a.m. OK GNU C++17 TESTS 11 31 0
98350707 terrcota C Nov. 14, 2020, 4:52 a.m. OK GNU C++17 TESTS 11 31 0
98351062 nykterstein C Nov. 14, 2020, 5 a.m. OK GNU C++17 TESTS 11 31 0
98350903 shivam_1507_ C Nov. 14, 2020, 4:57 a.m. OK GNU C++17 TESTS 11 31 0
98352697 Mality C Nov. 14, 2020, 5:35 a.m. OK GNU C++17 TESTS 11 31 0
98308292 hugh.jass C Nov. 13, 2020, 3:25 p.m. OK GNU C++17 (64) TESTS 11 30 0
98318703 Sakhiya07 C Nov. 13, 2020, 4:07 p.m. OK GNU C++17 (64) TESTS 11 30 102400
98331035 mambaTBE C Nov. 13, 2020, 6:43 p.m. OK GNU C++17 (64) TESTS 11 30 102400
98327397 rama_pang C Nov. 13, 2020, 5:52 p.m. OK GNU C++17 (64) TESTS 11 30 102400
98345860 vjudge2 C Nov. 14, 2020, 2:42 a.m. OK GNU C++17 (64) TESTS 11 30 512000
98351367 YannLiu C Nov. 14, 2020, 5:08 a.m. OK GNU C++17 (64) TESTS 11 31 0
98353912 alif_cse_ju C Nov. 14, 2020, 6 a.m. OK GNU C++17 (64) TESTS 11 31 0
98353038 almazov.03 C Nov. 14, 2020, 5:42 a.m. OK GNU C++17 (64) TESTS 11 31 0
98351169 idgaf_99 C Nov. 14, 2020, 5:03 a.m. OK GNU C++17 (64) TESTS 11 31 0
98349650 Anisur_rahaman C Nov. 14, 2020, 4:22 a.m. OK GNU C++17 (64) TESTS 11 31 0
98312854 pohzipohzi C Nov. 13, 2020, 3:41 p.m. OK Go TESTS 11 46 2048000
98317244 codelegend C Nov. 13, 2020, 4 p.m. OK Haskell TESTS 11 109 1126400
98334522 Xylenox C Nov. 13, 2020, 7:53 p.m. OK Haskell TESTS 11 140 3174400
98345337 bluesky111 C Nov. 14, 2020, 2:30 a.m. OK Java 11 TESTS 11 186 0
98336036 jethaji C Nov. 13, 2020, 8:27 p.m. OK Java 11 TESTS 11 187 0
98318752 saikaushik C Nov. 13, 2020, 4:07 p.m. OK Java 11 TESTS 11 202 0
98332752 shwn_Toss C Nov. 13, 2020, 7:14 p.m. OK Java 11 TESTS 11 202 0
98332597 shwn_Toss C Nov. 13, 2020, 7:11 p.m. OK Java 11 TESTS 11 202 0
98331538 bobbilyking C Nov. 13, 2020, 6:53 p.m. OK Java 11 TESTS 11 202 0
98330247 RuthlessAggression C Nov. 13, 2020, 6:31 p.m. OK Java 11 TESTS 11 202 0
98319869 skittles1412 C Nov. 13, 2020, 4:13 p.m. OK Java 11 TESTS 11 202 0
98315230 sam_code C Nov. 13, 2020, 3:50 p.m. OK Java 11 TESTS 11 202 0
98349397 Mhmmd.itani C Nov. 14, 2020, 4:15 a.m. OK Java 11 TESTS 11 218 0
98320448 ShesMyNerd C Nov. 13, 2020, 4:16 p.m. OK Java 8 TESTS 11 108 0
98331628 rushilpaul C Nov. 13, 2020, 6:54 p.m. OK Java 8 TESTS 11 109 0
98348910 decoder_1671 C Nov. 14, 2020, 4 a.m. OK Java 8 TESTS 11 124 0
98348336 hrp C Nov. 14, 2020, 3:46 a.m. OK Java 8 TESTS 11 124 0
98347715 mehtabhavin10 C Nov. 14, 2020, 3:30 a.m. OK Java 8 TESTS 11 124 0
98340666 polyakoff C Nov. 13, 2020, 11:28 p.m. OK Java 8 TESTS 11 124 0
98334507 piyush33patel C Nov. 13, 2020, 7:52 p.m. OK Java 8 TESTS 11 124 0
98336910 subhamdtu C Nov. 13, 2020, 8:49 p.m. OK Java 8 TESTS 11 124 0
98350661 ronitchopda14 C Nov. 14, 2020, 4:51 a.m. OK Java 8 TESTS 11 124 0
98348971 decoder_1671 C Nov. 14, 2020, 4:03 a.m. OK Java 8 TESTS 11 124 0
98353817 MartiBook C Nov. 14, 2020, 5:58 a.m. OK Kotlin TESTS 11 187 1945600
98340642 IJ_Apps C Nov. 13, 2020, 11:26 p.m. OK Kotlin TESTS 11 265 102400
98321525 mishgan C Nov. 13, 2020, 4:23 p.m. OK Mono C# TESTS 11 108 6860800
98352212 Vitazzz C Nov. 14, 2020, 5:25 a.m. OK MS C++ 2017 TESTS 11 61 102400
98342012 EvgeniusASPX C Nov. 14, 2020, 12:32 a.m. OK MS C++ 2017 TESTS 11 61 8089600
98343144 Torehalt C Nov. 14, 2020, 1:21 a.m. OK MS C++ 2017 TESTS 11 62 0
98329875 ustaritz C Nov. 13, 2020, 6:25 p.m. OK MS C++ 2017 TESTS 11 77 102400
98319730 redimer C Nov. 13, 2020, 4:12 p.m. OK MS C++ 2017 TESTS 11 77 102400
98314575 dmitrymack C Nov. 13, 2020, 3:48 p.m. OK MS C++ 2017 TESTS 11 77 204800
98309623 Myao C Nov. 13, 2020, 3:29 p.m. OK MS C++ 2017 TESTS 11 77 204800
98330674 nik1998 C Nov. 13, 2020, 6:37 p.m. OK MS C++ 2017 TESTS 11 77 1228800
98320103 jkroll87 C Nov. 13, 2020, 4:14 p.m. OK MS C++ 2017 TESTS 11 78 102400
98331212 nik1998 C Nov. 13, 2020, 6:47 p.m. OK MS C++ 2017 TESTS 11 78 1228800
98313505 fancy_lettuce C Nov. 13, 2020, 3:43 p.m. OK .NET Core C# TESTS 11 187 9318400
98331395 raj1307 C Nov. 13, 2020, 6:50 p.m. OK PyPy 2 TESTS 11 140 2662400
98328240 hxu10 C Nov. 13, 2020, 6:02 p.m. OK PyPy 2 TESTS 11 171 2355200
98312507 Mukundan314 C Nov. 13, 2020, 3:39 p.m. OK PyPy 2 TESTS 11 171 5836800
98333732 Gaurav1 C Nov. 13, 2020, 7:34 p.m. OK PyPy 2 TESTS 11 186 5836800
98329626 Anuranjan_Pandey C Nov. 13, 2020, 6:21 p.m. OK PyPy 3 TESTS 11 171 4300800
98326852 TheVan C Nov. 13, 2020, 5:47 p.m. OK PyPy 3 TESTS 11 171 68300800
98327707 manish.17 C Nov. 13, 2020, 5:55 p.m. OK PyPy 3 TESTS 11 187 4300800
98327530 DhurBaal C Nov. 13, 2020, 5:54 p.m. OK PyPy 3 TESTS 11 187 4608000
98329341 reddevil100 C Nov. 13, 2020, 6:17 p.m. OK PyPy 3 TESTS 11 202 5222400
98327075 uttharapally.chandra C Nov. 13, 2020, 5:49 p.m. OK PyPy 3 TESTS 11 202 5632000
98330407 gintoki_s C Nov. 13, 2020, 6:33 p.m. OK PyPy 3 TESTS 11 217 5529600
98311486 n00bc0d3r69 C Nov. 13, 2020, 3:35 p.m. OK PyPy 3 TESTS 11 218 3584000
98328790 marcus.test C Nov. 13, 2020, 6:09 p.m. OK PyPy 3 TESTS 11 218 3686400
98310993 akshitm16 C Nov. 13, 2020, 3:34 p.m. OK PyPy 3 TESTS 11 218 4608000
98353490 boogeymanJW C Nov. 14, 2020, 5:52 a.m. OK Python 2 TESTS 11 186 307200
98342462 biltharesatyendra C Nov. 14, 2020, 12:56 a.m. OK Python 2 TESTS 11 202 102400
98328680 Hitikkumar C Nov. 13, 2020, 6:07 p.m. OK Python 2 TESTS 11 202 307200
98331116 prayashverma007 C Nov. 13, 2020, 6:45 p.m. OK Python 3 TESTS 11 140 819200
98350210 pallav12 C Nov. 14, 2020, 4:38 a.m. OK Python 3 TESTS 11 140 921600
98350477 Sabuj_arif C Nov. 14, 2020, 4:46 a.m. OK Python 3 TESTS 11 155 819200
98348825 govindsaj C Nov. 14, 2020, 3:58 a.m. OK Python 3 TESTS 11 155 819200
98333778 fazle_rabbi_ferdaus C Nov. 13, 2020, 7:35 p.m. OK Python 3 TESTS 11 155 819200
98327758 swagsy2000 C Nov. 13, 2020, 5:56 p.m. OK Python 3 TESTS 11 155 819200
98350280 _DON_ C Nov. 14, 2020, 4:40 a.m. OK Python 3 TESTS 11 155 1126400
98322264 laknervirag C Nov. 13, 2020, 4:28 p.m. OK Python 3 TESTS 11 155 1433600
98347018 Tony_Stark3000 C Nov. 14, 2020, 3:12 a.m. OK Python 3 TESTS 11 156 819200
98345420 linlin000 C Nov. 14, 2020, 2:32 a.m. OK Python 3 TESTS 11 156 819200
98343894 bqn C Nov. 14, 2020, 1:48 a.m. OK Rust TESTS 11 31 307200
98321629 sansen C Nov. 13, 2020, 4:24 p.m. OK Rust TESTS 11 31 1126400
98344493 quickn_babo C Nov. 14, 2020, 2:08 a.m. OK Rust TESTS 11 46 102400
98314756 GeoffreyY C Nov. 13, 2020, 3:48 p.m. OK Rust TESTS 11 62 614400

remove filters

Back to search problems