結果

問題 No.709 優勝可能性
ユーザー simamumusimamumu
提出日時 2018-06-30 00:00:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 439 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 10,860 KB
実行使用メモリ 29,740 KB
最終ジャッジ日時 2023-09-13 15:52:43
合計ジャッジ時間 9,204 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
29,620 KB
testcase_01 AC 129 ms
29,564 KB
testcase_02 AC 128 ms
29,644 KB
testcase_03 AC 128 ms
29,632 KB
testcase_04 AC 128 ms
29,640 KB
testcase_05 AC 130 ms
29,520 KB
testcase_06 AC 133 ms
29,616 KB
testcase_07 AC 131 ms
29,632 KB
testcase_08 AC 132 ms
29,740 KB
testcase_09 AC 132 ms
29,568 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 #

import numpy as np

N,M = map(int,input().split())

R_max = [0 for i in range(M)]
R_max_num = [0 for i in range(M)]

yusho = [-1 for i in range(M)]

ans = 0

for i in range(N):
	R_li = list(map(int,input().split()))
			
	anss = []

	for j in range(M):
		if R_li[j] > R_max[j]:
			R_max[j] = R_li[j]
			yusho[j] = [i]
		elif R_li[j] == R_max[j]:
			yusho[j].append(i)
			
		anss = anss + yusho[j]
	anss2 = list(set(anss))
	print(len(anss2))
0