From 8223deb9cdc53b1649ac876fafae7be72a81badb Mon Sep 17 00:00:00 2001 From: SSUM <116950962+ssum21@users.noreply.github.com> Date: Sun, 2 Nov 2025 01:56:19 +0900 Subject: [PATCH] =?UTF-8?q?Title:=20=EA=B0=95=EB=A0=A5=ED=95=9C=20?= =?UTF-8?q?=ED=8F=AD=EB=B0=9C,=20Time:=2047ms,=20Memory:=2016MB,=20Status:?= =?UTF-8?q?=20Passed=20-=20Codetree?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 251102/강력한 폭발/strong-explosion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/251102/강력한 폭발/strong-explosion.py b/251102/강력한 폭발/strong-explosion.py index 76383e5..b020634 100644 --- a/251102/강력한 폭발/strong-explosion.py +++ b/251102/강력한 폭발/strong-explosion.py @@ -16,7 +16,7 @@ def bomb_type2(x, y): for dx, dy in [(1,0), (-1, 0),(0, 1),(0,-1)]: nx = x + dx ny = y + dy - if 0 <= nx <= n and 0 <= ny < n: + if 0 <= nx < n and 0 <= ny < n: coords.add((nx, ny)) return coords @@ -25,7 +25,7 @@ def bomb_type3(x, y): for dx, dy in [(-1, 1), (-1, -1), (1, 1), (1, -1)]: nx = x + dx ny = y + dy - if 0 <= nx <= n and 0 <= ny < n: + if 0 <= nx < n and 0 <= ny < n: coords.add((nx, ny)) return coords