import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
StringBuffer sb = null;
while(input.hasNext()){
sb = new StringBuffer(input.next());
char []LetterSet = new char[3];
for(int i = 0; i < sb.length(); i++){
LetterSet[i] = sb.charAt(i);
}
for(int i = 0; i < 2; i++){
for(int j = 2;j > i; j--) {
if (LetterSet[j] > LetterSet[j - 1]) {
char temp = LetterSet[j];
LetterSet[j] = LetterSet[j - 1];
LetterSet[j - 1] = temp;
}
}
}
System.out.printf("%c %c %c\r\n",LetterSet[2], LetterSet[1], LetterSet[0]);
}
}
}
求你們,在自己代碼裡寫測試點的時候送出一定要删掉,我吐了