結果

問題 No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
ユーザー cielciel
提出日時 2016-10-18 00:43:06
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,602 ms / 4,000 ms
コード長 178 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 27,776 KB
最終ジャッジ日時 2024-05-02 03:33:47
合計ジャッジ時間 53,751 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,502 ms
27,008 KB
testcase_01 AC 1,479 ms
27,520 KB
testcase_02 AC 1,453 ms
26,368 KB
testcase_03 AC 1,488 ms
25,472 KB
testcase_04 AC 1,487 ms
25,472 KB
testcase_05 AC 1,495 ms
27,008 KB
testcase_06 AC 1,602 ms
27,776 KB
testcase_07 AC 1,475 ms
27,136 KB
testcase_08 AC 1,513 ms
26,880 KB
testcase_09 AC 1,536 ms
25,216 KB
testcase_10 AC 1,432 ms
25,344 KB
testcase_11 AC 1,425 ms
25,088 KB
testcase_12 AC 1,409 ms
25,344 KB
testcase_13 AC 1,400 ms
25,216 KB
testcase_14 AC 1,362 ms
25,472 KB
testcase_15 AC 1,341 ms
24,832 KB
testcase_16 AC 1,404 ms
25,344 KB
testcase_17 AC 1,441 ms
25,216 KB
testcase_18 AC 1,439 ms
25,344 KB
testcase_19 AC 1,398 ms
25,216 KB
testcase_20 AC 1,396 ms
25,216 KB
testcase_21 AC 1,434 ms
25,216 KB
testcase_22 AC 1,441 ms
25,088 KB
testcase_23 AC 1,452 ms
25,088 KB
testcase_24 AC 1,448 ms
25,088 KB
testcase_25 AC 1,448 ms
25,216 KB
testcase_26 AC 1,392 ms
25,344 KB
testcase_27 AC 1,419 ms
25,344 KB
testcase_28 AC 1,437 ms
24,960 KB
testcase_29 AC 1,370 ms
25,344 KB
testcase_30 AC 86 ms
12,288 KB
testcase_31 AC 90 ms
12,032 KB
testcase_32 AC 1,430 ms
25,344 KB
testcase_33 AC 1,503 ms
25,344 KB
testcase_34 AC 1,564 ms
25,600 KB
testcase_35 AC 88 ms
12,160 KB
testcase_36 AC 92 ms
12,288 KB
testcase_37 AC 91 ms
12,160 KB
testcase_38 AC 91 ms
12,160 KB
testcase_39 AC 99 ms
12,288 KB
testcase_40 AC 100 ms
12,160 KB
testcase_41 AC 189 ms
13,184 KB
testcase_42 AC 188 ms
13,184 KB
testcase_43 AC 183 ms
13,056 KB
testcase_44 AC 181 ms
13,184 KB
testcase_45 AC 100 ms
12,416 KB
testcase_46 AC 198 ms
13,568 KB
testcase_47 AC 203 ms
13,568 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: 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{
#|s,u,t,i|[s,h[u]+=1,t,i]
|e|e[1]=h[e[1]]+=1;e
}.sort.map(&:last)[0,k]
0