diff --git "a/khj20006/202502/10 BOJ S3 \354\271\234\352\265\254\354\231\200 \353\260\260\353\213\254\355\225\230\352\270\260.md" "b/khj20006/202502/10 BOJ S3 \354\271\234\352\265\254\354\231\200 \353\260\260\353\213\254\355\225\230\352\270\260.md" new file mode 100644 index 00000000..79aa4159 --- /dev/null +++ "b/khj20006/202502/10 BOJ S3 \354\271\234\352\265\254\354\231\200 \353\260\260\353\213\254\355\225\230\352\270\260.md" @@ -0,0 +1,81 @@ +```java + +import java.util.*; +import java.io.*; + +class Main { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + static long nextLong() {return Long.parseLong(st.nextToken());} + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + static int T, N, PA, PB; + static long[] A; + + public static void main(String[] args) throws Exception { + + ready(); + //solve(); + + bwEnd(); + } + + static void ready() throws Exception{ + + T = Integer.parseInt(br.readLine()); + while(T-- > 0) { + nextLine(); + N = nextInt(); + PA = nextInt(); + PB = nextInt(); + if(PA > PB) { + int temp = PA; + PA = PB; + PB = temp; + } + A = new long[N]; + nextLine(); + for(int i=0;i