Petya's Exams
978G1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 21 3 11 5 1
Output
1 2 3 0 3
Sample 2of 3
Input
3 21 3 11 2 1
Output
-1
Sample 3of 3
Input
10 34 7 21 10 38 9 1
Output
2 2 2 1 1 0 4 3 4 4
58%
978G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)