counting 정렬을 미리 만들어놓고, 그걸 복붙하여 개량해서 풀었습니다. counting 정렬 관련은 다음 글을 참고하세요. https://mewtwo.tistory.com/121 import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str1 = br.readLine(); String str2 = br.readLine(); String[] arr1 = str1..