cf/mirror

Minimum Array

CF
1157E1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
0 1 2 1
3 2 1 1
Output
1 0 0 2
Sample 2of 2
Input
7
2 5 1 5 3 4 3
2 4 3 5 6 5 1
Output
0 0 0 1 0 2 4
1157E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)