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