結果

問題 No.709 優勝可能性
ユーザー 👑 H20H20
提出日時 2021-01-20 11:01:19
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 364 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 195,040 KB
最終ジャッジ日時 2024-06-02 03:53:01
合計ジャッジ時間 7,496 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
195,040 KB
testcase_01 AC 34 ms
53,072 KB
testcase_02 AC 36 ms
52,004 KB
testcase_03 AC 34 ms
52,064 KB
testcase_04 AC 31 ms
53,340 KB
testcase_05 AC 33 ms
52,744 KB
testcase_06 AC 32 ms
53,892 KB
testcase_07 AC 32 ms
53,008 KB
testcase_08 AC 31 ms
52,528 KB
testcase_09 AC 32 ms
53,664 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())
MAXN = []
[MAXN.append([])for _ in range(M)]
MAXV = [0]*M
for i in range(N):
   L = (list(map(int,input().split())))
   for j in range(M):
      if MAXV[j]==L[j]:
         MAXN[j].append(i)
      if MAXV[j]<L[j]:
         MAXN[j]=[i]
         MAXV[j]=L[j]
   ANS = []
   for j in range(M):
      ANS+=MAXN[j]
   print(len(set(ANS)))
0