주사위던지기 썸네일형 리스트형 1175 : 주사위 던지기2 import java.util.Scanner; public class Main { static int n, m; static int arr[] = new int[101]; static StringBuilder sb; public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); sb = new StringBuilder(); n = scan.nextInt(); m = scan.nextInt(); dice(1, 0); System.out.print(sb); } private static void dice(int level, int sum) { // TODO Auto-.. 더보기 1169 : 주사위 던지기1 import java.util.Scanner; public class Main { static int n, m; static int arr[] = new int [101]; public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); n = scan.nextInt(); m = scan.nextInt(); if (m == 1) { dice1(1); } else if (m == 2) { dice2(1, 1); } else if (m == 3) { dice3(1); } } private static void dice1(int level) { int i; if (lev.. 더보기 이전 1 다음