Codeforces Round 674 (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
1426 Codeforces Round 674 (Div. 3) FINISHED False 7200 136072511 Sept. 28, 2020, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20843 ) B Symmetric Matrix PROGRAMMING implementation 900

B'Masha has n types of tiles of size 2 x 2 . Each cell of the tile contains one integer. Masha has an infinite number of tiles of each type. Masha decides to construct the square of size m x m consisting of the given tiles. This square also has to be a symmetric with respect to the main diagonal matrix, and each cell of this square has to be covered with exactly one tile cell, and also sides of tiles should be parallel to the sides of the square. All placed tiles cannot intersect with each other. Also, each tile should lie inside the square. See the picture in Notes section for better understanding. Symmetric with respect to the main diagonal matrix is such a square s that for each pair (i, j) the condition s[i][j] = s[j][i] holds. I.e. it is true that the element written in the i -row and j -th column equals to the element written in the j -th row and i -th column. Your task is to determine if Masha can construct a square of size m x m which is a symmetric matrix and consists of tiles she has. Masha can use any number of tiles of each type she has to construct the square. Note that she can not rotate tiles, she can only place them in the orientation they have in the input. You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 100 ) -- the number of test cases. Then t test cases follow. The first line of the test case contains two integers n and m ( 1 <= n <= 100 , 1 <= m <= 100 ) -- the number of types of tiles and the size of the square Masha wants to construct. The next 2n lines of the test case contain descriptions of tiles types. Types of tiles are written one after another, each type is written on two lines. The first line of the description contains two positive (greater than zero) integers not exceeding 100 -- the number written in the top left corner of the '...

Tutorials

