結果

問題 No.1908 Assault for Keys
ユーザー 👑 H20H20
提出日時 2022-04-22 21:42:37
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 2,395 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 76,784 KB
最終ジャッジ日時 2023-09-06 08:03:31
合計ジャッジ時間 5,447 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,368 KB
testcase_01 AC 73 ms
71,276 KB
testcase_02 AC 111 ms
76,592 KB
testcase_03 AC 101 ms
76,784 KB
testcase_04 AC 107 ms
76,660 KB
testcase_05 AC 108 ms
76,672 KB
testcase_06 AC 108 ms
76,296 KB
testcase_07 AC 102 ms
76,660 KB
testcase_08 AC 101 ms
76,684 KB
testcase_09 AC 104 ms
76,644 KB
testcase_10 AC 102 ms
76,640 KB
testcase_11 AC 107 ms
76,732 KB
testcase_12 AC 106 ms
76,660 KB
testcase_13 AC 105 ms
76,596 KB
testcase_14 AC 107 ms
76,300 KB
testcase_15 AC 103 ms
76,604 KB
testcase_16 AC 73 ms
71,284 KB
testcase_17 AC 83 ms
75,340 KB
testcase_18 AC 105 ms
76,600 KB
testcase_19 AC 98 ms
76,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int, input().split())
S = []
for _ in range(N):
    S.append(input())
ans = 0
for i in range(M):
    cnt = 0
    for j in range(N):
        if S[j][i]=='x':
            cnt+=1
    ans = max(ans,cnt+1)
print(ans)

0