cf/mirror

Olympic Team Building

CF
1779H3500· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 5
Input
4
60 32 59 87
Output
1001
Sample 2of 5
Input
4
100 100 100 100
Output
1111
Sample 3of 5
Input
8
8 8 8 8 4 4 4 4
Output
11110000
Sample 4of 5
Input
32
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Output
00000000000000001111111111111111
Sample 5of 5
Input
16
1 92875987325987 1 1 92875987325986 92875987325985 1 92875987325988 92875987325990 92875987325989 1 1 92875987325984 92875987325983 1 1
Output
0100110111001000
1779H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)