結果

問題 No.1908 Assault for Keys
ユーザー playerplayer
提出日時 2024-01-12 03:15:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 76,260 KB
最終ジャッジ日時 2024-01-12 03:15:08
合計ジャッジ時間 3,920 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,460 KB
testcase_01 AC 39 ms
53,460 KB
testcase_02 AC 79 ms
76,132 KB
testcase_03 AC 69 ms
73,572 KB
testcase_04 AC 72 ms
73,956 KB
testcase_05 AC 79 ms
76,132 KB
testcase_06 AC 83 ms
76,260 KB
testcase_07 AC 78 ms
74,340 KB
testcase_08 AC 70 ms
73,440 KB
testcase_09 AC 84 ms
76,132 KB
testcase_10 AC 73 ms
73,312 KB
testcase_11 AC 82 ms
76,132 KB
testcase_12 AC 81 ms
76,132 KB
testcase_13 AC 88 ms
76,140 KB
testcase_14 AC 81 ms
76,132 KB
testcase_15 AC 79 ms
74,340 KB
testcase_16 AC 40 ms
53,460 KB
testcase_17 AC 53 ms
63,192 KB
testcase_18 AC 86 ms
76,132 KB
testcase_19 AC 61 ms
70,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())

from collections import *
d = defaultdict(int)

for _ in range(n):
    s = input()
    for i in range(m):
        if s[i] == "x":
            d[i] += 1

ans = 0
for i in range(n):
    ans = max(ans, d[i]+1)

print(ans)
0