結果

問題 No.1908 Assault for Keys
ユーザー dangodango
提出日時 2023-06-25 14:58:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 78,112 KB
最終ジャッジ日時 2023-09-15 09:20:10
合計ジャッジ時間 3,875 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,236 KB
testcase_01 AC 72 ms
71,328 KB
testcase_02 AC 116 ms
77,880 KB
testcase_03 AC 113 ms
77,984 KB
testcase_04 AC 114 ms
77,924 KB
testcase_05 AC 116 ms
77,700 KB
testcase_06 AC 116 ms
77,988 KB
testcase_07 AC 115 ms
77,772 KB
testcase_08 AC 112 ms
78,056 KB
testcase_09 AC 114 ms
77,768 KB
testcase_10 AC 112 ms
77,872 KB
testcase_11 AC 115 ms
77,748 KB
testcase_12 AC 114 ms
77,804 KB
testcase_13 AC 116 ms
77,956 KB
testcase_14 AC 116 ms
77,944 KB
testcase_15 AC 115 ms
77,940 KB
testcase_16 AC 74 ms
71,368 KB
testcase_17 AC 88 ms
75,732 KB
testcase_18 AC 119 ms
78,112 KB
testcase_19 AC 99 ms
76,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
S = [input().strip() for _ in range(N)]
cnts = [0] * M
for s in S:
    for i, x in enumerate(s):
        if x == 'o':
            cnts[i] += 1
print(N - min(cnts) + 1)
0