poj3980
简单题
View Code
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int main()
{
//freopen("t.txt", "r", stdin);
int a, b;
while (scanf("%d%d", &a, &b)!= EOF)
printf("%d\n", a % b);
return 0;
}