import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
char[] sort = null;
while (a != 0) {
String s = scan.next();
sort = s.toCharArray();
Arrays.sort(sort);
for (int i = 0; i < sort.length; i++) {
System.out.print(sort[i] + " " );
}
System.out.println();
a--;
}
}
}
南阳理工OJ---ASCII码排序
最新推荐文章于 2024-11-16 17:49:09 发布