Easy problems solved on 2024-11-12

This commit is contained in:
2024-11-12 22:53:08 +01:00
parent 799f2283c7
commit 020015474f
21 changed files with 93 additions and 0 deletions

14
fallingsnow2.py Normal file
View File

@@ -0,0 +1,14 @@
n, m = map(int, input().split())
snows = [
0,
] * m
for _ in range(n):
for i, x in enumerate(input()):
snows[i] += 1 if x == "S" else 0
for r in range(n):
for c in range(m):
print("S" if snows[c] >= n - r else ".", end="")
print()