結果

問題 No.1908 Assault for Keys
ユーザー ohanaohana
提出日時 2023-09-29 12:30:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 155,748 KB
最終ジャッジ日時 2023-09-29 12:30:50
合計ジャッジ時間 6,945 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,416 KB
testcase_01 AC 69 ms
70,944 KB
testcase_02 AC 272 ms
143,300 KB
testcase_03 AC 259 ms
143,536 KB
testcase_04 AC 291 ms
155,476 KB
testcase_05 AC 275 ms
143,264 KB
testcase_06 AC 287 ms
155,408 KB
testcase_07 AC 258 ms
143,496 KB
testcase_08 AC 258 ms
143,452 KB
testcase_09 AC 265 ms
143,264 KB
testcase_10 AC 273 ms
143,440 KB
testcase_11 AC 291 ms
155,748 KB
testcase_12 AC 299 ms
155,560 KB
testcase_13 AC 270 ms
143,348 KB
testcase_14 AC 304 ms
155,512 KB
testcase_15 AC 260 ms
143,264 KB
testcase_16 AC 71 ms
71,288 KB
testcase_17 WA -
testcase_18 AC 282 ms
155,480 KB
testcase_19 AC 258 ms
143,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

A = list(zip(*A))

mn = m
for a in A:
    mn = min(mn, sum(map(lambda x: x == "o", a)))

print(n - mn + 1)
0