Skip to content

Instantly share code, notes, and snippets.

@modos
Created May 10, 2024 19:04
Show Gist options
  • Save modos/aef29433ad481d30b5e42bedeaba6811 to your computer and use it in GitHub Desktop.
Save modos/aef29433ad481d30b5e42bedeaba6811 to your computer and use it in GitHub Desktop.
پرگوشت
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