cf/mirror

Permutation Game

CF
1033C1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
8
3 6 5 4 2 7 1 8
Output
BAAAABAB
Sample 2of 2
Input
15
3 11 2 5 10 9 7 13 15 8 4 12 6 1 14
Output
ABAAAABBBAABAAB
1033C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)