cf/mirror

Quests

CF
1914C1100· newbie2.5s256 MB⌨ stdin/stdout

Examples

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