poj3980(好水)
来源:互联网 发布:淘宝奢侈品代购 编辑:程序博客网 时间:2024/04/29 18:36
http://poj.org/problem?id=3980
取模运算
Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7735Accepted: 4742
Description
编写一个C函数mod(int n,int m),实现取模运算%
Input
输入包含多行数据
每行数据是两个整数a, b (1 <= a, b <=32767)
数据以EOF结束
每行数据是两个整数a, b (1 <= a, b <=32767)
数据以EOF结束
Output
于输入的每一行输出a%b
Sample Input
5 3100 2
Sample Output
20
Source
#include<stdio.h>
int mod(int a,int b )
{
}
int main()
{
}