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;
}

posted @ 2011-07-03 19:43  金海峰  阅读(144)  评论(0编辑  收藏  举报