結果

問題 No.709 優勝可能性
ユーザー aporo_eeic
提出日時 2018-07-06 02:00:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 547 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,888 KB
最終ジャッジ日時 2024-07-01 02:42:51
合計ジャッジ時間 6,227 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other AC * 10 TLE * 1 -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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