Train Hard, Win Easy
1043E1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 21 22 31 31 22 3
Output
3 0 3
Sample 2of 3
Input
3 31 22 31 31 22 31 3
Output
0 0 0
Sample 3of 3
Input
5 3-1 32 41 13 52 21 42 33 5
Output
4 14 4 16 10
58%
1043E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)