Easy problems solved on 2024-11-12
This commit is contained in:
14
fallingsnow2.py
Normal file
14
fallingsnow2.py
Normal 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()
|
||||
Reference in New Issue
Block a user