結果
問題 | No.709 優勝可能性 |
ユーザー | 👑 Kazun |
提出日時 | 2021-02-10 01:36:29 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 462 bytes |
コンパイル時間 | 404 ms |
コンパイル使用メモリ | 87,016 KB |
実行使用メモリ | 129,564 KB |
最終ジャッジ日時 | 2023-09-21 12:54:53 |
合計ジャッジ時間 | 9,061 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 94 ms
75,916 KB |
testcase_01 | AC | 95 ms
71,668 KB |
testcase_02 | AC | 96 ms
71,464 KB |
testcase_03 | AC | 96 ms
71,672 KB |
testcase_04 | AC | 95 ms
71,652 KB |
testcase_05 | AC | 97 ms
71,464 KB |
testcase_06 | AC | 95 ms
71,532 KB |
testcase_07 | AC | 94 ms
71,464 KB |
testcase_08 | AC | 97 ms
71,608 KB |
testcase_09 | AC | 95 ms
71,700 KB |
testcase_10 | TLE | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
ソースコード
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)))