結果

問題 No.1908 Assault for Keys
ユーザー ikomaikoma
提出日時 2022-04-22 21:36:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 76,700 KB
最終ジャッジ日時 2023-09-06 07:56:14
合計ジャッジ時間 3,496 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,356 KB
testcase_01 AC 74 ms
71,468 KB
testcase_02 AC 97 ms
76,500 KB
testcase_03 AC 88 ms
76,588 KB
testcase_04 AC 91 ms
76,572 KB
testcase_05 AC 92 ms
76,516 KB
testcase_06 AC 93 ms
76,700 KB
testcase_07 AC 96 ms
76,532 KB
testcase_08 AC 90 ms
76,588 KB
testcase_09 AC 95 ms
76,532 KB
testcase_10 AC 91 ms
76,168 KB
testcase_11 AC 97 ms
76,588 KB
testcase_12 AC 93 ms
76,528 KB
testcase_13 AC 96 ms
76,460 KB
testcase_14 AC 93 ms
76,588 KB
testcase_15 AC 95 ms
76,224 KB
testcase_16 AC 74 ms
71,440 KB
testcase_17 AC 74 ms
71,380 KB
testcase_18 AC 96 ms
76,528 KB
testcase_19 AC 86 ms
76,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,M=map(int,input().split())
S=[input().strip() for _ in range(N)]

cnt=[0]*M
for s in S:
    for i in range(M):
        if s[i]=='o':
            cnt[i]+=1
print(N-min(cnt)+1)
0