結果

問題 No.1908 Assault for Keys
ユーザー titan23titan23
提出日時 2022-06-24 20:53:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 488 ms
コンパイル使用メモリ 82,108 KB
実行使用メモリ 68,740 KB
最終ジャッジ日時 2024-04-26 04:10:25
合計ジャッジ時間 3,206 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,068 KB
testcase_01 AC 38 ms
52,420 KB
testcase_02 AC 65 ms
68,584 KB
testcase_03 AC 63 ms
68,340 KB
testcase_04 AC 63 ms
66,324 KB
testcase_05 AC 63 ms
68,404 KB
testcase_06 AC 64 ms
66,784 KB
testcase_07 AC 61 ms
67,628 KB
testcase_08 AC 61 ms
68,016 KB
testcase_09 AC 62 ms
67,144 KB
testcase_10 AC 61 ms
67,556 KB
testcase_11 AC 64 ms
67,540 KB
testcase_12 AC 63 ms
68,080 KB
testcase_13 AC 64 ms
67,444 KB
testcase_14 AC 63 ms
67,412 KB
testcase_15 AC 61 ms
68,740 KB
testcase_16 AC 39 ms
52,956 KB
testcase_17 AC 40 ms
53,760 KB
testcase_18 AC 65 ms
66,636 KB
testcase_19 AC 55 ms
65,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

n, m = map(int, input().split())
S = [input() for _ in range(n)]

ans = 0
for j in range(m):
  cnt = 0
  for i in range(n):
    if S[i][j] == 'x':
      cnt += 1
  ans = max(ans, cnt)
print(ans + 1)
0