Problem1103--PIPI的数学题I

1103: PIPI的数学题I

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 868  Solved: 457
[Submit] [Status] [Web Board] [Creator:]

Description

PIPI现在有一个很大的数字N,他想知道这个数对p取模的结果~

Input

输入包含多组测试用例。
对于每一组测试用例,包含一个正整数N(N<1010000)和一个模数p(0<p<232)

Output

对于每一组测试用例,输出 N%p

Sample Input

10 30
30 10
100 33

Sample Output

10
0
1

Source/Category