Permutation Game
1968D1300· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
104 2 3 24 1 2 37 2 5 610 8 2 103 1 4 5 2 7 8 10 6 95 10 5 1 3 7 10 15 4 32 1000000000 1 21 24 48 10 4 15 1 4 3 2 8 6 71 1 2 1 2 100 101 1025 1 2 51 2 4 5 34 6 9 4 24 2 3 14 1 3 26 8 5 36 9 5 46 1 3 5 2 46 9 8 9 5 104 8 4 22 3 4 15 2 8 74 2 3 14 1 3 26 8 5 32 1000000000 1 21 21000000000 2
Output
BodyaSashaDrawDrawBodyaSashaSashaSashaSashaBodya
58%
1968D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…