728x90 순열1 java 순열, 중복 순열, 조합, 중복 조합 import java.util.Arrays; import java.util.Scanner; import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader.Array; public class DiceTest { static int N,numbers[],totalCnt; static boolean[] isSelected; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N= sc.nextInt(); int M=sc.nextInt(); numbers = new int[N]; totalCnt = 0; switch(M) { case 1 : // 중복순열 dice.. 2021. 8. 3. 이전 1 다음 728x90