cf/mirror

Hard Problem

CF
2044C800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
10 5 5 10
3 6 1 1
15 14 12 4
1 1 1 1
420 6 9 69
Output
20
5
30
2
84
2044C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)