cf/mirror

Misha and Permutations Summation

CF
501D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
0 1
0 1
Output
0 1
Sample 2of 3
Input
2
0 1
1 0
Output
1 0
Sample 3of 3
Input
3
1 2 0
2 1 0
Output
1 0 2
501D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)