結果

問題 No.1908 Assault for Keys
ユーザー ohanaohana
提出日時 2023-09-29 12:37:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 323 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 86,704 KB
実行使用メモリ 155,700 KB
最終ジャッジ日時 2023-09-29 12:37:34
合計ジャッジ時間 6,528 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,368 KB
testcase_01 AC 69 ms
71,200 KB
testcase_02 AC 282 ms
143,392 KB
testcase_03 AC 287 ms
143,532 KB
testcase_04 AC 304 ms
155,460 KB
testcase_05 AC 275 ms
143,376 KB
testcase_06 AC 306 ms
155,700 KB
testcase_07 AC 280 ms
143,324 KB
testcase_08 AC 270 ms
143,284 KB
testcase_09 AC 273 ms
143,252 KB
testcase_10 AC 271 ms
143,548 KB
testcase_11 AC 306 ms
155,492 KB
testcase_12 AC 323 ms
155,384 KB
testcase_13 AC 279 ms
143,308 KB
testcase_14 AC 303 ms
155,568 KB
testcase_15 AC 272 ms
143,580 KB
testcase_16 AC 71 ms
71,360 KB
testcase_17 AC 86 ms
75,524 KB
testcase_18 AC 301 ms
155,648 KB
testcase_19 AC 267 ms
143,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())

A = [list(input()) for i in range(n)]

A = list(zip(*A))

mn = float("inf")
for a in A:
    mn = min(mn, sum(map(lambda x: x == "o", a)))
print(n - mn + 1)
0