cf/mirror

Two Divisors

CF
1916B1000· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
2 3
1 2
3 11
1 5
5 10
4 6
3 9
250000000 500000000
Output
6
4
33
25
20
12
27
1000000000
1916B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)