Chess Team Forming
1533E2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
510 3 4 6 19 4 2 5 9 851 7 6 4 8
Output
4 2 3 4 2
Sample 2of 3
Input
35 1 88 2 10 1101 2 3 4 5 6 7 8 9 10
Output
3 3 3 3 3 2 2 2 1 0
Sample 3of 3
Input
11010 525 15
Output
0 -5
58%
1533E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)