cf/mirror

Sliding

CF
2035A800· newbie1s256 MB⌨ stdin/stdout

Examples

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