Codeforces Round 676 (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
1421 Codeforces Round 676 (Div. 2) FINISHED False 7200 134168063 Oct. 18, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13155 ) B Putting Bricks in the Wall PROGRAMMING constructive algorithms implementation

B"Pink Floyd are pulling a prank on Roger Waters. They know he doesn't like walls, he wants to be able to walk freely, so they are blocking him from exiting his room which can be seen as a grid. Roger Waters has a square grid of size n x n and he wants to traverse his grid from the upper left ( 1,1 ) corner to the lower right corner ( n,n ). Waters can move from a square to any other square adjacent by a side, as long as he is still in the grid. Also except for the cells ( 1,1 ) and ( n,n ) every cell has a value 0 or 1 in it. Before starting his traversal he will pick either a 0 or a 1 and will be able to only go to cells values in which are equal to the digit he chose. The starting and finishing cells ( 1,1 ) and ( n,n ) are exempt from this rule, he may go through them regardless of picked digit. Because of this the cell ( 1,1 ) takes value the letter 'S' and the cell ( n,n ) takes value the letter 'F'. For example, in the first example test case, he can go from ( 1, 1 ) to ( n, n ) by using the zeroes on this path: ( 1, 1 ), ( 2, 1 ), ( 2, 2 ), ( 2, 3 ), ( 3, 3 ), ( 3, 4 ), ( 4, 4 ) The rest of the band (Pink Floyd) wants Waters to not be able to do his traversal, so while he is not looking they will invert at most two cells in the grid (from 0 to 1 or vice versa). They are afraid they will not be quick enough and asked for your help in choosing the cells. Note that you cannot invert cells (1, 1) and (n, n) . We can show that there always exists a solution for the given constraints. Also note that Waters will pick his digit of the traversal after the band has changed his grid, so he must not be able to reach ( n,n ) no matter what digit he picks. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 50 ). Description of the test cases follows. The first line of each "...

Tutorials

