結果

問題 No.1908 Assault for Keys
ユーザー DrDrpilotDrDrpilot
提出日時 2022-04-30 13:15:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 197 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 9,220 KB
最終ジャッジ日時 2023-09-12 05:59:04
合計ジャッジ時間 5,266 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 16 ms
7,856 KB
testcase_02 AC 181 ms
9,136 KB
testcase_03 AC 170 ms
9,200 KB
testcase_04 AC 167 ms
9,108 KB
testcase_05 AC 177 ms
9,164 KB
testcase_06 AC 179 ms
9,060 KB
testcase_07 AC 173 ms
9,220 KB
testcase_08 AC 165 ms
9,032 KB
testcase_09 AC 171 ms
9,136 KB
testcase_10 AC 167 ms
9,040 KB
testcase_11 AC 182 ms
9,160 KB
testcase_12 AC 174 ms
9,136 KB
testcase_13 AC 183 ms
9,056 KB
testcase_14 AC 176 ms
9,056 KB
testcase_15 AC 174 ms
9,060 KB
testcase_16 AC 16 ms
7,848 KB
testcase_17 AC 17 ms
7,864 KB
testcase_18 AC 197 ms
9,216 KB
testcase_19 AC 155 ms
9,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
s=[input() for _ in range(n)]
ans=0
for j in range(m):
    tmp=0
    for i in range(n):
        if s[i][j]=='x':
            tmp+=1
    ans=max(tmp,ans)
print(ans+1)
0