結果

問題 No.1908 Assault for Keys
ユーザー tassei903tassei903
提出日時 2022-04-22 21:21:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 537 bytes
コンパイル時間 1,503 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 76,612 KB
最終ジャッジ日時 2023-09-06 07:37:07
合計ジャッジ時間 3,520 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,444 KB
testcase_01 AC 69 ms
71,336 KB
testcase_02 AC 96 ms
76,432 KB
testcase_03 AC 88 ms
76,400 KB
testcase_04 AC 93 ms
76,472 KB
testcase_05 AC 93 ms
76,448 KB
testcase_06 AC 96 ms
76,524 KB
testcase_07 AC 91 ms
76,552 KB
testcase_08 AC 90 ms
76,592 KB
testcase_09 AC 91 ms
76,404 KB
testcase_10 AC 86 ms
76,612 KB
testcase_11 AC 97 ms
76,460 KB
testcase_12 AC 95 ms
76,516 KB
testcase_13 AC 93 ms
76,416 KB
testcase_14 AC 95 ms
76,524 KB
testcase_15 AC 91 ms
76,460 KB
testcase_16 AC 70 ms
71,348 KB
testcase_17 AC 71 ms
71,288 KB
testcase_18 AC 94 ms
76,540 KB
testcase_19 AC 85 ms
76,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

n,m = na()
a = [input() for i in range(n)]
ans = 0
for i in range(m):
    s = 0
    for j in range(n):
        if a[j][i] == "x":
            s += 1
    ans = max(ans, s+1)
print(ans)
0