#SDNU1562. 取模运算(高精度)
取模运算(高精度)
Description
输入一个正整数 和正整数 ,求 %
Format
Input
多组输入,每行一个正整数 和一个正整数mod
Output
每行输出一个整数,代表答案
Samples
5 2
32456879897675645343567876543423456788786756453424567654345677634567 456
1
399
输入一个正整数 n 和正整数 mod,求 n % mod
多组输入,每行一个正整数n(0<n≤101000) 和一个正整数mod (0<mod≤231−1)
每行输出一个整数,代表答案
5 2
32456879897675645343567876543423456788786756453424567654345677634567 456
1
399
By signing up a GENESIS universal account, you can submit code and join discussions in all online judging services provided by us.