From b01af57450b72ecc402ca8437ab05581fe54f15f Mon Sep 17 00:00:00 2001 From: LiiNi-coder <97495437+LiiNi-coder@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:54:05 +0900 Subject: [PATCH] =?UTF-8?q?[20250808]=20BOJ=20/=20G5=20/=20=EB=B9=97?= =?UTF-8?q?=EB=AC=BC=20/=20=EC=9D=B4=EC=9D=B8=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../08 BOJ \353\271\227\353\254\274.md" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "LiiNi-coder/202508/08 BOJ \353\271\227\353\254\274.md" diff --git "a/LiiNi-coder/202508/08 BOJ \353\271\227\353\254\274.md" "b/LiiNi-coder/202508/08 BOJ \353\271\227\353\254\274.md" new file mode 100644 index 00000000..29e25495 --- /dev/null +++ "b/LiiNi-coder/202508/08 BOJ \353\271\227\353\254\274.md" @@ -0,0 +1,36 @@ +```java +import java.io.*; +import java.util.*; +public class Main { + private static BufferedReader br; + private static int H, W; + private static int[] Walls; + private static StringTokenizer st; + public static void main(String[] args) throws IOException { + br = new BufferedReader(new InputStreamReader(System.in)); + String[] temp = br.readLine().split(" "); + H = Integer.parseInt(temp[0]); + W = Integer.parseInt(temp[1]); + + st = new StringTokenizer(br.readLine()); + int answer = 0; + int sum = 0; + + int leftH = Integer.parseInt(st.nextToken()); + for(int w = 1; w