From 4b69de737e347866ed216676443bef9b790562ed Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:56:41 +0900 Subject: [PATCH] =?UTF-8?q?[20250317]=20BOJ=20/=20=EA=B3=A8=EB=93=9C4=20/?= =?UTF-8?q?=20=EA=B3=B5=EC=9C=A0=EA=B8=B0=20=EC=84=A4=EC=B9=98=20/=20?= =?UTF-8?q?=EC=9D=B4=EA=B0=95=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0\352\270\260 \354\204\244\354\271\230.md" | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 "lkhyun/202503/17 BOJ \352\263\250\353\223\2344 \352\263\265\354\234\240\352\270\260 \354\204\244\354\271\230.md" diff --git "a/lkhyun/202503/17 BOJ \352\263\250\353\223\2344 \352\263\265\354\234\240\352\270\260 \354\204\244\354\271\230.md" "b/lkhyun/202503/17 BOJ \352\263\250\353\223\2344 \352\263\265\354\234\240\352\270\260 \354\204\244\354\271\230.md" new file mode 100644 index 00000000..28cd153d --- /dev/null +++ "b/lkhyun/202503/17 BOJ \352\263\250\353\223\2344 \352\263\265\354\234\240\352\270\260 \354\204\244\354\271\230.md" @@ -0,0 +1,48 @@ +```java +import java.util.*; +import java.io.*; + +public class Main { + static int N; + static int C; + static int[] arr; + static int max; + public static void main(String[] args)throws Exception{ + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + StringTokenizer st = new StringTokenizer(br.readLine()); + N = Integer.parseInt(st.nextToken()); + C = Integer.parseInt(st.nextToken()); + arr = new int[N]; + for(int i=0;i=mid){ + cur = arr[i]; + cnt++; + } + } + if(cnt