Misha and Permutations Summation
501D2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
20 10 1
Output
0 1
Sample 2of 3
Input
20 11 0
Output
1 0
Sample 3of 3
Input
31 2 02 1 0
Output
1 0 2
58%
501D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)