cf/mirror

Minimum Product

CF
1409B1100· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
10 10 8 5 3
12 8 8 7 2
12343 43 4543 39 123212
1000000000 1000000000 1 1 1
1000000000 1000000000 1 1 1000000000
10 11 2 1 5
10 11 9 1 10
Output
70
77
177177
999999999000000000
999999999
55
10
1409B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)