#include<stdio.h>
void changes(char a, char b, char c);
int main(void)
char a;
char b, c;
while (scanf_s("%c%c%c", &a,1, &b,1 ,&c,1)) {
getchar();
changes(a, b, c);
}
}
void changes(char a, char b, char c) {
char max, mid, min;
max = a;
if (max < b) {
max = b;
}
if (max < c) {
max = c;
}
min = a;
if (min > b) {
min = b;
}
if (min > c) {
min = c;
}
mid = a + b + c - max - min;
printf("%c %c %c", min, mid, max);
}
杭州电子科大ACM题
最新推荐文章于 2020-12-14 19:55:55 发布