#include <stdio.h>
void cal(int x,int y,int*sum,int*diff,int*mul,int*mod){
*sum=x+y;
if(x>=y){
*diff=x-y;
}else{*diff=y-x;
}
*mul=x*y;
*mod=x%y;
}
int main(void) {
// your code goes here
int x,y,sum,diff,mul,mod;
cal(x,y,&sum,&diff,&mul,&mod);
printf("和:%d,差:%d,積:%d,剰余:%d\n",sum
,diff
,mul
,mod
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCxpbnQgeSxpbnQqc3VtLGludCpkaWZmLGludCptdWwsaW50Km1vZCl7Cgkqc3VtPXgreTsKCWlmKHg+PXkpewoJCSpkaWZmPXgteTsKCX1lbHNleypkaWZmPXkteDsKCX0KCSptdWw9eCp5OwoJKm1vZD14JXk7Cn0KaW50IG1haW4odm9pZCkgewoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJaW50IHgseSxzdW0sZGlmZixtdWwsbW9kOwoJc2NhbmYoIiVkJWQiLCZ4LCZ5KTsKCWNhbCh4LHksJnN1bSwmZGlmZiwmbXVsLCZtb2QpOwoJcHJpbnRmKCLlkow6JWQs5beuOiVkLOepjTolZCzlibDkvZk6JWRcbiIsc3VtLGRpZmYsbXVsLG1vZCk7CglyZXR1cm4gMDsKfQo=