#include <stdio.h>
void cal(int x, int y, int *sum, int *diff, int *mul, int *mod) {
*sum = x + y;
*mul = x * y;
*mod = x % y;
if (x - y < 0) {
*diff = -(x - y);
} else {
*diff = x - y;
}
}
int main() {
int x, y, sum, diff, mul, mod;
cal(x, y, &sum, &diff, &mul, &mod);
printf("x / y = %d\n", x
/ y
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCkgewogICAgKnN1bSA9IHggKyB5OwogICAgKm11bCA9IHggKiB5OwogICAgKm1vZCA9IHggJSB5OwoKICAgIGlmICh4IC0geSA8IDApIHsKICAgICAgICAqZGlmZiA9IC0oeCAtIHkpOwogICAgfSBlbHNlIHsKICAgICAgICAqZGlmZiA9IHggLSB5OwogICAgfQp9CgppbnQgbWFpbigpIHsKICAgIGludCB4LCB5LCBzdW0sIGRpZmYsIG11bCwgbW9kOwoKICAgIHByaW50ZigieOOBruWApOOCkuWFpeWKm+OBl+OBpuOBj+OBoOOBleOBhDogIik7CiAgICBzY2FuZigiJWQiLCAmeCk7CiAgICBwcmludGYoInnjga7lgKTjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6ICIpOwogICAgc2NhbmYoIiVkIiwgJnkpOwoKICAgIGNhbCh4LCB5LCAmc3VtLCAmZGlmZiwgJm11bCwgJm1vZCk7CgogICAgcHJpbnRmKCJ4ICsgeSA9ICVkXG4iLCBzdW0pOwogICAgcHJpbnRmKCJ4IC0geSA9ICVkXG4iLCBkaWZmKTsKICAgIHByaW50ZigieCAqIHkgPSAlZFxuIiwgbXVsKTsKICAgIHByaW50ZigieCAvIHkgPSAlZFxuIiwgeCAvIHkpOwoKICAgIHJldHVybiAwOwp9