주사위 게임 3

· Algorithm
언어_자바 프로그래머스_주사위 게임 3 주사위 게임 3이 여러 가정을 생각하는 게 어려웠다 😢 다른 사람들 풀이를 보고 이해하고 풀이 없이 코드를 짜는 방식으로 이번에 진행했다. public class DiceGame3 { public static void main(String[] args) { DiceSolution s = new DiceSolution(); int a = 4; int b = 1; int c = 4; int d = 4; s.diceSolution(a,b,c,d); } } class DiceSolution{ public int diceSolution(int a, int b, int c, int d){ int[] dice = {a,b,c,d}; Arrays.sort(dice); int an..
31daylee
'주사위 게임 3' 태그의 글 목록