From f0ba6b8f873fc0fc833dd92b8a4557ff890e6522 Mon Sep 17 00:00:00 2001 From: suyeun84 <81475092+suyeun84@users.noreply.github.com> Date: Sun, 19 Oct 2025 23:31:31 +0900 Subject: [PATCH] =?UTF-8?q?[20251019]=20BOJ=20/=20G5=20/=20=ED=83=9C?= =?UTF-8?q?=EC=83=81=EC=9D=B4=EC=9D=98=20=ED=9B=88=EB=A0=A8=EC=86=8C=20?= =?UTF-8?q?=EC=83=9D=ED=99=9C=20/=20=EA=B9=80=EC=88=98=EC=97=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0\354\206\214 \354\203\235\355\231\234.md" | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 "suyeun84/202510/19 BOJ G5 \355\203\234\354\203\201\354\235\264\354\235\230 \355\233\210\353\240\250\354\206\214 \354\203\235\355\231\234.md" diff --git "a/suyeun84/202510/19 BOJ G5 \355\203\234\354\203\201\354\235\264\354\235\230 \355\233\210\353\240\250\354\206\214 \354\203\235\355\231\234.md" "b/suyeun84/202510/19 BOJ G5 \355\203\234\354\203\201\354\235\264\354\235\230 \355\233\210\353\240\250\354\206\214 \354\203\235\355\231\234.md" new file mode 100644 index 00000000..9a3ef6e5 --- /dev/null +++ "b/suyeun84/202510/19 BOJ G5 \355\203\234\354\203\201\354\235\264\354\235\230 \355\233\210\353\240\250\354\206\214 \354\203\235\355\231\234.md" @@ -0,0 +1,41 @@ +```java +import java.io.*; +import java.util.*; + +public class boj19951 { + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static StringTokenizer st; + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + static StringBuilder sb = new StringBuilder(); + + public static void main(String[] args) throws Exception { + nextLine(); + int N = nextInt(); + int M = nextInt(); + int[] arr = new int[N+1]; + nextLine(); + for(int i=1; i