cf/mirror

K-th Not Divisible by n

CF
1352C1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
3 7
4 12
2 1000000000
7 97
1000000000 1000000000
2 1
Output
10
15
1999999999
113
1000000001
1
1352C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)