結果

問題 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  
実行時間 663 ms / 4,000 ms
コード長 569 bytes
コンパイル時間 429 ms
コンパイル使用メモリ 10,900 KB
実行使用メモリ 29,644 KB
最終ジャッジ日時 2023-08-14 12:57:25
合計ジャッジ時間 24,754 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 663 ms
29,232 KB
testcase_01 AC 628 ms
29,236 KB
testcase_02 AC 593 ms
29,488 KB
testcase_03 AC 632 ms
29,500 KB
testcase_04 AC 636 ms
29,300 KB
testcase_05 AC 637 ms
29,340 KB
testcase_06 AC 644 ms
29,644 KB
testcase_07 AC 619 ms
29,388 KB
testcase_08 AC 606 ms
29,216 KB
testcase_09 AC 614 ms
29,416 KB
testcase_10 AC 602 ms
28,772 KB
testcase_11 AC 619 ms
28,968 KB
testcase_12 AC 628 ms
28,840 KB
testcase_13 AC 600 ms
29,044 KB
testcase_14 AC 611 ms
29,216 KB
testcase_15 AC 578 ms
29,384 KB
testcase_16 AC 627 ms
29,412 KB
testcase_17 AC 610 ms
28,828 KB
testcase_18 AC 625 ms
29,048 KB
testcase_19 AC 584 ms
29,000 KB
testcase_20 AC 613 ms
28,800 KB
testcase_21 AC 595 ms
28,640 KB
testcase_22 AC 607 ms
28,772 KB
testcase_23 AC 608 ms
28,788 KB
testcase_24 AC 600 ms
28,496 KB
testcase_25 AC 616 ms
28,928 KB
testcase_26 AC 612 ms
29,284 KB
testcase_27 AC 609 ms
29,228 KB
testcase_28 AC 594 ms
28,752 KB
testcase_29 AC 630 ms
29,264 KB
testcase_30 AC 21 ms
9,248 KB
testcase_31 AC 20 ms
9,108 KB
testcase_32 AC 636 ms
27,444 KB
testcase_33 AC 623 ms
27,588 KB
testcase_34 AC 607 ms
29,192 KB
testcase_35 AC 21 ms
9,052 KB
testcase_36 AC 21 ms
9,200 KB
testcase_37 AC 21 ms
9,112 KB
testcase_38 AC 22 ms
9,116 KB
testcase_39 AC 26 ms
9,384 KB
testcase_40 AC 25 ms
9,372 KB
testcase_41 AC 67 ms
11,152 KB
testcase_42 AC 67 ms
11,144 KB
testcase_43 AC 67 ms
11,240 KB
testcase_44 AC 69 ms
11,184 KB
testcase_45 AC 27 ms
9,372 KB
testcase_46 AC 75 ms
10,900 KB
testcase_47 AC 73 ms
10,856 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