Codeforces Round 780 (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
1660 Codeforces Round 780 (Div. 3) FINISHED False 8100 88442663 March 31, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7492 ) E Matrix and Shifts PROGRAMMING constructive algorithms greedy implementation

B'You are given a binary matrix A of size n x n . Rows are numbered from top to bottom from 1 to n , columns are numbered from left to right from 1 to n . The element located at the intersection of row i and column j is called A_{ij} . Consider a set of 4 operations: You can perform an arbitrary (possibly zero) number of operations on the matrix; the operations can be performed in any order. After that, you can perform an arbitrary (possibly zero) number of new xor-operations: Each application of this xor-operation costs one burl. Note that the 4 shift operations -- are free. These 4 operations can only be performed before xor-operations are performed. Output the minimum number of burles you would have to pay to make the A matrix unitary. A unitary matrix is a matrix with ones on the main diagonal and the rest of its elements are zeros (that is, A_{ij} = 1 if i = j and A_{ij} = 0 otherwise). The first line of the input contains an integer t ( 1 <= t <= 10^4 ) --the number of test cases in the test. The descriptions of the test cases follow. Before each test case, an empty line is written in the input. The first line of each test case contains a single number n ( 1 <= n <= 2000 ) This is followed by n lines, each containing exactly n characters and consisting only of zeros and ones. These lines describe the values in the elements of the matrix. It is guaranteed that the sum of n^2 values over all test cases does not exceed 4 cdot 10^6 . For each test case, output the minimum number of burles you would have to pay to make the A matrix unitary. In other words, print the minimum number of xor-operations it will take after applying cyclic shifts to the matrix for the A matrix to become unitary. In the first test case, you can do the following: first, shift all the rows down cyclically, then the main diago'...

Tutorials

