#include <stdio.h>
void scanfAll(int *x, int *y, int *z) {
scanf("%d %d %d", x
, y
, z
); }
void swap(int *x, int *y) {
int temp = *x;
*x = *y;
*y = temp;
}
void ascend(int *x, int *y, int *z) {
if (*x > *y) {
swap(x, y);
}
if (*x > *z) {
swap(x, z);
}
if (*y > *z) {
swap(y, z);
}
}
int main() {
int a, b, c;
scanfAll(&a, &b, &c);
ascend(&a, &b, &c);
printf("昇順: a=%d, b=%d, c=%d\n", a
, b
, c
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNjYW5mQWxsKGludCAqeCwgaW50ICp5LCBpbnQgKnopIHsKICAgIHNjYW5mKCIlZCAlZCAlZCIsIHgsIHksIHopOwp9Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCB0ZW1wID0gKng7CiAgICAqeCA9ICp5OwogICAgKnkgPSB0ZW1wOwp9Cgp2b2lkIGFzY2VuZChpbnQgKngsIGludCAqeSwgaW50ICp6KSB7CiAgICBpZiAoKnggPiAqeSkgewogICAgICAgIHN3YXAoeCwgeSk7CiAgICB9CiAgICBpZiAoKnggPiAqeikgewogICAgICAgIHN3YXAoeCwgeik7CiAgICB9CiAgICBpZiAoKnkgPiAqeikgewogICAgICAgIHN3YXAoeSwgeik7CiAgICB9Cn0KCmludCBtYWluKCkgewogICAgaW50IGEsIGIsIGM7CiAgICBzY2FuZkFsbCgmYSwgJmIsICZjKTsKICAgIGFzY2VuZCgmYSwgJmIsICZjKTsKICAgIHByaW50Zigi5piH6aCGOiBhPSVkLCBiPSVkLCBjPSVkXG4iLCBhLCBiLCBjKTsKICAgIHJldHVybiAwOwp9Cg==