BC23. 牛牛学取余
描述
输入两个整数a, b, 输出a 除以b的余数,5除以2的余数为1,10除以4的余数为2
输入描述
输入两个整数,在int范围内输出描述
输出一个整数示例1
输入:
5 2
输出:
1
C 解法, 执行用时: 2ms, 内存消耗: 292KB, 提交时间: 2022-03-04
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d",a%b); }
C 解法, 执行用时: 2ms, 内存消耗: 296KB, 提交时间: 2022-07-03
#include<stdio.h> int main() { int a=0; int b=0; scanf("%d %d",&a,&b); printf("%d\n",a%b); return 0; }
C 解法, 执行用时: 2ms, 内存消耗: 296KB, 提交时间: 2022-03-09
#include <stdio.h> int main(void) { int a; int b; int c; scanf("%d %d",&a,&b); c=a%b; printf("%d",c); return 0; }
C 解法, 执行用时: 2ms, 内存消耗: 300KB, 提交时间: 2022-08-03
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); printf("%d\n",a%b); return 0; }
C 解法, 执行用时: 2ms, 内存消耗: 300KB, 提交时间: 2022-07-16
#include<stdio.h> int main() { int a = 0, b = 0; scanf("%d %d", &a, &b); printf("%d", a % b); return 0; }