cf/mirror

Yet Another Meme Problem

CF
1288B1100· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1multi-test • hover to link
Input
3
1 11
4 2
191 31415926
Output
1
0
1337
1288B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)