标签:
Time Limit: 1000MS | Memory Limit: 65536K | |
Total Submissions: 10931 | Accepted: 6618 |
Description
Input
Output
Sample Input
5 3
100 2
Sample Output
2
0
1 #include <stdio.h> 2 3 int mod(int n, int m){ 4 // if(n >= m) 5 // n = n - n / m * m; 6 // return n; 7 return n % m; 8 } 9 10 int main(){ 11 int m, n; 12 while(scanf("%d %d", &m, &n) != EOF){ 13 printf("%d\n", mod(m, n)); 14 } 15 return 0; 16 }
标签:
原文地址:http://www.cnblogs.com/qinduanyinghua/p/5796936.html