結果

問題 No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
ユーザー tailstails
提出日時 2016-10-15 01:29:58
言語 Perl
(5.40.0)
結果
AC  
実行時間 1,123 ms / 4,000 ms
コード長 159 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 51,184 KB
最終ジャッジ日時 2024-11-22 10:28:15
合計ジャッジ時間 37,267 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 48
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::i" used only once: possible typo at Main.pl line 1.
Name "main::v" used only once: possible typo at Main.pl line 1.
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$k)=glob<>;print map{/\w+$/g,$/}(sort map s/u(\w+)/sprintf"%8d",++$v[$1]/er,sort map{($s,$p,$u)=glob;sprintf"%8du%08d%8d %d",1e5-$s,$u,$p,$i++}<>)[0..$k-1]
0