cf/mirror

Team Composition: Programmers and Mathematicians

CF
1611B800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
5 5
10 1
2 3
0 0
17 2
1000000000 1000000000
Output
2
1
1
0
2
500000000
1611B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)