結果

問題 No.709 優勝可能性
ユーザー roarisroaris
提出日時 2019-08-07 21:16:34
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 466 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 123,880 KB
最終ジャッジ日時 2023-09-25 23:15:56
合計ジャッジ時間 6,774 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,460 KB
testcase_01 AC 68 ms
71,060 KB
testcase_02 AC 69 ms
71,324 KB
testcase_03 AC 73 ms
71,072 KB
testcase_04 AC 68 ms
71,464 KB
testcase_05 AC 68 ms
71,168 KB
testcase_06 AC 68 ms
71,296 KB
testcase_07 AC 67 ms
71,172 KB
testcase_08 AC 67 ms
71,164 KB
testcase_09 AC 70 ms
71,228 KB
testcase_10 TLE -
testcase_11 AC 467 ms
80,220 KB
testcase_12 TLE -
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_para = [0] * M
set_list = [set()] * M

for i in range(N):
    para = list(map(int, input().split()))
    
    for j in range(M):
        if para[j] == max_para[j]:
            set_list[j].add(i)
        elif para[j] > max_para[j]:
            max_para[j] = para[j]
            set_list[j] = {i}
    
    ans_set = set()
    
    for set_list_i in set_list:
        ans_set |= set_list_i
    
    ans = len(ans_set)
    print(ans)
0