結果
| 問題 |
No.709 優勝可能性
|
| コンテスト | |
| ユーザー |
zxc1113
|
| 提出日時 | 2018-07-06 02:41:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 528 bytes |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 62,080 KB |
| 最終ジャッジ日時 | 2024-07-01 02:44:40 |
| 合計ジャッジ時間 | 13,506 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 21 |
ソースコード
n, m = list(map(int, input().split()))
people = []
for i in range(n):
people.append(list(map(int,input().split())))
max_point = [0]*m
members = [set([]) for i in range(m)]
for i in range(n):
for ind, j in enumerate(people[i]):
if max_point[ind] < j:
max_point[ind] = j
members[ind] = set([j])
elif max_point[ind] == j:
members[ind].add(j)
else:
pass
ans_set = set([])
for j in members:
ans_set = ans_set | j
print(len(ans_set))
zxc1113