#include <stdio.h>
void swap(int *a, int *b) {
int w = *a;
*a = *b;
*b = w;
}
void sort(int *x, int *y) {
if (*x < *y) {
swap(x, y);
}
}
int main() {
int x, y;
sort(&x, &y);
printf("x: %d, y: %d\n", x
, y
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50ICphLCBpbnQgKmIpIHsKICAgIGludCB3ID0gKmE7CiAgICAqYSA9ICpiOwogICAgKmIgPSB3Owp9Cgp2b2lkIHNvcnQoaW50ICp4LCBpbnQgKnkpIHsKICAgIGlmICgqeCA8ICp5KSB7CiAgICAgICAgc3dhcCh4LCB5KTsgIAogICAgfQp9CgppbnQgbWFpbigpIHsKICAgIGludCB4LCB5OwoKICAgIHNjYW5mKCIlZCAlZCIsICZ4LCAmeSk7CgogICAgc29ydCgmeCwgJnkpOwoKICAgIHByaW50ZigieDogJWQsIHk6ICVkXG4iLCB4LCB5KTsKCiAgICByZXR1cm4gMDsKfQo=