4358
-
[BOJ - Silver II] 생태학 / ⭕Algorithm/BOJ 2024. 8. 19. 20:55
생태학 1. 제출 코드 (15분 21초 / 자료구조(Map))import java.util.*;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Map map = new HashMap(); String input; int cnt = 0; while(sc.hasNext()) { input = sc.nextLine(); map.put(input, map.getOrDefault(input, 0) + 1); cnt++; } List key..