結果

問題 No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
ユーザー cielciel
提出日時 2016-10-18 00:38:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,561 ms / 4,000 ms
コード長 162 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 11,156 KB
実行使用メモリ 38,080 KB
最終ジャッジ日時 2023-08-27 02:36:03
合計ジャッジ時間 55,050 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,461 ms
37,772 KB
testcase_01 AC 1,443 ms
38,080 KB
testcase_02 AC 1,436 ms
36,716 KB
testcase_03 AC 1,441 ms
35,888 KB
testcase_04 AC 1,438 ms
35,816 KB
testcase_05 AC 1,445 ms
37,420 KB
testcase_06 AC 1,561 ms
37,952 KB
testcase_07 AC 1,454 ms
37,836 KB
testcase_08 AC 1,505 ms
37,624 KB
testcase_09 AC 1,516 ms
35,624 KB
testcase_10 AC 1,395 ms
35,544 KB
testcase_11 AC 1,385 ms
35,612 KB
testcase_12 AC 1,363 ms
35,704 KB
testcase_13 AC 1,354 ms
35,516 KB
testcase_14 AC 1,297 ms
35,472 KB
testcase_15 AC 1,260 ms
35,452 KB
testcase_16 AC 1,328 ms
35,392 KB
testcase_17 AC 1,455 ms
35,536 KB
testcase_18 AC 1,391 ms
35,640 KB
testcase_19 AC 1,356 ms
35,496 KB
testcase_20 AC 1,355 ms
35,496 KB
testcase_21 AC 1,429 ms
35,448 KB
testcase_22 AC 1,383 ms
35,576 KB
testcase_23 AC 1,400 ms
35,564 KB
testcase_24 AC 1,373 ms
35,644 KB
testcase_25 AC 1,377 ms
35,552 KB
testcase_26 AC 1,288 ms
35,688 KB
testcase_27 AC 1,314 ms
35,544 KB
testcase_28 AC 1,362 ms
35,400 KB
testcase_29 AC 1,302 ms
35,412 KB
testcase_30 AC 82 ms
15,048 KB
testcase_31 AC 83 ms
15,000 KB
testcase_32 AC 1,407 ms
35,632 KB
testcase_33 AC 1,449 ms
35,480 KB
testcase_34 AC 1,507 ms
36,248 KB
testcase_35 AC 82 ms
15,128 KB
testcase_36 AC 83 ms
15,124 KB
testcase_37 AC 84 ms
15,044 KB
testcase_38 AC 83 ms
14,996 KB
testcase_39 AC 91 ms
15,260 KB
testcase_40 AC 91 ms
15,340 KB
testcase_41 AC 172 ms
16,852 KB
testcase_42 AC 178 ms
17,136 KB
testcase_43 AC 169 ms
16,932 KB
testcase_44 AC 168 ms
16,984 KB
testcase_45 AC 91 ms
15,076 KB
testcase_46 AC 184 ms
16,924 KB
testcase_47 AC 190 ms
17,068 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

h=Hash.new(0)
n,k=gets.split.map(&:to_i)
puts n.times.map{|i|
s,t,u=gets.split.map(&:to_i)
[-s,u,t,i]
}.sort.map{|s,u,t,i|
[s,h[u]+=1,t,i]
}.sort.map(&:last)[0,k]
0