結果

問題 No.709 優勝可能性
コンテスト
ユーザー aporo_eeic
提出日時 2018-07-06 02:00:33
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
実行時間 -
コード長 547 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 432 ms
コンパイル使用メモリ 20,952 KB
実行使用メモリ 36,428 KB
最終ジャッジ日時 2026-03-21 19:29:22
合計ジャッジ時間 29,786 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 TLE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N, M = list(map(int, input().strip().split(" ")))

winner = [set() for m in range(M)]
max_paramers = [0 for m in range(M)]

for n in range(N):
    new_challenger = list(map(int, input().strip().split(" ")))
    for m in range(M):
        if(max_paramers[m] < new_challenger[m]):
            winner[m] = set([n])
            max_paramers[m] = new_challenger[m]
        elif(max_paramers[m] == new_challenger[m]):
            winner[m].add(n)
    candidates = set()
    for w in winner:
        candidates = candidates | w
    print(len(candidates))
0