結果

問題 No.265 数学のテスト
ユーザー %20
提出日時 2017-06-06 20:26:59
言語 Perl
(5.40.0)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 8,832 KB
最終ジャッジ日時 2024-11-24 11:34:47
合計ジャッジ時間 1,214 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 32
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::D" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

<>;@a=(0)x(<>+1);$_=<>;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"@a"
0