Magic Tricks
1346E1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 5 13 42 14 13 13 1
Output
2 0 3 1
Sample 2of 3
Input
5 7 43 23 24 23 44 13 25 2
Output
2 2 0 3 1
Sample 3of 3
Input
7 15 55 34 26 12 41 63 75 64 26 42 66 36 37 62 67 2
Output
-1 1 1 1 2 1 0
58%
1346E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…