yetanothercrossingproblem.py - for i in range(int(input():...

This preview shows page 1 out of 1 page.

The preview shows page 1 - 1 out of 1 page.
for i in range(int(input())):row,column=[int(x) for x in input().split()]grid=[list(input()) for x in range(row)]rowcount=[0]*rowcolumncount=[0]*columnfor i in range(row):for j in range(column):if grid[i][j]=="*":rowcount[i]+=1columncount[j]+=1
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
BUCAO
Tags

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture