cf/mirror

Sorting with Twos

CF
1891A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
5
1 2 3 4 5
5
6 5 3 4 4
9
6 5 5 7 5 6 6 8 7
4
4 3 2 1
6
2 2 4 5 3 2
8
1 3 17 19 27 57 179 13
5
3 17 57 179 92
10
1 2 3 4 0 6 7 8 9 10
Output
YES
YES
YES
NO
NO
NO
YES
YES
1891A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)