結果

問題 No.709 優勝可能性
ユーザー lloyzlloyz
提出日時 2022-07-24 14:59:56
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 373 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 129,968 KB
最終ジャッジ日時 2023-09-20 14:17:31
合計ジャッジ時間 8,274 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,576 KB
testcase_01 AC 77 ms
71,260 KB
testcase_02 AC 78 ms
71,460 KB
testcase_03 AC 81 ms
71,496 KB
testcase_04 AC 78 ms
71,572 KB
testcase_05 AC 78 ms
71,364 KB
testcase_06 AC 79 ms
71,624 KB
testcase_07 AC 78 ms
71,424 KB
testcase_08 AC 80 ms
71,340 KB
testcase_09 AC 79 ms
71,392 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 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
ANS = [set() for _ in range(m)]
MaxP = [0 for _ in range(m)]
for i in range(n):
    R = list(map(int,input().split()))
    ans = set()
    for j in range(m):
        if R[j] > MaxP[j]:
            ANS[j] = set([i])
            MaxP[j] = R[j]
        elif R[j] == MaxP[j]:
            ANS[j].add(i)
        ans |= ANS[j]
    print(len(ans))
0