题解 | #简单运算#
简单运算
https://www.nowcoder.com/practice/23c9b22d40fa4d7698a1306fb0c9f975
#include <cstdio>
#include <cmath>
using namespace std;
int main() {
int a,b;
scanf("%d %d",&a,&b);
printf("%d ",a+b);
printf("%d ",abs(a-b));
printf("%d ",a*b);
if(a>b) printf("%d ",a/b); else printf("%d ",b/a);
if(a>b) printf("%d ",a%b); else printf("%d ",b%a);
return 0;
}
360集团公司氛围 349人发布