結果

問題 No.1908 Assault for Keys
ユーザー ThetaTheta
提出日時 2022-11-02 13:25:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 24,084 KB
最終ジャッジ日時 2023-09-24 03:10:11
合計ジャッジ時間 3,602 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,868 KB
testcase_01 AC 13 ms
7,832 KB
testcase_02 AC 80 ms
24,076 KB
testcase_03 AC 72 ms
24,056 KB
testcase_04 AC 73 ms
23,972 KB
testcase_05 AC 73 ms
24,068 KB
testcase_06 AC 74 ms
23,968 KB
testcase_07 AC 77 ms
24,000 KB
testcase_08 AC 72 ms
23,952 KB
testcase_09 AC 72 ms
24,008 KB
testcase_10 AC 72 ms
23,984 KB
testcase_11 AC 73 ms
23,952 KB
testcase_12 AC 74 ms
24,076 KB
testcase_13 AC 72 ms
23,980 KB
testcase_14 AC 72 ms
24,040 KB
testcase_15 AC 73 ms
23,948 KB
testcase_16 AC 14 ms
7,716 KB
testcase_17 AC 14 ms
8,204 KB
testcase_18 AC 75 ms
23,968 KB
testcase_19 AC 72 ms
24,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N, M = map(int, input().split())
    keys = [list(input()) for _ in range(N)]
    keys_t = [list(elm) for elm in zip(*keys)]
    not_have_keys = list(map(lambda elm: elm.count("x"), keys_t))
    print(max(not_have_keys)+1)


if __name__ == "__main__":
    main()
0