From b58f0998dbcf24be0b0177c0570b53309a29089d Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Wed, 15 Nov 2023 22:20:01 +0100 Subject: [PATCH] EpigDanceOff --- epigdanceoff.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 epigdanceoff.py diff --git a/epigdanceoff.py b/epigdanceoff.py new file mode 100644 index 0000000..b7bf066 --- /dev/null +++ b/epigdanceoff.py @@ -0,0 +1,17 @@ +n, m = map(int, input().split()) + +lines = [] +for _ in range(n): + lines.append(input()) + +t = 1 +for col in range(m): + new_frame = True + for row in lines: + if row[col] != "_": + new_frame = False + break + if new_frame: + t += 1 + +print(t)