cf/mirror

Building an Aquarium

CF
1873E1100· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
7 9
3 1 2 4 6 2 5
3 10
1 1 1
4 1
1 4 3 4
6 1984
2 6 5 9 1 8
1 1000000000
1
Output
4
4
2
335
1000000001
1873E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)