結果

問題 No.709 優勝可能性
ユーザー NoneNone
提出日時 2021-10-14 09:47:55
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 363 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,656 KB
実行使用メモリ 110,392 KB
最終ジャッジ日時 2023-10-17 19:18:34
合計ジャッジ時間 6,550 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,356 KB
testcase_01 AC 42 ms
53,356 KB
testcase_02 AC 45 ms
53,356 KB
testcase_03 AC 37 ms
53,356 KB
testcase_04 AC 37 ms
53,356 KB
testcase_05 AC 36 ms
53,356 KB
testcase_06 AC 36 ms
53,356 KB
testcase_07 AC 37 ms
53,356 KB
testcase_08 AC 36 ms
53,356 KB
testcase_09 AC 38 ms
53,356 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())
Max=[0]*M
List=[[] for _ in range(M)]
for n in range(N):
    for i,r in enumerate(map(int, input().split())):
        if Max[i]<r:
            Max[i]=r
            List[i]=[n]
        elif Max[i]==r:
            List[i].append(n)
    Set=set()
    for array in List:
        for m in array:
            Set.add(m)
    print(len(Set))
0