Codeforces Round #676 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
95905843 Radu_Unicul B Oct. 18, 2020, 12:51 p.m. OK GNU C11 TESTS 27 15 0
95928138 rakesh_roy_plabon B Oct. 18, 2020, 6:34 p.m. OK GNU C11 TESTS 27 30 102400
95936066 Yash_s3135 B Oct. 18, 2020, 10:33 p.m. OK GNU C11 TESTS 27 31 0
95931749 Xacman B Oct. 18, 2020, 8:04 p.m. OK GNU C11 TESTS 27 31 0
95896114 akash456 B Oct. 18, 2020, 10:59 a.m. OK GNU C11 TESTS 27 31 0
95889924 nitinkumar1729 B Oct. 18, 2020, 10:35 a.m. OK GNU C11 TESTS 27 31 0
95912555 4mula B Oct. 18, 2020, 2:19 p.m. OK GNU C++11 TESTS 27 15 0
95902150 halexandru11 B Oct. 18, 2020, 12:02 p.m. OK GNU C++11 TESTS 27 15 0
95915143 GMPotlc B Oct. 18, 2020, 2:53 p.m. OK GNU C++11 TESTS 27 15 102400
95900318 calabashgirl B Oct. 18, 2020, 11:45 a.m. OK GNU C++11 TESTS 27 30 0
95902890 _Cheetos_ B Oct. 18, 2020, 12:12 p.m. OK GNU C++11 TESTS 27 30 0
95906324 saiful.dh B Oct. 18, 2020, 12:57 p.m. OK GNU C++11 TESTS 27 30 0
95907634 lemu17 B Oct. 18, 2020, 1:14 p.m. OK GNU C++11 TESTS 27 30 0
95938804 Lqingyi B Oct. 19, 2020, 1:07 a.m. OK GNU C++11 TESTS 27 30 0
95940425 zzulillh B Oct. 19, 2020, 2:21 a.m. OK GNU C++11 TESTS 27 30 0
95945703 ljfty B Oct. 19, 2020, 5:01 a.m. OK GNU C++11 TESTS 27 30 0
95904573 Shaw-L B Oct. 18, 2020, 12:34 p.m. OK GNU C++14 TESTS 27 30 0
95892928 varanshu B Oct. 18, 2020, 10:47 a.m. OK GNU C++14 TESTS 27 30 0
95889440 pramod_000 B Oct. 18, 2020, 10:33 a.m. OK GNU C++14 TESTS 27 30 204800
95896264 mothafucka B Oct. 18, 2020, 11 a.m. OK GNU C++14 TESTS 27 30 204800
95944528 _Parul_Singh_ B Oct. 19, 2020, 4:30 a.m. OK GNU C++14 TESTS 27 30 204800
95946585 advitech B Oct. 19, 2020, 5:21 a.m. OK GNU C++14 TESTS 27 30 204800
95938517 AngelKnows B Oct. 19, 2020, 12:52 a.m. OK GNU C++14 TESTS 27 30 1024000
95945214 striver_123 B Oct. 19, 2020, 4:48 a.m. OK GNU C++14 TESTS 27 31 0
95946414 tihsrah_1177 B Oct. 19, 2020, 5:17 a.m. OK GNU C++14 TESTS 27 31 0
95947644 tanwir2912 B Oct. 19, 2020, 5:46 a.m. OK GNU C++14 TESTS 27 31 0
95896405 woon813 B Oct. 18, 2020, 11 a.m. OK GNU C++17 TESTS 27 30 0
95886780 tiennl B Oct. 18, 2020, 10:23 a.m. OK GNU C++17 TESTS 27 30 0
95907754 woon813 B Oct. 18, 2020, 1:16 p.m. OK GNU C++17 TESTS 27 30 0
95886175 The_Googler_of_Dreams B Oct. 18, 2020, 10:21 a.m. OK GNU C++17 TESTS 27 30 0
95890730 s_s_k B Oct. 18, 2020, 10:39 a.m. OK GNU C++17 TESTS 27 30 0
95906853 bulat_gayazov B Oct. 18, 2020, 1:04 p.m. OK GNU C++17 TESTS 27 30 102400
95907612 dmkozyrev B Oct. 18, 2020, 1:14 p.m. OK GNU C++17 TESTS 27 30 204800
95931014 D9RS B Oct. 18, 2020, 7:45 p.m. OK GNU C++17 TESTS 27 30 204800
95928363 Petremol B Oct. 18, 2020, 6:38 p.m. OK GNU C++17 TESTS 27 30 204800
95914231 muccins B Oct. 18, 2020, 2:40 p.m. OK GNU C++17 TESTS 27 30 204800
95911120 run_time_terror B Oct. 18, 2020, 1:59 p.m. OK GNU C++17 (64) TESTS 27 15 0
95892516 Emblaze B Oct. 18, 2020, 10:46 a.m. OK GNU C++17 (64) TESTS 27 15 0
95927280 KokiYmgch B Oct. 18, 2020, 6:15 p.m. OK GNU C++17 (64) TESTS 27 15 102400
95920801 Ormlis B Oct. 18, 2020, 4:17 p.m. OK GNU C++17 (64) TESTS 27 15 102400
95908352 erray B Oct. 18, 2020, 1:24 p.m. OK GNU C++17 (64) TESTS 27 15 102400
95924342 mdjobayairhossain2020 B Oct. 18, 2020, 5:18 p.m. OK GNU C++17 (64) TESTS 27 30 0
95924491 alif_cse_ju B Oct. 18, 2020, 5:21 p.m. OK GNU C++17 (64) TESTS 27 30 0
95928551 Amphyx B Oct. 18, 2020, 6:42 p.m. OK GNU C++17 (64) TESTS 27 30 0
95930657 tazim5032 B Oct. 18, 2020, 7:35 p.m. OK GNU C++17 (64) TESTS 27 30 0
95932530 phoenix_0010 B Oct. 18, 2020, 8:25 p.m. OK GNU C++17 (64) TESTS 27 30 0
95899457 nirvana_rsc B Oct. 18, 2020, 11:39 a.m. OK Java 11 TESTS 27 186 0
95914881 TheRunner B Oct. 18, 2020, 2:50 p.m. OK Java 11 TESTS 27 187 0
95890294 tusharrr B Oct. 18, 2020, 10:37 a.m. OK Java 11 TESTS 27 187 0
95914943 bobbilyking B Oct. 18, 2020, 2:50 p.m. OK Java 11 TESTS 27 187 716800
95924097 DreamInfinite B Oct. 18, 2020, 5:15 p.m. OK Java 11 TESTS 27 187 2662400
95945099 sushant-kun B Oct. 19, 2020, 4:45 a.m. OK Java 11 TESTS 27 202 0
95941663 Prathmesh13 B Oct. 19, 2020, 3:02 a.m. OK Java 11 TESTS 27 202 0
95936805 Agnimandur B Oct. 18, 2020, 11:12 p.m. OK Java 11 TESTS 27 202 0
95923666 skittles1412 B Oct. 18, 2020, 5:07 p.m. OK Java 11 TESTS 27 202 0
95921971 jpark9013 B Oct. 18, 2020, 4:36 p.m. OK Java 11 TESTS 27 202 0
95922820 himanshu.skb.oo7 B Oct. 18, 2020, 4:52 p.m. OK Java 8 TESTS 27 108 0
95926531 Whiplash99 B Oct. 18, 2020, 5:59 p.m. OK Java 8 TESTS 27 108 0
95925747 flyman3046 B Oct. 18, 2020, 5:43 p.m. OK Java 8 TESTS 27 108 0
95925265 flyman3046 B Oct. 18, 2020, 5:35 p.m. OK Java 8 TESTS 27 109 0
95905443 sumitnitesh123 B Oct. 18, 2020, 12:45 p.m. OK Java 8 TESTS 27 109 0
95899791 ay_08 B Oct. 18, 2020, 11:41 a.m. OK Java 8 TESTS 27 109 0
95928571 antonskubiiev B Oct. 18, 2020, 6:43 p.m. OK Java 8 TESTS 27 109 0
95913631 priyam_anand B Oct. 18, 2020, 2:33 p.m. OK Java 8 TESTS 27 109 0
95911317 Utkarshn101 B Oct. 18, 2020, 2:02 p.m. OK Java 8 TESTS 27 109 0
95909853 shwetank_verma B Oct. 18, 2020, 1:44 p.m. OK Java 8 TESTS 27 109 0
95922267 Musin B Oct. 18, 2020, 4:42 p.m. OK Kotlin TESTS 27 124 0
95900987 AsuraPro B Oct. 18, 2020, 11:50 a.m. OK Kotlin TESTS 27 155 1228800
95888862 Musin B Oct. 18, 2020, 10:31 a.m. OK Kotlin TESTS 27 156 1638400
95921312 tomasz.masternak B Oct. 18, 2020, 4:25 p.m. OK Mono C# TESTS 27 77 3788800
95886164 ZiweiMo B Oct. 18, 2020, 10:21 a.m. OK MS C++ 2017 TESTS 27 31 102400
95934211 hruif B Oct. 18, 2020, 9:19 p.m. OK MS C++ 2017 TESTS 27 31 102400
95902022 Amit_123 B Oct. 18, 2020, noon OK MS C++ 2017 TESTS 27 31 102400
95888280 yanyun1 B Oct. 18, 2020, 10:29 a.m. OK MS C++ 2017 TESTS 27 31 102400
95888149 Daedrik B Oct. 18, 2020, 10:28 a.m. OK MS C++ 2017 TESTS 27 31 102400
95887037 DiSTRuCtO B Oct. 18, 2020, 10:24 a.m. OK MS C++ 2017 TESTS 27 31 102400
95890526 polahovskaya B Oct. 18, 2020, 10:38 a.m. OK MS C++ 2017 TESTS 27 31 307200
95889738 wq65 B Oct. 18, 2020, 10:35 a.m. OK MS C++ 2017 TESTS 27 31 307200
95894536 Gravekper B Oct. 18, 2020, 10:53 a.m. OK MS C++ 2017 TESTS 27 31 307200
95888941 YamagenSakam B Oct. 18, 2020, 10:32 a.m. OK MS C++ 2017 TESTS 27 31 512000
95915338 beethoven97 B Oct. 18, 2020, 2:55 p.m. OK PyPy 2 TESTS 27 124 2457600
95909170 AggarwalRaghav B Oct. 18, 2020, 1:35 p.m. OK PyPy 3 TESTS 27 139 819200
95894249 abeast_1651 B Oct. 18, 2020, 10:52 a.m. OK PyPy 3 TESTS 27 139 819200
95891514 awasthishubh B Oct. 18, 2020, 10:42 a.m. OK PyPy 3 TESTS 27 140 102400
95894215 dk5f95 B Oct. 18, 2020, 10:52 a.m. OK PyPy 3 TESTS 27 140 102400
95935288 rmhasan B Oct. 18, 2020, 9:58 p.m. OK PyPy 3 TESTS 27 140 102400
95924490 Piokemon B Oct. 18, 2020, 5:21 p.m. OK PyPy 3 TESTS 27 140 102400
95917399 Izumi___Sagiri B Oct. 18, 2020, 3:24 p.m. OK PyPy 3 TESTS 27 140 102400
95901940 mesaliason B Oct. 18, 2020, 11:59 a.m. OK PyPy 3 TESTS 27 140 102400
95901165 Kira_1234 B Oct. 18, 2020, 11:52 a.m. OK PyPy 3 TESTS 27 140 102400
95900889 vvedant99 B Oct. 18, 2020, 11:49 a.m. OK PyPy 3 TESTS 27 140 102400
95901859 SoSooding B Oct. 18, 2020, 11:58 a.m. OK Python 2 TESTS 27 171 0
95925428 PunishedJordan B Oct. 18, 2020, 5:38 p.m. OK Python 3 TESTS 27 93 307200
95907613 Lithosphere B Oct. 18, 2020, 1:14 p.m. OK Python 3 TESTS 27 93 307200
95906047 tanishqagarwal987 B Oct. 18, 2020, 12:54 p.m. OK Python 3 TESTS 27 93 307200
95903586 durlavbose3965 B Oct. 18, 2020, 12:21 p.m. OK Python 3 TESTS 27 93 307200
95900503 Edlue B Oct. 18, 2020, 11:46 a.m. OK Python 3 TESTS 27 93 307200
95933417 namoloasa B Oct. 18, 2020, 8:51 p.m. OK Python 3 TESTS 27 93 409600
95933331 strivetodeath B Oct. 18, 2020, 8:49 p.m. OK Python 3 TESTS 27 108 307200
95926793 code_stacker B Oct. 18, 2020, 6:04 p.m. OK Python 3 TESTS 27 108 307200
95901155 umrhiumrhi B Oct. 18, 2020, 11:52 a.m. OK Python 3 TESTS 27 108 307200
95893541 bitshifter42 B Oct. 18, 2020, 10:50 a.m. OK Python 3 TESTS 27 108 307200

remove filters

Back to search problems