목록모든순열 (1)
hara
BEAKJOON JAVA ALGORITHM #10974(모든순열)
https://www.acmicpc.net/problem/10974 import java.util.Scanner; public class a10974 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = new int[num]; for(int i=0 ; i= arr[i]) { i--; } if(i = i && arr[j]
공부/알고리즘
2017. 8. 9. 10:54