cf/mirror

Min-Max Array Transformation

CF
1721C1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
3
2 3 5
7 11 13
1
1000
5000
4
1 2 3 4
1 2 3 4
4
10 20 30 40
22 33 33 55
Output
5 4 2
11 10 8
4000
4000
0 0 0 0
0 0 0 0
12 2 3 15
23 13 3 15
1721C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)