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)