cf/mirror

Suspicious logarithms

CF
1891D1900· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
12
4 6
4 7
4 8
4 100000
179 1000000000000000000
57 179
4 201018959
7 201018960
729 50624
728 50624
728 50625
729 50625
Output
6
8
9
348641
41949982
246
1
0
149688
149690
149694
149692
1891D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)