結果
| 問題 |
No.709 優勝可能性
|
| コンテスト | |
| ユーザー |
Mr.Fuku
|
| 提出日時 | 2018-07-15 14:50:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 427 bytes |
| コンパイル時間 | 210 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,828 KB |
| 最終ジャッジ日時 | 2024-11-06 09:57:03 |
| 合計ジャッジ時間 | 7,348 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 10 TLE * 1 -- * 11 |
ソースコード
n,m = map(int,input().split())
max_status = [0]*m
candidate = [0]*m
for i in range(n):
status = list(map(int,input().split()))
for j in range(m):
if status[j]>max_status[j]:
max_status[j] = status[j]
candidate[j] = [i+1]
elif status[j]==max_status[j]:
candidate[j] += [i+1]
ans = []
for j in candidate:
ans += j
ans = set(ans)
print(len(ans))
Mr.Fuku