結果

問題 No.433 ICPC国内予選の選抜ルールがこんな感じだったらうれしい
コンテスト
ユーザー 👑 tails
提出日時 2016-10-15 01:29:58
言語 Perl
(5.42.1)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 657 ms / 4,000 ms
コード長 159 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 524 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 51,436 KB
最終ジャッジ日時 2026-05-16 12:54:05
合計ジャッジ時間 21,717 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 48
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
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.
Main.pl syntax OK

ソースコード

diff #
raw source code

($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