HDU/2000/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

23 lines
432 B
C

#include <stdio.h>
int main(void){
char input[3] = {'\0'},temp = '\0';
while(scanf("%c%c%c",&input[0],&input[1],&input[2]) == 3){
int if_cge = 1,i = 0;
while(if_cge){
if_cge = 0;
for(i = 0; i<2; i++){
if(input[i] > input[i+1]){
temp = input[i+1];
input[i+1] = input[i];
input[i] = temp;
if_cge = 1;
}
}
}
printf("%c %c %c\n",input[0],input[1],input[2]);
getchar();
}
return 0;
}