結果

問題 No.265 数学のテスト
ユーザー %20
提出日時 2017-06-06 20:28:26
言語 Perl
(5.40.0)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 8,832 KB
最終ジャッジ日時 2024-11-24 11:34:48
合計ジャッジ時間 1,183 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 32
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::D" 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,$#a,$_)=<>;y/*//d;s/(x*)(\d)/$2$1/g;s/\bx/1x/g;map{$d=$D+=/{/-/}/;$n=y/{}//c;$d--?$_*=$n:($a[$n]+=$_)while$n--}/{|\dx*|}/g;print$_+0,$"for@a
0