cf/mirror

Divisibility Test

CF
1912D1900· candidate master3s1024 MB⌨ stdin/stdout
#math

Examples

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