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 |
---|---|---|---|---|---|---|
1458 | Codeforces Round 691 (Div. 1) | FINISHED | False | 7200 | 123452699 | Dec. 19, 2020, 9:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1352 ) | C | Latin Square | PROGRAMMING | data structures implementation math matrices |
B"You are given a square matrix of size n . Every row and every column of this matrix is a permutation of 1 , 2 , ldots , n . Let a_{i, j} be the element at the intersection of i -th row and j -th column for every 1 <= q i, j <= q n . Rows are numbered 1, ldots, n top to bottom, and columns are numbered 1, ldots, n left to right. There are six types of operations: One can see that after any sequence of operations every row and every column of the matrix will still be a permutation of 1, 2, ldots, n . Given the initial matrix description, you should process m operations and output the final matrix. The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- number of test cases. t test case descriptions follow. The first line of each test case description contains two integers n and m ( 1 <= q n <= q 1000, 1 <= q m <= q 10^5 ) -- size of the matrix and number of operations. Each of the next n lines contains n integers separated by single spaces -- description of the matrix a ( 1 <= q a_{i, j} <= q n ). The last line of the description contains a string of m characters describing the operations in order, according to the format above. The sum of n does not exceed 1000 , and the sum of m does not exceed 10^5 . For each test case, print n lines with n integers each -- the final matrix after m operations. Line breaks between sample test case answers are only for clarity, and don't have to be printed. "... |
Codeforces Round #691 Editorial (finished) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
101765032 | Gassa | C | Dec. 19, 2020, 11:31 a.m. | OK | D | TESTS | 26 | 405 | 55296000 | ||
101772871 | hs-black | C | Dec. 19, 2020, 1 p.m. | OK | GNU C++11 | TESTS | 26 | 77 | 8908800 | ||
101814281 | GSHgsh | C | Dec. 20, 2020, 3:20 a.m. | OK | GNU C++11 | TESTS | 26 | 93 | 8089600 | ||
101747160 | LingXuan | C | Dec. 19, 2020, 10:39 a.m. | OK | GNU C++11 | TESTS | 26 | 186 | 7987200 | ||
101740576 | stal_xy23z7b8 | C | Dec. 19, 2020, 10:20 a.m. | OK | GNU C++11 | TESTS | 26 | 187 | 8192000 | ||
101820207 | LJC00118 | C | Dec. 20, 2020, 5:50 a.m. | OK | GNU C++11 | TESTS | 26 | 202 | 8192000 | ||
101771494 | EmptySoulist | C | Dec. 19, 2020, 12:46 p.m. | OK | GNU C++11 | TESTS | 26 | 202 | 8192000 | ||
101747088 | supy | C | Dec. 19, 2020, 10:39 a.m. | OK | GNU C++11 | TESTS | 26 | 202 | 12800000 | ||
101796713 | liuhengxi | C | Dec. 19, 2020, 6:26 p.m. | OK | GNU C++11 | TESTS | 26 | 202 | 28262400 | ||
101760864 | nantf | C | Dec. 19, 2020, 11:20 a.m. | OK | GNU C++11 | TESTS | 26 | 233 | 10035200 | ||
101815035 | tzcWhoIsYcxsCleverestSon | C | Dec. 20, 2020, 3:44 a.m. | OK | GNU C++11 | TESTS | 26 | 280 | 8089600 | ||
101757760 | sjcakioi | C | Dec. 19, 2020, 11:11 a.m. | OK | GNU C++14 | TESTS | 26 | 93 | 17408000 | ||
101753507 | djq_fpc | C | Dec. 19, 2020, 10:58 a.m. | OK | GNU C++14 | TESTS | 26 | 311 | 8396800 | ||
101805811 | antguz | C | Dec. 19, 2020, 9:18 p.m. | OK | GNU C++14 | TESTS | 26 | 327 | 8499200 | ||
101776965 | zhouzhendong | C | Dec. 19, 2020, 1:50 p.m. | OK | GNU C++14 | TESTS | 26 | 327 | 9113600 | ||
101776058 | PinkRabbit | C | Dec. 19, 2020, 1:36 p.m. | OK | GNU C++14 | TESTS | 26 | 342 | 8192000 | ||
101818657 | tzxydby | C | Dec. 20, 2020, 5:19 a.m. | OK | GNU C++14 | TESTS | 26 | 342 | 16281600 | ||
101810826 | Nero | C | Dec. 20, 2020, 1:04 a.m. | OK | GNU C++14 | TESTS | 26 | 343 | 8192000 | ||
101742587 | hank55663 | C | Dec. 19, 2020, 10:26 a.m. | OK | GNU C++14 | TESTS | 26 | 343 | 8192000 | ||
101805771 | antguz | C | Dec. 19, 2020, 9:17 p.m. | OK | GNU C++14 | TESTS | 26 | 343 | 8499200 | ||
101811121 | George1123 | C | Dec. 20, 2020, 1:17 a.m. | OK | GNU C++14 | TESTS | 26 | 343 | 16281600 | ||
101783421 | vjudge3 | C | Dec. 19, 2020, 3:40 p.m. | OK | GNU C++17 | TESTS | 26 | 77 | 8806400 | ||
101742674 | disangan233 | C | Dec. 19, 2020, 10:26 a.m. | OK | GNU C++17 | TESTS | 26 | 78 | 17510400 | ||
101743980 | LayCurse | C | Dec. 19, 2020, 10:30 a.m. | OK | GNU C++17 | TESTS | 26 | 108 | 10240000 | ||
101799588 | jschneider2013 | C | Dec. 19, 2020, 7:11 p.m. | OK | GNU C++17 | TESTS | 26 | 280 | 8704000 | ||
101779448 | adam_rajsky | C | Dec. 19, 2020, 2:34 p.m. | OK | GNU C++17 | TESTS | 26 | 280 | 8704000 | ||
101775044 | Omer223 | C | Dec. 19, 2020, 1:25 p.m. | OK | GNU C++17 | TESTS | 26 | 280 | 8908800 | ||
101808841 | tkacper | C | Dec. 19, 2020, 11:25 p.m. | OK | GNU C++17 | TESTS | 26 | 280 | 16384000 | ||
101812338 | kamer | C | Dec. 20, 2020, 2:07 a.m. | OK | GNU C++17 | TESTS | 26 | 295 | 4608000 | ||
101761046 | Monogon | C | Dec. 19, 2020, 11:20 a.m. | OK | GNU C++17 | TESTS | 26 | 296 | 8704000 | ||
101758458 | TeaPot | C | Dec. 19, 2020, 11:13 a.m. | OK | GNU C++17 | TESTS | 26 | 296 | 8908800 | ||
101758595 | memset0c | C | Dec. 19, 2020, 11:13 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 77 | 8806400 | ||
101783369 | memset0c | C | Dec. 19, 2020, 3:39 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 77 | 16998400 | ||
101758711 | yosupo | C | Dec. 19, 2020, 11:13 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 77 | 17305600 | ||
101775627 | RiverHamster | C | Dec. 19, 2020, 1:31 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 77 | 20377600 | ||
101806084 | magnus.hegdahl | C | Dec. 19, 2020, 9:25 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 124 | 409497600 | ||
101795239 | Linkus | C | Dec. 19, 2020, 6:05 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 186 | 16281600 | ||
101781900 | ecnerwala | C | Dec. 19, 2020, 3:16 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 218 | 8192000 | ||
101802730 | dorijanlendvaj | C | Dec. 19, 2020, 8:09 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 233 | 8396800 | ||
101778548 | TheOneYouWant | C | Dec. 19, 2020, 2:18 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 234 | 8294400 | ||
101795760 | JustasZ | C | Dec. 19, 2020, 6:12 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 234 | 8704000 | ||
101753386 | uwi | C | Dec. 19, 2020, 10:57 a.m. | OK | Java 11 | TESTS | 26 | 280 | 7372800 | ||
101749570 | mikit | C | Dec. 19, 2020, 10:46 a.m. | OK | Java 11 | TESTS | 26 | 280 | 8806400 | ||
101818206 | cwise | C | Dec. 20, 2020, 5:09 a.m. | OK | Java 8 | TESTS | 26 | 264 | 6348800 | ||
101776839 | Spheniscine | C | Dec. 19, 2020, 1:48 p.m. | OK | Kotlin | TESTS | 26 | 358 | 8089600 | ||
101797562 | vpike | C | Dec. 19, 2020, 6:38 p.m. | OK | MS C++ 2017 | TESTS | 26 | 811 | 8806400 | ||
101738744 | conqueror_of_tourist | C | Dec. 19, 2020, 10:16 a.m. | OK | PyPy 3 | TESTS | 26 | 639 | 47104000 | ||
101753730 | FlakeLCR | C | Dec. 19, 2020, 10:58 a.m. | OK | PyPy 3 | TESTS | 26 | 655 | 47513600 | ||
101762951 | yuusanlondon | C | Dec. 19, 2020, 11:26 a.m. | OK | PyPy 3 | TESTS | 26 | 919 | 74035200 |
Back to search problems