From f4b89dc61d7806252c9f6f59f3e1085fc326b9aa Mon Sep 17 00:00:00 2001 From: oncsr Date: Mon, 23 Jun 2025 23:03:26 +0900 Subject: [PATCH] =?UTF-8?q?[20250623]=20BOJ=20/=20P3=20/=20System=20Call?= =?UTF-8?q?=20/=20=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/202506/23 BOJ P3 System Call.md | 113 +++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 khj20006/202506/23 BOJ P3 System Call.md diff --git a/khj20006/202506/23 BOJ P3 System Call.md b/khj20006/202506/23 BOJ P3 System Call.md new file mode 100644 index 00000000..d4cb8457 --- /dev/null +++ b/khj20006/202506/23 BOJ P3 System Call.md @@ -0,0 +1,113 @@ +```java +import java.util.*; +import java.io.*; + +class IOController { + BufferedReader br; + BufferedWriter bw; + StringTokenizer st; + + public IOController() { + br = new BufferedReader(new InputStreamReader(System.in)); + bw = new BufferedWriter(new OutputStreamWriter(System.out)); + st = new StringTokenizer(""); + } + + String nextLine() throws Exception { + String line = br.readLine(); + st = new StringTokenizer(line); + return line; + } + + String nextToken() throws Exception { + while (!st.hasMoreTokens()) nextLine(); + return st.nextToken(); + } + + int nextInt() throws Exception { + return Integer.parseInt(nextToken()); + } + + long nextLong() throws Exception { + return Long.parseLong(nextToken()); + } + + double nextDouble() throws Exception { + return Double.parseDouble(nextToken()); + } + + void close() throws Exception { + bw.flush(); + bw.close(); + } + + void write(String content) throws Exception { + bw.write(content); + } + +} + +public class Main { + + static IOController io; + + // + + static int N; + static long[] F; + static long T; + + public static void main(String[] args) throws Exception { + + io = new IOController(); + + init(); + solve(); + + io.close(); + + } + + public static void init() throws Exception { + + N = io.nextInt(); + F = new long[N]; + for(int i=0;i