Nearest Opposite Parity
1272E1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
104 5 7 6 7 5 4 4 6 4
Output
1 1 1 2 -1 1 1 3 1 1
58%
1272E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
104 5 7 6 7 5 4 4 6 4
1 1 1 2 -1 1 1 3 1 1