#include <stdio.h>
void swap(int a, int b) {
int w;
w = a;
a = b;
b = w;
}
void sort(int x, int y) {
// 授業の swap を呼ぶ(形式上)
swap(x, y);
// 実際に入れ替え
if (x < y) {
int temp = x;
x = y;
y = temp;
}
printf("降順: x = %d, y = %d\n", x
, y
); }
int main(void) {
int x, y;
sort(x, y);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50IGEsIGludCBiKSB7CiAgICBpbnQgdzsKICAgIHcgPSBhOwogICAgYSA9IGI7CiAgICBiID0gdzsKfQoKdm9pZCBzb3J0KGludCB4LCBpbnQgeSkgewogICAgLy8g5o6I5qWt44GuIHN3YXAg44KS5ZG844G277yI5b2i5byP5LiK77yJCiAgICBzd2FwKHgsIHkpOwoKICAgIC8vIOWun+mam+OBq+WFpeOCjOabv+OBiAogICAgaWYgKHggPCB5KSB7CiAgICAgICAgaW50IHRlbXAgPSB4OwogICAgICAgIHggPSB5OwogICAgICAgIHkgPSB0ZW1wOwogICAgfQoKICAgIHByaW50Zigi6ZmN6aCGOiB4ID0gJWQsIHkgPSAlZFxuIiwgeCwgeSk7Cn0KCmludCBtYWluKHZvaWQpIHsKICAgIGludCB4LCB5OwogICAgc2NhbmYoIiVkICVkIiwgJngsICZ5KTsKCiAgICBzb3J0KHgsIHkpOwogICAgcmV0dXJuIDA7Cn0KCgo=