結果
問題 |
No.709 優勝可能性
|
ユーザー |
👑 ![]() |
提出日時 | 2021-02-10 01:36:29 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 462 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 82,464 KB |
実行使用メモリ | 156,680 KB |
最終ジャッジ日時 | 2024-07-07 06:40:33 |
合計ジャッジ時間 | 7,710 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 11 TLE * 2 -- * 9 |
ソースコード
import sys from collections import defaultdict input=sys.stdin.readline write=sys.stdout.write N,M=map(int,input().split()) Set=[set()]*M Max=[0]*M Z=[0]*N for i in range(N): R=list(map(int,input().split())) for k in range(M): if R[k]==Max[k]: Set[k].add(i) elif R[k]>Max[k]: Max[k]=R[k] Set[k]={i} X=set() for k in range(M): X|=Set[k] Z[i]=len(X) write("\n".join(map(str,Z)))