cf/mirror

Contest Start

CF
1539A1000· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
4 2 5
3 1 2
3 3 10
2000000000 1 2000000000
Output
5
3
3
1999999999000000000
1539A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)