結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,452 ms
29,720 KB
testcase_01 AC 1,416 ms
29,828 KB
testcase_02 AC 1,399 ms
28,768 KB
testcase_03 AC 1,402 ms
28,004 KB
testcase_04 AC 1,422 ms
27,944 KB
testcase_05 AC 1,426 ms
28,864 KB
testcase_06 AC 1,520 ms
29,672 KB
testcase_07 AC 1,408 ms
29,380 KB
testcase_08 AC 1,454 ms
29,072 KB
testcase_09 AC 1,465 ms
27,624 KB
testcase_10 AC 1,385 ms
27,368 KB
testcase_11 AC 1,387 ms
27,632 KB
testcase_12 AC 1,339 ms
27,688 KB
testcase_13 AC 1,345 ms
27,476 KB
testcase_14 AC 1,302 ms
27,332 KB
testcase_15 AC 1,290 ms
27,148 KB
testcase_16 AC 1,354 ms
27,624 KB
testcase_17 AC 1,403 ms
27,704 KB
testcase_18 AC 1,374 ms
27,592 KB
testcase_19 AC 1,335 ms
27,308 KB
testcase_20 AC 1,317 ms
27,372 KB
testcase_21 AC 1,360 ms
27,460 KB
testcase_22 AC 1,363 ms
27,780 KB
testcase_23 AC 1,372 ms
27,300 KB
testcase_24 AC 1,365 ms
27,520 KB
testcase_25 AC 1,363 ms
27,336 KB
testcase_26 AC 1,303 ms
27,484 KB
testcase_27 AC 1,336 ms
27,520 KB
testcase_28 AC 1,349 ms
27,472 KB
testcase_29 AC 1,324 ms
27,628 KB
testcase_30 AC 82 ms
15,052 KB
testcase_31 AC 82 ms
15,220 KB
testcase_32 AC 1,374 ms
27,424 KB
testcase_33 AC 1,421 ms
27,468 KB
testcase_34 AC 1,471 ms
28,084 KB
testcase_35 AC 83 ms
15,268 KB
testcase_36 AC 82 ms
15,136 KB
testcase_37 AC 83 ms
15,200 KB
testcase_38 AC 85 ms
15,112 KB
testcase_39 AC 93 ms
15,052 KB
testcase_40 AC 91 ms
15,076 KB
testcase_41 AC 174 ms
16,176 KB
testcase_42 AC 175 ms
16,012 KB
testcase_43 AC 172 ms
16,296 KB
testcase_44 AC 169 ms
16,120 KB
testcase_45 AC 91 ms
15,204 KB
testcase_46 AC 184 ms
16,368 KB
testcase_47 AC 189 ms
16,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

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