Created
May 10, 2024 19:04
-
-
Save modos/aef29433ad481d30b5e42bedeaba6811 to your computer and use it in GitHub Desktop.
پرگوشت
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n, m = map(int, input().split()) | |
dish1 = [input() for _ in range(n)] | |
dish2 = [input() for _ in range(n)] | |
meat_count_dish1 = sum(row.count('*') for row in dish1) | |
meat_count_dish2 = sum(row.count('*') for row in dish2) | |
print(meat_count_dish1, meat_count_dish2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment