結果

問題 No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
ユーザー cielciel
提出日時 2016-10-20 02:41:37
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,468 ms / 4,000 ms
コード長 149 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 11,304 KB
実行使用メモリ 30,184 KB
最終ジャッジ日時 2023-08-27 02:37:00
合計ジャッジ時間 51,371 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,362 ms
30,184 KB
testcase_01 AC 1,347 ms
29,928 KB
testcase_02 AC 1,331 ms
28,868 KB
testcase_03 AC 1,306 ms
28,360 KB
testcase_04 AC 1,351 ms
27,836 KB
testcase_05 AC 1,315 ms
29,116 KB
testcase_06 AC 1,468 ms
29,852 KB
testcase_07 AC 1,325 ms
29,496 KB
testcase_08 AC 1,383 ms
29,020 KB
testcase_09 AC 1,402 ms
27,656 KB
testcase_10 AC 1,275 ms
27,784 KB
testcase_11 AC 1,294 ms
27,692 KB
testcase_12 AC 1,269 ms
27,572 KB
testcase_13 AC 1,247 ms
27,388 KB
testcase_14 AC 1,206 ms
27,708 KB
testcase_15 AC 1,198 ms
27,184 KB
testcase_16 AC 1,275 ms
27,540 KB
testcase_17 AC 1,308 ms
27,884 KB
testcase_18 AC 1,304 ms
27,828 KB
testcase_19 AC 1,269 ms
27,384 KB
testcase_20 AC 1,274 ms
27,580 KB
testcase_21 AC 1,294 ms
27,552 KB
testcase_22 AC 1,293 ms
27,656 KB
testcase_23 AC 1,282 ms
27,380 KB
testcase_24 AC 1,302 ms
27,368 KB
testcase_25 AC 1,286 ms
27,608 KB
testcase_26 AC 1,232 ms
27,400 KB
testcase_27 AC 1,251 ms
27,668 KB
testcase_28 AC 1,285 ms
27,536 KB
testcase_29 AC 1,285 ms
27,572 KB
testcase_30 AC 78 ms
15,020 KB
testcase_31 AC 78 ms
15,152 KB
testcase_32 AC 1,297 ms
27,544 KB
testcase_33 AC 1,363 ms
27,656 KB
testcase_34 AC 1,385 ms
28,068 KB
testcase_35 AC 80 ms
15,152 KB
testcase_36 AC 78 ms
15,048 KB
testcase_37 AC 79 ms
15,088 KB
testcase_38 AC 77 ms
15,056 KB
testcase_39 AC 82 ms
15,212 KB
testcase_40 AC 83 ms
15,180 KB
testcase_41 AC 163 ms
16,192 KB
testcase_42 AC 163 ms
16,068 KB
testcase_43 AC 155 ms
16,368 KB
testcase_44 AC 165 ms
16,224 KB
testcase_45 AC 84 ms
15,080 KB
testcase_46 AC 179 ms
16,484 KB
testcase_47 AC 184 ms
16,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

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