結果
問題 |
No.709 優勝可能性
|
ユーザー |
![]() |
提出日時 | 2018-07-06 02:42:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 528 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 40,992 KB |
最終ジャッジ日時 | 2024-07-01 02:43:28 |
合計ジャッジ時間 | 5,931 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 10 TLE * 1 -- * 11 |
ソースコード
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([i]) elif max_point[ind] == j: members[ind].add(i) else: pass ans_set = set([]) for j in members: ans_set = ans_set | j print(len(ans_set))