cf/mirror

Watering an Array

CF
1917C1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3 4 4
1 2 3
1 3 2 3
6 2 3
6 1 2 4 1 5
6 6
5 1 1
0 5 0 5 0
5
1 1 1
1
1
3 4 6
1 2 3
1 3 2 3
Output
4
3
0
1
5
1917C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)