import java.io.*; import java.util.*; public class Main { static BufferedReader br; static int N; static int[] A; static char[] operators; static int plus, minus, multiply, divide; static int max = Integer.MIN_VALUE, min = Integer.MAX_VALUE; static int sum = 0; public static void input() throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); N = Integer.parseInt(br.readL..
import java.io.*; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { static int N; static int ans = 0; static StringTokenizer st; public static void recur(int[] A, int depth, int n) { //종료조건 if(depth == N) { ans = Math.max(ans, calculate(A, n)); return; } //재귀호출 for(int i = depth; i < N; i++) { swap(A, i ,depth); recur(A, depth+1, n); swap(A, i, depth); } } p..