Codeforces Round 732 (Div. 1)

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
1545 Codeforces Round 732 (Div. 1) FINISHED False 9000 111254063 July 11, 2021, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 647 ) C AquaMoon and Permutations PROGRAMMING combinatorics constructive algorithms graph matchings graphs 2800

B"Cirno has prepared n arrays of length n each. Each array is a permutation of n integers from 1 to n . These arrays are special: for all 1 <= q i <= q n , if we take the i -th element of each array and form another array of length n with these elements, the resultant array is also a permutation of n integers from 1 to n . In the other words, if you put these n arrays under each other to form a matrix with n rows and n columns, this matrix is a Latin square. Afterwards, Cirno added additional n arrays, each array is a permutation of n integers from 1 to n . For all 1 <= q i <= q n , there exists at least one position 1 <= q k <= q n , such that for the i -th array and the (n + i) -th array, the k -th element of both arrays is the same. Notice that the arrays indexed from n + 1 to 2n don't have to form a Latin square. Also, Cirno made sure that for all 2n arrays, no two arrays are completely equal, i. e. for all pair of indices 1 <= q i < j <= q 2n , there exists at least one position 1 <= q k <= q n , such that the k -th elements of the i -th and j -th array are different. Finally, Cirno arbitrarily changed the order of 2n arrays. AquaMoon calls a subset of all 2n arrays of size n good if these arrays from a Latin square. AquaMoon wants to know how many good subsets exist. Because this number may be particularly large, find it modulo 998 ,244 ,353 . Also, she wants to find any good subset. Can you help her? The input consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The first line of each test case contains a single integer n ( 5 <= q n <= q 500 ). Then 2n lines followed. The i -th of these lines contains n integers, representing the i -th array. I"...

Tutorials

Codeforces Round #732 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
122128897 AC-Evil C July 11, 2021, 4:28 p.m. OK GNU C++11 TESTS 98 140 9011200 2800
122164239 xgzc C July 12, 2021, 3:24 a.m. OK GNU C++11 TESTS 98 156 16384000 2800
122167692 xyf007 C July 12, 2021, 4:28 a.m. OK GNU C++11 TESTS 98 187 7987200 2800
122169670 Mr_Wu C July 12, 2021, 5:01 a.m. OK GNU C++11 TESTS 98 187 8806400 2800
122127552 msuwakow C July 11, 2021, 4:23 p.m. OK GNU C++11 TESTS 98 249 10240000 2800
122108775 SaInT7 C July 11, 2021, 3:18 p.m. OK GNU C++11 TESTS 98 295 18432000 2800
122160494 skydogli C July 12, 2021, 2:18 a.m. OK GNU C++11 TESTS 98 296 10035200 2800
122166298 TanakaAsuka C July 12, 2021, 4:02 a.m. OK GNU C++11 TESTS 98 312 6963200 2800
122146511 askd C July 11, 2021, 8:47 p.m. OK GNU C++11 TESTS 98 343 10547200 2800
122105936 AliShahali1382 C July 11, 2021, 3:10 p.m. OK GNU C++11 TESTS 98 405 15769600 2800
122141316 DeadPillow C July 11, 2021, 7:01 p.m. OK GNU C++14 TESTS 98 218 10342400 2800
122121167 ngpin04 C July 11, 2021, 3:58 p.m. OK GNU C++14 TESTS 98 233 6963200 2800
122102454 gs12117 C July 11, 2021, 3:02 p.m. OK GNU C++14 TESTS 98 234 5836800 2800
122114190 dlalswp25 C July 11, 2021, 3:34 p.m. OK GNU C++14 TESTS 98 234 14745600 2800
122123128 Sohsoh84 C July 11, 2021, 4:06 p.m. OK GNU C++14 TESTS 98 327 36454400 2800
122162037 syksykCCC C July 12, 2021, 2:45 a.m. OK GNU C++14 TESTS 98 374 5836800 2800
122097400 Radewoosh C July 11, 2021, 2:50 p.m. OK GNU C++14 TESTS 98 436 15872000 2800
122105204 TadijaSebez C July 11, 2021, 3:08 p.m. OK GNU C++14 TESTS 98 499 31641600 2800
122165303 tzc_wk C July 12, 2021, 3:44 a.m. OK GNU C++14 TESTS 98 545 22630400 2800
122110873 peehs_moorhsum C July 11, 2021, 3:24 p.m. OK GNU C++14 TESTS 98 576 36249600 2800
122147436 Nanored C July 11, 2021, 9:12 p.m. OK GNU C++17 TESTS 98 187 10649600 2800
122130277 Parliament C July 11, 2021, 4:33 p.m. OK GNU C++17 TESTS 98 187 11468800 2800
122166311 Normie28 C July 12, 2021, 4:02 a.m. OK GNU C++17 TESTS 98 217 8908800 2800
122134747 frodakcin C July 11, 2021, 5:38 p.m. OK GNU C++17 TESTS 98 233 10137600 2800
122126318 fedoseev.timofey C July 11, 2021, 4:18 p.m. OK GNU C++17 TESTS 98 233 14233600 2800
122135075 TechNite C July 11, 2021, 5:41 p.m. OK GNU C++17 TESTS 98 233 26521600 2800
122136826 skywalkert C July 11, 2021, 5:58 p.m. OK GNU C++17 TESTS 98 249 8806400 2800
122119096 voidmax C July 11, 2021, 3:51 p.m. OK GNU C++17 TESTS 98 249 20992000 2800
122098409 xtqqwq C July 11, 2021, 2:52 p.m. OK GNU C++17 TESTS 98 249 22220800 2800
122135431 stefansav C July 11, 2021, 5:44 p.m. OK GNU C++17 TESTS 98 249 27955200 2800
122123292 Anachor C July 11, 2021, 4:06 p.m. OK GNU C++17 (64) TESTS 98 139 12390400 2800
122136059 senyaa C July 11, 2021, 5:50 p.m. OK GNU C++17 (64) TESTS 98 170 21401600 2800
122114170 ShadowLight C July 11, 2021, 3:34 p.m. OK GNU C++17 (64) TESTS 98 171 7372800 2800
122155152 ecnerwala C July 11, 2021, 11:57 p.m. OK GNU C++17 (64) TESTS 98 171 19865600 2800
122116841 natsugiri C July 11, 2021, 3:43 p.m. OK GNU C++17 (64) TESTS 98 187 6451200 2800
122129049 KADR C July 11, 2021, 4:28 p.m. OK GNU C++17 (64) TESTS 98 187 7372800 2800
122126778 yosupo C July 11, 2021, 4:20 p.m. OK GNU C++17 (64) TESTS 98 187 23654400 2800
122107021 Benq C July 11, 2021, 3:13 p.m. OK GNU C++17 (64) TESTS 98 202 25088000 2800
122134468 CoderAnshu C July 11, 2021, 5:35 p.m. OK GNU C++17 (64) TESTS 98 233 10752000 2800
122122234 jiangly C July 11, 2021, 4:02 p.m. OK GNU C++17 (64) TESTS 98 234 7577600 2800
122126111 iakovlev.zakhar C July 11, 2021, 4:17 p.m. OK Java 8 TESTS 98 420 20787200 2800
122102399 Tlatoani C July 11, 2021, 3:01 p.m. OK Kotlin TESTS 98 1247 159436800 2800

remove filters

Back to search problems