Codeforces Round #780 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
151592297 ruban E March 31, 2022, 5:10 p.m. OK Delphi TESTS 6 140 13721600
151591981 dreamoon_love_AA E March 31, 2022, 5:07 p.m. OK GNU C++14 TESTS 6 31 4300800
151586294 MyCode. E March 31, 2022, 4:44 p.m. OK GNU C++14 TESTS 6 46 7065600
151584993 baibaiouo E March 31, 2022, 4:41 p.m. OK GNU C++14 TESTS 6 46 7065600
151590255 aohkgnadnart E March 31, 2022, 4:55 p.m. OK GNU C++14 TESTS 6 46 7168000
151594031 dear----john E March 31, 2022, 5:24 p.m. OK GNU C++14 TESTS 6 46 9113600
151587394 weizhizhe E March 31, 2022, 4:46 p.m. OK GNU C++14 TESTS 6 62 3993600
151617868 maiky E April 1, 2022, 1:45 a.m. OK GNU C++14 TESTS 11 62 4198400
151617515 maiky E April 1, 2022, 1:35 a.m. OK GNU C++14 TESTS 11 62 4198400
151598583 beastmodeon E March 31, 2022, 6:14 p.m. OK GNU C++14 TESTS 6 62 6451200
151604504 Ninja_x E March 31, 2022, 7:30 p.m. OK GNU C++14 TESTS 6 62 7065600
151599095 YT_ChiHou E March 31, 2022, 6:19 p.m. OK GNU C++17 TESTS 6 46 3993600
151597799 Cloud_ E March 31, 2022, 6:05 p.m. OK GNU C++17 TESTS 6 46 4300800
151591661 antiriad7 E March 31, 2022, 5:05 p.m. OK GNU C++17 TESTS 6 46 8089600
151583857 chaser682 E March 31, 2022, 4:38 p.m. OK GNU C++17 TESTS 6 46 12083200
151585801 Firefrog418 E March 31, 2022, 4:43 p.m. OK GNU C++17 TESTS 6 61 3993600
151590694 Chen_ E March 31, 2022, 4:58 p.m. OK GNU C++17 TESTS 6 61 3993600
151591170 Taha E March 31, 2022, 5:01 p.m. OK GNU C++17 TESTS 6 61 7065600
151602680 amitroy7781 E March 31, 2022, 7:04 p.m. OK GNU C++17 TESTS 6 61 16179200
151583647 fireflw E March 31, 2022, 4:37 p.m. OK GNU C++17 TESTS 6 61 16179200
151590483 KindaNameless E March 31, 2022, 4:57 p.m. OK GNU C++17 TESTS 6 62 0
151591725 Ompatel8901 E March 31, 2022, 5:05 p.m. OK GNU C++17 (64) TESTS 6 46 6246400
151596154 rgnerdplayer E March 31, 2022, 5:47 p.m. OK GNU C++17 (64) TESTS 6 46 7270400
151585185 ThornBlade E March 31, 2022, 4:41 p.m. OK GNU C++17 (64) TESTS 6 46 7270400
151589371 prashar32 E March 31, 2022, 4:51 p.m. OK GNU C++17 (64) TESTS 6 46 7372800
151602687 AkshitDh E March 31, 2022, 7:04 p.m. OK GNU C++17 (64) TESTS 6 46 16076800
151587055 clams E March 31, 2022, 4:45 p.m. OK GNU C++17 (64) TESTS 6 61 7475200
151621017 cjtodl E April 1, 2022, 3:05 a.m. OK GNU C++17 (64) TESTS 11 61 16179200
151608332 keijak E March 31, 2022, 8:32 p.m. OK GNU C++17 (64) TESTS 6 61 17305600
151610510 iAmShipul E March 31, 2022, 9:19 p.m. OK GNU C++17 (64) TESTS 11 62 3993600
151597782 pcms2 E March 31, 2022, 6:05 p.m. OK GNU C++17 (64) TESTS 6 62 7270400
151596168 I_am_balancing E March 31, 2022, 5:47 p.m. OK GNU C++20 (64) TESTS 6 15 5324800
151585224 VaibhavAgarwala E March 31, 2022, 4:41 p.m. OK GNU C++20 (64) TESTS 6 30 5324800
151591524 Sogol E March 31, 2022, 5:04 p.m. OK GNU C++20 (64) TESTS 6 31 3993600
151607615 amirhozaifa E March 31, 2022, 8:19 p.m. OK GNU C++20 (64) TESTS 6 31 4403200
151588488 viraldoshi E March 31, 2022, 4:48 p.m. OK GNU C++20 (64) TESTS 6 31 5324800
151597064 Nea1 E March 31, 2022, 5:57 p.m. OK GNU C++20 (64) TESTS 6 31 5324800
151630636 yuexia E April 1, 2022, 5:50 a.m. OK GNU C++20 (64) TESTS 11 46 0
151605102 mihneacazan E March 31, 2022, 7:39 p.m. OK GNU C++20 (64) TESTS 6 46 3993600
151585392 ZIENxc E March 31, 2022, 4:42 p.m. OK GNU C++20 (64) TESTS 6 46 4096000
151590151 violet_apricity E March 31, 2022, 4:55 p.m. OK GNU C++20 (64) TESTS 6 46 4198400
151628728 0x3F E April 1, 2022, 5:24 a.m. OK Go TESTS 11 358 79769600
151629331 0x3F E April 1, 2022, 5:33 a.m. OK Go TESTS 11 358 79872000
151598585 Haresa E March 31, 2022, 6:14 p.m. OK Java 11 TESTS 6 264 0
151602736 eshan18.09 E March 31, 2022, 7:05 p.m. OK Java 11 TESTS 6 264 18636800
151595106 LongWalk E March 31, 2022, 5:35 p.m. OK Java 11 TESTS 6 265 0
151630355 swaggy_baba E April 1, 2022, 5:46 a.m. OK Java 11 TESTS 11 342 17408000
151591792 tushar19280 E March 31, 2022, 5:06 p.m. OK Java 11 TESTS 6 358 9011200
151605395 cnh620 E March 31, 2022, 7:44 p.m. OK Java 11 TESTS 6 404 44032000
151586785 soumit915 E March 31, 2022, 4:45 p.m. OK Java 11 TESTS 6 405 9318400
151585124 rahul20108 E March 31, 2022, 4:41 p.m. OK Java 11 TESTS 6 420 15769600
151629018 pratham_b E April 1, 2022, 5:28 a.m. OK Java 11 TESTS 11 421 18432000
151588365 josefhoppe E March 31, 2022, 4:48 p.m. OK Java 11 TESTS 6 436 0
151597361 harshsingla06 E March 31, 2022, 6 p.m. OK Java 8 TESTS 6 171 4608000
151604975 kartikpapney E March 31, 2022, 7:37 p.m. OK Java 8 TESTS 6 171 4710400
151585583 g906360 E March 31, 2022, 4:42 p.m. OK Java 8 TESTS 6 171 16691200
151618721 kareem3id E April 1, 2022, 2:09 a.m. OK Java 8 TESTS 11 186 7270400
151585045 Zicode E March 31, 2022, 4:41 p.m. OK Java 8 TESTS 6 202 16588800
151594073 Yess_0 E March 31, 2022, 5:25 p.m. OK Java 8 TESTS 6 452 16281600
151616048 hanel1164 E April 1, 2022, 12:44 a.m. OK Kotlin 1.4 TESTS 11 171 7577600
151615611 cfcfs E April 1, 2022, 12:28 a.m. OK Kotlin 1.5 TESTS 11 577 16588800
151594988 Vl4045 E March 31, 2022, 5:34 p.m. OK Mono C# TESTS 6 139 3072000
151584888 Antonov E March 31, 2022, 4:40 p.m. OK MS C++ 2017 TESTS 6 93 17203200
151627779 xzzzzz E April 1, 2022, 5:10 a.m. OK MS C++ 2017 TESTS 11 124 4096000
151584351 IlyinAD E March 31, 2022, 4:39 p.m. OK MS C++ 2017 TESTS 6 140 16998400
151630874 whatcan1say E April 1, 2022, 5:53 a.m. OK MS C++ 2017 TESTS 11 155 4096000
151614041 dldfj114514 E March 31, 2022, 11:04 p.m. OK MS C++ 2017 TESTS 11 202 5734400
151620282 zzl030916 E April 1, 2022, 2:46 a.m. OK MS C++ 2017 TESTS 11 967 16076800
151611918 Nidz05 E March 31, 2022, 9:55 p.m. OK .NET Core C# TESTS 11 233 26419200
151597518 acorn11 E March 31, 2022, 6:02 p.m. OK PyPy 2 TESTS 6 249 5632000
151598390 lemiao12 E March 31, 2022, 6:12 p.m. OK PyPy 3 TESTS 6 420 30105600
151602574 grawlixes E March 31, 2022, 7:03 p.m. OK PyPy 3 TESTS 6 576 10854400
151607405 sushmanth.dampur8780 E March 31, 2022, 8:15 p.m. OK PyPy 3 TESTS 6 717 10854400
151588899 rahulguptanitro E March 31, 2022, 4:49 p.m. OK PyPy 3 TESTS 6 779 22220800
151584014 Darshan_raj_kumar E March 31, 2022, 4:38 p.m. OK PyPy 3 TESTS 6 779 25395200
151600017 skp_r E March 31, 2022, 6:30 p.m. OK PyPy 3-64 TESTS 6 202 18432000
151585429 xabialonso14 E March 31, 2022, 4:42 p.m. OK PyPy 3-64 TESTS 6 202 18432000
151595021 siganai E March 31, 2022, 5:34 p.m. OK PyPy 3-64 TESTS 6 311 43724800
151598109 zouyu9631 E March 31, 2022, 6:08 p.m. OK PyPy 3-64 TESTS 6 327 21094400
151623884 rivnam E April 1, 2022, 4:07 a.m. OK PyPy 3-64 TESTS 11 389 42598400
151625058 rivnam E April 1, 2022, 4:29 a.m. OK PyPy 3-64 TESTS 11 405 43724800
151625009 rivnam E April 1, 2022, 4:29 a.m. OK PyPy 3-64 TESTS 11 468 43929600
151597697 Skillful_Wanderer E March 31, 2022, 6:04 p.m. OK PyPy 3-64 TESTS 6 468 50585600
151601301 notTehlka E March 31, 2022, 6:46 p.m. OK PyPy 3-64 TESTS 6 514 44032000
151586779 aberent E March 31, 2022, 4:45 p.m. OK PyPy 3-64 TESTS 6 592 40755200
151587347 H_Raja E March 31, 2022, 4:46 p.m. OK Python 3 TESTS 6 951 5222400
151621023 Spheniscine E April 1, 2022, 3:05 a.m. OK Rust 2021 TESTS 11 46 4505600

remove filters

Back to search problems