cf/mirror

Two Out of Three

CF
1894B1000· newbie3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
6
1 2 3 2 2 3
7
7 7 7 7 7 7 7
4
1 1 2 2
7
1 2 3 4 5 6 7
5
2 3 3 3 2
3
1 2 1
9
1 1 1 7 7 7 9 9 9
1
1
18
93 84 50 21 88 52 16 50 63 1 30 85 29 67 63 58 37 69
Output
1 2 3 1 1 1
-1
3 2 2 1
-1
2 1 2 1 3
-1
1 1 2 2 1 2 2 3 3
-1
3 2 1 3 3 3 3 2 2 1 1 2 3 1 3 1 1 2
1894B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)