From 7c372fbc0011f30b50aec45d5a9379e9f1ba5b5c Mon Sep 17 00:00:00 2001 From: JaeIn1 <97165077+JaeIn1@users.noreply.github.com> Date: Thu, 31 Jul 2025 07:14:31 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[20250731]=20BAJ=20/=20=EA=B3=A8=EB=93=9C5?= =?UTF-8?q?=20/=20=EB=B9=97=EB=AC=BC=20/=20=EC=9D=B4=EC=9E=AC=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../31 BAJ \353\271\227\353\254\274.md" | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 "JaeIn/202507/31 BAJ \353\271\227\353\254\274.md" diff --git "a/JaeIn/202507/31 BAJ \353\271\227\353\254\274.md" "b/JaeIn/202507/31 BAJ \353\271\227\353\254\274.md" new file mode 100644 index 0000000..efcfc12 --- /dev/null +++ "b/JaeIn/202507/31 BAJ \353\271\227\353\254\274.md" @@ -0,0 +1,19 @@ +```python +H , W = map(int, input().split()) +blocks = list(map(int, input().split())) + +sum = 0 + +for i in range(1 ,len(blocks) - 1): + left = max(blocks[:i]) + right = max(blocks[i:]) + + rain = min(left ,right) - blocks[i] + + if rain > 0: + sum += rain + + +print(sum) + +``` From c94c17604b74043fe55def318854dc7980c170ba Mon Sep 17 00:00:00 2001 From: JaeIn1 Date: Mon, 4 Aug 2025 22:29:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[20250804]=20BAJ=20/=20=EA=B3=A8=EB=93=9C4?= =?UTF-8?q?=20/=20=EA=B0=80=EB=A5=B4=EC=B9=A8=20/=20=EC=9D=B4=EC=9E=AC?= =?UTF-8?q?=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "JaeIn/202508/04 BAJ \352\260\200\353\245\264\354\271\250.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "JaeIn/202508/04 BAJ \352\260\200\353\245\264\354\271\250.md" diff --git "a/JaeIn/202508/04 BAJ \352\260\200\353\245\264\354\271\250.md" "b/JaeIn/202508/04 BAJ \352\260\200\353\245\264\354\271\250.md" new file mode 100644 index 0000000..e69de29