[프로그래머스] 의상
🚨문제 설명💡푼 방법import java.util.HashMap;class Solution { public int solution(String[][] clothes) { int answer = 0; HashMap map = new HashMap(); for(int i = 0; i 1){ for(String cloth : map.keySet()){ w = map.get(cloth); w *= map.get(cloth); } answer += w; }else{ answer +..
- Coding-test/Java-Algorithm
- · 2026. 7. 1.