목록순열의순서 (1)
hara
BEAKJOON JAVA ALGORITHM #1722(순열의 순서)
https://www.acmicpc.net/problem/1722 import java.util.Scanner; public class a1722_2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int check = sc.nextInt(); long[] f = new long[num+1]; boolean[] c = new boolean[num+1]; f[0] = 1; for(int i=1; i
공부/알고리즘
2017. 8. 14. 14:53