⌨️
[AtCoder]ABC-311|B - Vacation Together
設問ページ
提出結果
def getIntMap():
return map(int, input().split())
def getStringListRow(N):
return [list(input()) for _ in range(N)]
def main():
n, d = getIntMap()
s = getStringListRow(n)
# x -> y transform
t = []
for i in range(d):
w = []
for v in s:
w.append(v[i])
t.append(w)
# count
c = 0
r = 0
for u in t:
if 'x' in u:
c = 0
else:
c += 1
r = max(r, c)
print(r)
if __name__ == "__main__":
main()
Discussion