結果

問題 No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
ユーザー tookunn_1213tookunn_1213
提出日時 2016-10-15 01:29:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 624 ms / 4,000 ms
コード長 569 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 32,144 KB
最終ジャッジ日時 2024-05-02 01:12:26
合計ジャッジ時間 22,684 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 624 ms
32,028 KB
testcase_01 AC 601 ms
31,896 KB
testcase_02 AC 559 ms
32,012 KB
testcase_03 AC 599 ms
31,844 KB
testcase_04 AC 595 ms
31,832 KB
testcase_05 AC 590 ms
32,144 KB
testcase_06 AC 595 ms
32,052 KB
testcase_07 AC 588 ms
31,900 KB
testcase_08 AC 618 ms
32,048 KB
testcase_09 AC 584 ms
31,804 KB
testcase_10 AC 579 ms
31,480 KB
testcase_11 AC 564 ms
31,740 KB
testcase_12 AC 590 ms
31,208 KB
testcase_13 AC 565 ms
31,608 KB
testcase_14 AC 578 ms
31,720 KB
testcase_15 AC 540 ms
31,864 KB
testcase_16 AC 601 ms
31,864 KB
testcase_17 AC 583 ms
31,224 KB
testcase_18 AC 588 ms
31,608 KB
testcase_19 AC 548 ms
31,860 KB
testcase_20 AC 619 ms
31,236 KB
testcase_21 AC 577 ms
31,224 KB
testcase_22 AC 560 ms
31,352 KB
testcase_23 AC 586 ms
31,356 KB
testcase_24 AC 555 ms
31,096 KB
testcase_25 AC 616 ms
31,732 KB
testcase_26 AC 578 ms
31,864 KB
testcase_27 AC 559 ms
31,768 KB
testcase_28 AC 571 ms
31,432 KB
testcase_29 AC 558 ms
31,864 KB
testcase_30 AC 32 ms
11,648 KB
testcase_31 AC 31 ms
11,520 KB
testcase_32 AC 605 ms
29,988 KB
testcase_33 AC 601 ms
30,108 KB
testcase_34 AC 575 ms
31,868 KB
testcase_35 AC 34 ms
11,648 KB
testcase_36 AC 35 ms
11,648 KB
testcase_37 AC 34 ms
11,648 KB
testcase_38 AC 34 ms
11,520 KB
testcase_39 AC 38 ms
11,776 KB
testcase_40 AC 39 ms
11,904 KB
testcase_41 AC 84 ms
13,696 KB
testcase_42 AC 83 ms
13,568 KB
testcase_43 AC 83 ms
13,696 KB
testcase_44 AC 83 ms
13,568 KB
testcase_45 AC 38 ms
11,904 KB
testcase_46 AC 89 ms
13,440 KB
testcase_47 AC 91 ms
13,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from operator import itemgetter
N,K = map(int,input().split())
team = [() for i in range(N)]
for i in range(N):
	s,p,u = map(int,input().split())
	team[i] = (s,p,u,i)
team = sorted(team,key=itemgetter(1))
team = sorted(team,key=itemgetter(0),reverse=True)
cnt = [0 for i in range(100000 + 1)]
for i in range(N):
	cnt[team[i][2]]+=1
	team[i] = (team[i][0],team[i][1],team[i][2],team[i][3],cnt[team[i][2]])
team = sorted(team,key=itemgetter(1))
team = sorted(team,key=itemgetter(4))
team = sorted(team,key=itemgetter(0),reverse=True)
for i in range(K):
	print(team[i][3])
0