목록10972 (1)
hara
BEAKJOON JAVA ALGORITHM #10972(다음순열)
https://www.acmicpc.net/problem/10972 import java.util.Scanner; public class a10972 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = Integer.parseInt(sc.nextLine()); int[] arr = new int[num]; for(int i=0 ; i0 && arr[i-1] >= arr[i]) { i--; } if(i = i && arr[j]
공부/알고리즘
2017. 8. 9. 10:51