[백준] 1181번: 단어 정렬 - JAVA
·
알고리즘
[작성일: 2023. 10. 23] https://www.acmicpc.net/problem/1181 풀이import java.util.ArrayList;import java.util.Collections;import java.util.HashSet;import java.util.List;import java.util.Scanner;import java.util.Set;public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String[] strArr = new String..