結果

問題 No.265 数学のテスト
ユーザー %20%20
提出日時 2017-06-02 20:59:46
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 5,516 KB
実行使用メモリ 8,616 KB
最終ジャッジ日時 2023-10-21 20:50:36
合計ジャッジ時間 1,757 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,616 KB
testcase_01 AC 39 ms
8,280 KB
testcase_02 AC 18 ms
6,136 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 3 ms
5,576 KB
testcase_18 AC 3 ms
5,640 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 3 ms
5,576 KB
testcase_24 AC 3 ms
5,704 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 3 ms
5,640 KB
testcase_33 AC 4 ms
5,704 KB
testcase_34 AC 4 ms
5,704 KB
testcase_35 AC 4 ms
5,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{($k,$n,$d)=@_;$n>=0and$d?f($n*$k,$n-1,$d-1):($a[$n]+=$k)}
<>;@a=(0)x(<>+1);$_=<>;
s/\*//g;s/\d/+$&/g;s/\bx/1x/g;
/d/?++$D:/\}/?--$D:f($_,-1+length,$D)for/d|\dx*|\}/g;
print"@a"
0