From 75c7e9d7685292664787a90866e502074f824305 Mon Sep 17 00:00:00 2001 From: oncsr Date: Thu, 20 Mar 2025 12:00:59 +0900 Subject: [PATCH] =?UTF-8?q?[20250320]=20BOJ=20/=20G4=20/=20Stavitel=20/=20?= =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=A4=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- khj20006/202503/20 BOJ G4 Stavitel.md | 75 +++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 khj20006/202503/20 BOJ G4 Stavitel.md diff --git a/khj20006/202503/20 BOJ G4 Stavitel.md b/khj20006/202503/20 BOJ G4 Stavitel.md new file mode 100644 index 00000000..7ea38348 --- /dev/null +++ b/khj20006/202503/20 BOJ G4 Stavitel.md @@ -0,0 +1,75 @@ +```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 = new StringTokenizer(""); + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static String nextToken() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return st.nextToken(); + } + static int nextInt() throws Exception { return Integer.parseInt(nextToken()); } + static long nextLong() throws Exception { return Long.parseLong(nextToken()); } + static double nextDouble() throws Exception { return Double.parseDouble(nextToken()); } + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + + static int K; + static int[] A, B; + + public static void main(String[] args) throws Exception { + + for(int T=nextInt();T-->0;) { + + ready(); + solve(); + } + + bwEnd(); + + } + + static void ready() throws Exception{ + + K = nextInt(); + A = new int[K]; + B = new int[K]; + for(int i=0;i