cf/mirror

Another Array Problem

CF
1763C2000· candidate master2s256 MB⌨ stdin/stdout

Examples

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