結果

問題 No.709 優勝可能性
ユーザー morumottomorumotto
提出日時 2018-07-27 20:57:45
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 419 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 134,512 KB
最終ジャッジ日時 2023-09-18 00:50:48
合計ジャッジ時間 7,079 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
75,744 KB
testcase_01 AC 71 ms
71,080 KB
testcase_02 AC 72 ms
71,364 KB
testcase_03 AC 73 ms
71,480 KB
testcase_04 AC 72 ms
71,484 KB
testcase_05 AC 72 ms
71,200 KB
testcase_06 AC 72 ms
71,084 KB
testcase_07 AC 73 ms
71,072 KB
testcase_08 AC 73 ms
71,176 KB
testcase_09 AC 72 ms
71,276 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_scores = [0] * m
max_member = [set() for _ in range(m)]

for j in range(n):
  rlst = list(map(int, input().split()))
  for i in range(m):
    flag = 0
    if rlst[i] == max_scores[i]:
      max_member[i].add(j)
    if rlst[i] > max_scores[i]:
      max_scores[i] = rlst[i]
      max_member[i] = {j}
  ans = set()
  for member in max_member:
    ans = ans | member

  print(len(ans))
0