結果

問題 No.1908 Assault for Keys
ユーザー lilictakalilictaka
提出日時 2022-04-22 23:01:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 86,640 KB
最終ジャッジ日時 2023-09-06 09:45:17
合計ジャッジ時間 4,340 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,232 KB
testcase_01 AC 77 ms
71,192 KB
testcase_02 AC 152 ms
86,640 KB
testcase_03 AC 143 ms
86,172 KB
testcase_04 AC 145 ms
86,064 KB
testcase_05 AC 149 ms
86,148 KB
testcase_06 AC 156 ms
86,324 KB
testcase_07 AC 150 ms
86,212 KB
testcase_08 AC 146 ms
86,252 KB
testcase_09 AC 152 ms
86,212 KB
testcase_10 AC 140 ms
84,636 KB
testcase_11 AC 159 ms
86,372 KB
testcase_12 AC 152 ms
86,216 KB
testcase_13 AC 158 ms
86,416 KB
testcase_14 AC 149 ms
86,384 KB
testcase_15 AC 152 ms
86,268 KB
testcase_16 AC 73 ms
71,184 KB
testcase_17 AC 87 ms
75,956 KB
testcase_18 AC 152 ms
86,300 KB
testcase_19 AC 135 ms
84,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split()) 
S = []
def tmp(x):
    if x == 'o':
        return 1
    else:
        return 0
for _ in range(N):
    s = list(map(tmp,list(input())))
    S.append(s)
cnt = [0 for _ in range(M)]
for h in range(N):
    for w in range(M):
        cnt[w] += S[h][w]
ans = 0
for w in range(M):
    k = N-cnt[w] + 1
    ans = max(k,ans)
print(ans)


0