cf/mirror

Diagonals

CF
1995A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
1 0
2 2
2 3
2 4
10 50
100 239
3 9
Output
0
1
2
3
6
3
5
1995A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)