83120

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94127241 Yash_s3135 B Sept. 28, 2020, 12:45 p.m. OK GNU C11 TESTS 5 15 0 900
94176839 akash19jain B Sept. 29, 2020, 4:36 a.m. OK GNU C11 TESTS 5 15 0 900
94112166 Badr_17 B Sept. 28, 2020, 10:11 a.m. OK GNU C11 TESTS 2 15 0 900
94133102 T.W.Sau B Sept. 28, 2020, 1:47 p.m. OK GNU C11 TESTS 5 15 102400 900
94154778 rexim B Sept. 28, 2020, 5:57 p.m. OK GNU C11 TESTS 5 30 0 900
94167590 BugLeave B Sept. 28, 2020, 11:32 p.m. OK GNU C11 TESTS 5 30 0 900
94116977 pranavkumar1423 B Sept. 28, 2020, 10:55 a.m. OK GNU C11 TESTS 5 31 0 900
94167346 jasonfan B Sept. 28, 2020, 11:17 p.m. OK GNU C++11 TESTS 5 15 0 900
94146784 dredwerkz B Sept. 28, 2020, 4:11 p.m. OK GNU C++11 TESTS 5 15 0 900
94144168 jackverneda B Sept. 28, 2020, 3:41 p.m. OK GNU C++11 TESTS 5 15 0 900
94174260 _ShadowSong B Sept. 29, 2020, 3:34 a.m. OK GNU C++11 TESTS 5 15 0 900
94171616 zhaorunhao B Sept. 29, 2020, 2:19 a.m. OK GNU C++11 TESTS 5 15 0 900
94177764 Tuououo B Sept. 29, 2020, 4:55 a.m. OK GNU C++11 TESTS 5 15 0 900
94171004 STDquantum B Sept. 29, 2020, 1:58 a.m. OK GNU C++11 TESTS 5 15 0 900
94169698 TQX B Sept. 29, 2020, 1:09 a.m. OK GNU C++11 TESTS 5 15 0 900
94174446 AMC_Hawk B Sept. 29, 2020, 3:38 a.m. OK GNU C++11 TESTS 5 15 0 900
94169093 HHHEN B Sept. 29, 2020, 12:45 a.m. OK GNU C++11 TESTS 5 15 0 900
94156757 ARVIND09 B Sept. 28, 2020, 6:33 p.m. OK GNU C++14 TESTS 5 15 0 900
94140152 ankit_rawat7895 B Sept. 28, 2020, 2:59 p.m. OK GNU C++14 TESTS 5 15 0 900
94138789 BTSprathampatel B Sept. 28, 2020, 2:45 p.m. OK GNU C++14 TESTS 5 15 0 900
94181193 KingImt007 B Sept. 29, 2020, 6:01 a.m. OK GNU C++14 TESTS 5 15 0 900
94178313 Murtaza1112 B Sept. 29, 2020, 5:07 a.m. OK GNU C++14 TESTS 5 15 0 900
94177069 WarChild B Sept. 29, 2020, 4:40 a.m. OK GNU C++14 TESTS 5 15 0 900
94175740 utkarsh.37 B Sept. 29, 2020, 4:11 a.m. OK GNU C++14 TESTS 5 15 0 900
94175480 pragati_2604 B Sept. 29, 2020, 4:04 a.m. OK GNU C++14 TESTS 5 15 0 900
94163547 dakshgarg B Sept. 28, 2020, 8:52 p.m. OK GNU C++14 TESTS 5 15 0 900
94160887 sak6e B Sept. 28, 2020, 7:50 p.m. OK GNU C++14 TESTS 5 15 0 900
94164427 Osvaldo10 B Sept. 28, 2020, 9:17 p.m. OK GNU C++17 TESTS 5 15 0 900
94177082 ZZU_KrySt4l B Sept. 29, 2020, 4:40 a.m. OK GNU C++17 TESTS 5 15 0 900
94173109 ashu12_chi B Sept. 29, 2020, 3:04 a.m. OK GNU C++17 TESTS 5 15 0 900
94171296 XleftDD B Sept. 29, 2020, 2:10 a.m. OK GNU C++17 TESTS 5 15 0 900
94167894 M.Ibrahim_ B Sept. 28, 2020, 11:48 p.m. OK GNU C++17 TESTS 5 15 0 900
94166614 you_dont_know_me B Sept. 28, 2020, 10:37 p.m. OK GNU C++17 TESTS 5 15 0 900
94164028 Basel.Ah B Sept. 28, 2020, 9:05 p.m. OK GNU C++17 TESTS 5 15 0 900
94162809 Nazib129 B Sept. 28, 2020, 8:33 p.m. OK GNU C++17 TESTS 5 15 0 900
94162527 t4c0 B Sept. 28, 2020, 8:26 p.m. OK GNU C++17 TESTS 5 15 0 900
94158960 element04519 B Sept. 28, 2020, 7:11 p.m. OK GNU C++17 TESTS 5 15 0 900
94112963 wzh520wzh B Sept. 28, 2020, 10:16 a.m. OK GNU C++17 (64) TESTS 2 0 1638400 900
94165350 bfs.07 B Sept. 28, 2020, 9:45 p.m. OK GNU C++17 (64) TESTS 5 15 0 900
94163316 smax B Sept. 28, 2020, 8:46 p.m. OK GNU C++17 (64) TESTS 5 15 0 900
94174102 onastack B Sept. 29, 2020, 3:30 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94174340 vjudge5 B Sept. 29, 2020, 3:35 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94175358 Prakhar6969 B Sept. 29, 2020, 4 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94177061 anishpathak121 B Sept. 29, 2020, 4:40 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94178416 naveenk2k B Sept. 29, 2020, 5:08 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94178549 iamRahulGandhi B Sept. 29, 2020, 5:11 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94170376 DanielMontes B Sept. 29, 2020, 1:36 a.m. OK GNU C++17 (64) TESTS 5 15 0 900
94170671 synapse B Sept. 29, 2020, 1:47 a.m. OK Go TESTS 5 358 0 900
94114851 kmangesh22 B Sept. 28, 2020, 10:32 a.m. OK Go TESTS 5 389 102400 900
94136150 codelegend B Sept. 28, 2020, 2:19 p.m. OK Haskell TESTS 5 31 102400 900
94119586 jakoma02 B Sept. 28, 2020, 11:24 a.m. OK Haskell TESTS 5 46 102400 900
94118141 nagu-pm B Sept. 28, 2020, 11:08 a.m. OK Java 11 TESTS 5 155 0 900
94158243 RuthlessAggression B Sept. 28, 2020, 6:58 p.m. OK Java 11 TESTS 5 155 0 900
94138222 sushant-kun B Sept. 28, 2020, 2:39 p.m. OK Java 11 TESTS 5 155 0 900
94123297 TaG__ B Sept. 28, 2020, 12:03 p.m. OK Java 11 TESTS 5 155 0 900
94123079 gssakash B Sept. 28, 2020, 12:01 p.m. OK Java 11 TESTS 5 170 0 900
94171492 Durgeshmaurya07 B Sept. 29, 2020, 2:15 a.m. OK Java 11 TESTS 5 171 0 900
94176164 anshum_it_is B Sept. 29, 2020, 4:21 a.m. OK Java 11 TESTS 5 171 0 900
94167595 ingenio B Sept. 28, 2020, 11:33 p.m. OK Java 11 TESTS 5 171 0 900
94166330 Apass.Jack B Sept. 28, 2020, 10:23 p.m. OK Java 11 TESTS 5 171 0 900
94179827 tanmaychakrabortydhn B Sept. 29, 2020, 5:35 a.m. OK Java 11 TESTS 5 171 0 900
94155191 hetshah25 B Sept. 28, 2020, 6:05 p.m. OK Java 8 TESTS 5 93 0 900
94149250 himanigupta1007 B Sept. 28, 2020, 4:42 p.m. OK Java 8 TESTS 5 93 0 900
94142835 bhavik128 B Sept. 28, 2020, 3:27 p.m. OK Java 8 TESTS 5 93 0 900
94138762 akhilreddyar891 B Sept. 28, 2020, 2:45 p.m. OK Java 8 TESTS 5 93 0 900
94128205 Manan8686 B Sept. 28, 2020, 12:56 p.m. OK Java 8 TESTS 5 93 0 900
94128032 Rawan321 B Sept. 28, 2020, 12:54 p.m. OK Java 8 TESTS 5 93 0 900
94118536 priyam_anand B Sept. 28, 2020, 11:12 a.m. OK Java 8 TESTS 5 93 0 900
94114444 Rubyy B Sept. 28, 2020, 10:28 a.m. OK Java 8 TESTS 5 93 0 900
94113279 T_Nady B Sept. 28, 2020, 10:18 a.m. OK Java 8 TESTS 5 93 0 900
94112098 shwetank_verma B Sept. 28, 2020, 10:10 a.m. OK Java 8 TESTS 2 93 0 900
94155195 zazak B Sept. 28, 2020, 6:05 p.m. OK Mono C# TESTS 5 61 2252800 900
94155603 zazak B Sept. 28, 2020, 6:12 p.m. OK Mono C# TESTS 5 62 2048000 900
94137832 SDev B Sept. 28, 2020, 2:35 p.m. OK MS C++ TESTS 5 30 512000 900
94123519 vjudge1 B Sept. 28, 2020, 12:06 p.m. OK MS C++ 2017 TESTS 5 15 4096000 900
94158454 poulaatef B Sept. 28, 2020, 7:02 p.m. OK MS C++ 2017 TESTS 5 30 0 900
94124686 transcending B Sept. 28, 2020, 12:19 p.m. OK MS C++ 2017 TESTS 5 30 0 900
94141687 yazan123 B Sept. 28, 2020, 3:15 p.m. OK MS C++ 2017 TESTS 5 31 0 900
94159246 tawfekhesham B Sept. 28, 2020, 7:16 p.m. OK MS C++ 2017 TESTS 5 31 0 900
94128536 vladnoov B Sept. 28, 2020, 1 p.m. OK MS C++ 2017 TESTS 5 31 0 900
94118366 gaserashraf B Sept. 28, 2020, 11:11 a.m. OK MS C++ 2017 TESTS 5 31 0 900
94124654 NiSiM B Sept. 28, 2020, 12:18 p.m. OK MS C++ 2017 TESTS 5 46 0 900
94134829 DiSTRuCtO B Sept. 28, 2020, 2:05 p.m. OK MS C++ 2017 TESTS 5 46 0 900
94152610 Sangwans B Sept. 28, 2020, 5:25 p.m. OK MS C++ 2017 TESTS 5 46 0 900
94144055 explorer_sifat B Sept. 28, 2020, 3:40 p.m. OK Node.js TESTS 5 93 5632000 900
94150306 WeirdBugsButOkay B Sept. 28, 2020, 4:54 p.m. OK Ocaml TESTS 5 15 204800 900
94155464 beethoven97 B Sept. 28, 2020, 6:10 p.m. OK PyPy 2 TESTS 5 124 2048000 900
94116824 not_a_spy B Sept. 28, 2020, 10:54 a.m. OK PyPy 3 TESTS 5 139 2150400 900
94131740 akifpathan B Sept. 28, 2020, 1:33 p.m. OK PyPy 3 TESTS 5 139 2252800 900
94118238 codecunt7 B Sept. 28, 2020, 11:09 a.m. OK PyPy 3 TESTS 5 140 2355200 900
94143237 caow B Sept. 28, 2020, 3:31 p.m. OK PyPy 3 TESTS 5 155 2355200 900
94134003 perDAYTwo_A B Sept. 28, 2020, 1:56 p.m. OK PyPy 3 TESTS 5 155 2355200 900
94120829 jainil4801 B Sept. 28, 2020, 11:37 a.m. OK PyPy 3 TESTS 5 170 2764800 900
94165472 asdsasd B Sept. 28, 2020, 9:50 p.m. OK PyPy 3 TESTS 5 171 2969600 900
94153215 albeXL B Sept. 28, 2020, 5:34 p.m. OK PyPy 3 TESTS 5 171 5734400 900
94153033 albeXL B Sept. 28, 2020, 5:32 p.m. OK PyPy 3 TESTS 5 171 5734400 900
94143400 Soumik43 B Sept. 28, 2020, 3:33 p.m. OK PyPy 3 TESTS 5 186 2867200 900
94146764 tamahom B Sept. 28, 2020, 4:11 p.m. OK Python 3 TESTS 5 108 0 900
94163117 Said_29 B Sept. 28, 2020, 8:40 p.m. OK Python 3 TESTS 5 108 307200 900
94152449 ByMykel B Sept. 28, 2020, 5:23 p.m. OK Python 3 TESTS 5 108 307200 900
94152054 MASSIVEBRAIN3000 B Sept. 28, 2020, 5:18 p.m. OK Python 3 TESTS 5 108 307200 900
94149926 deepchauhan18 B Sept. 28, 2020, 4:50 p.m. OK Python 3 TESTS 5 108 307200 900
94141408 dk_04 B Sept. 28, 2020, 3:12 p.m. OK Python 3 TESTS 5 108 307200 900
94136991 Mayu007 B Sept. 28, 2020, 2:27 p.m. OK Python 3 TESTS 5 108 307200 900
94111115 vid2k B Sept. 28, 2020, 10:04 a.m. OK Python 3 TESTS 2 108 307200 900
94164378 HETRAKESHFADIA B Sept. 28, 2020, 9:15 p.m. OK Python 3 TESTS 5 108 409600 900
94172095 monna4335 B Sept. 29, 2020, 2:34 a.m. OK Python 3 TESTS 5 109 0 900
94129693 tuna_salad B Sept. 28, 2020, 1:11 p.m. OK Rust TESTS 5 31 0 900
94120891 Paranid5 B Sept. 28, 2020, 11:38 a.m. OK Rust TESTS 5 31 0 900

remove filters

Back to search problems