[프로그래머스/Java] Lv.0 가위 바위 보
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import java.util.HashMap; class Solution { public String solution(String rsp) { String answer = ""; HashMap hm=new HashMap(); //가위바위보를 이기는 경우의 수를 담을 arraylist hm.put("0", "5"); hm.put("2", "0"); hm.put("5", "2"); for(int i=0; i