結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,302 ms
30,076 KB
testcase_01 AC 1,309 ms
29,832 KB
testcase_02 AC 1,414 ms
28,824 KB
testcase_03 AC 1,325 ms
28,056 KB
testcase_04 AC 1,297 ms
27,920 KB
testcase_05 AC 1,285 ms
29,104 KB
testcase_06 AC 1,378 ms
29,864 KB
testcase_07 AC 1,291 ms
29,632 KB
testcase_08 AC 1,362 ms
28,956 KB
testcase_09 AC 1,359 ms
27,720 KB
testcase_10 AC 1,230 ms
27,208 KB
testcase_11 AC 1,221 ms
27,572 KB
testcase_12 AC 1,260 ms
27,560 KB
testcase_13 AC 1,259 ms
27,476 KB
testcase_14 AC 1,217 ms
27,524 KB
testcase_15 AC 1,217 ms
27,324 KB
testcase_16 AC 1,200 ms
27,464 KB
testcase_17 AC 1,234 ms
27,740 KB
testcase_18 AC 1,240 ms
27,560 KB
testcase_19 AC 1,210 ms
27,456 KB
testcase_20 AC 1,261 ms
27,376 KB
testcase_21 AC 1,295 ms
27,332 KB
testcase_22 AC 1,252 ms
27,632 KB
testcase_23 AC 1,192 ms
27,300 KB
testcase_24 AC 1,214 ms
27,300 KB
testcase_25 AC 1,244 ms
27,560 KB
testcase_26 AC 1,150 ms
27,376 KB
testcase_27 AC 1,170 ms
27,624 KB
testcase_28 AC 1,206 ms
27,296 KB
testcase_29 AC 1,187 ms
27,720 KB
testcase_30 AC 73 ms
15,040 KB
testcase_31 AC 70 ms
15,052 KB
testcase_32 AC 1,239 ms
27,728 KB
testcase_33 AC 1,292 ms
27,560 KB
testcase_34 AC 1,330 ms
28,080 KB
testcase_35 AC 75 ms
15,116 KB
testcase_36 AC 72 ms
15,044 KB
testcase_37 AC 74 ms
15,124 KB
testcase_38 AC 73 ms
15,224 KB
testcase_39 AC 79 ms
15,036 KB
testcase_40 AC 82 ms
15,132 KB
testcase_41 AC 158 ms
16,336 KB
testcase_42 AC 164 ms
16,112 KB
testcase_43 AC 152 ms
16,112 KB
testcase_44 AC 150 ms
16,288 KB
testcase_45 AC 82 ms
15,264 KB
testcase_46 AC 163 ms
16,552 KB
testcase_47 AC 173 ms
16,364 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

h=Hash.new 0;n,k=gets.split.map &:to_i;p *n.times.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