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