結果
問題 | No.709 優勝可能性 |
ユーザー | zxc1113 |
提出日時 | 2018-07-06 03:40:07 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 1,004 ms / 3,500 ms |
コード長 | 811 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 10,872 KB |
実行使用メモリ | 68,872 KB |
最終ジャッジ日時 | 2023-09-13 18:04:52 |
合計ジャッジ時間 | 10,177 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,760 KB |
testcase_01 | AC | 19 ms
7,752 KB |
testcase_02 | AC | 15 ms
7,820 KB |
testcase_03 | AC | 17 ms
7,944 KB |
testcase_04 | AC | 17 ms
7,788 KB |
testcase_05 | AC | 16 ms
7,848 KB |
testcase_06 | AC | 15 ms
7,784 KB |
testcase_07 | AC | 15 ms
7,828 KB |
testcase_08 | AC | 15 ms
7,916 KB |
testcase_09 | AC | 15 ms
7,836 KB |
testcase_10 | AC | 564 ms
43,380 KB |
testcase_11 | AC | 446 ms
33,416 KB |
testcase_12 | AC | 779 ms
56,384 KB |
testcase_13 | AC | 951 ms
65,308 KB |
testcase_14 | AC | 903 ms
49,812 KB |
testcase_15 | AC | 874 ms
38,408 KB |
testcase_16 | AC | 917 ms
41,248 KB |
testcase_17 | AC | 1,004 ms
47,916 KB |
testcase_18 | AC | 16 ms
7,780 KB |
testcase_19 | AC | 15 ms
7,792 KB |
testcase_20 | AC | 933 ms
68,872 KB |
testcase_21 | AC | 919 ms
68,696 KB |
testcase_22 | AC | 15 ms
7,840 KB |
testcase_23 | AC | 16 ms
7,944 KB |
ソースコード
n, m = list(map(int, input().split())) people = [] for i in range(n): people.append(list(map(int,input().split()))) imos = [0]*n buf = [0]*n max_point = [0]*n members = [[] for i in range(n)] for i in range(n): f = False for ind, j in enumerate(people[i]): if max_point[ind] < j: f = True buf[i] += 1 max_point[ind] = j for m in members[ind]: buf[m] -=1 if buf[m] == 0: imos[i] -=1 members[ind] = [i] elif max_point[ind] == j: f = True buf[i] += 1 members[ind].append(i) else: pass if f: imos[i] += 1 #print(buf, imos, f) for i in range(n-1): imos[i+1] += imos[i] for i in imos: print(i)