結果
問題 |
No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
|
ユーザー |
|
提出日時 | 2016-10-20 02:42:40 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 1,908 ms / 4,000 ms |
コード長 | 141 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 27,392 KB |
最終ジャッジ日時 | 2024-12-26 17:52:36 |
合計ジャッジ時間 | 67,824 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 48 |
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix Syntax OK
ソースコード
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]