結果

問題 No.265 数学のテスト
ユーザー %20%20
提出日時 2017-06-02 21:10:26
言語 Perl
(5.38.2)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 7,108 KB
実行使用メモリ 7,620 KB
最終ジャッジ日時 2023-08-16 02:10:34
合計ジャッジ時間 1,926 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
7,620 KB
testcase_01 AC 38 ms
7,288 KB
testcase_02 AC 22 ms
4,964 KB
testcase_03 AC 19 ms
5,588 KB
testcase_04 AC 18 ms
5,320 KB
testcase_05 AC 20 ms
5,272 KB
testcase_06 AC 19 ms
5,532 KB
testcase_07 AC 20 ms
5,488 KB
testcase_08 AC 23 ms
5,460 KB
testcase_09 AC 17 ms
5,008 KB
testcase_10 AC 16 ms
5,144 KB
testcase_11 AC 19 ms
5,468 KB
testcase_12 AC 3 ms
4,860 KB
testcase_13 AC 12 ms
5,480 KB
testcase_14 AC 7 ms
4,876 KB
testcase_15 AC 2 ms
4,956 KB
testcase_16 AC 5 ms
4,580 KB
testcase_17 AC 3 ms
4,544 KB
testcase_18 AC 3 ms
4,660 KB
testcase_19 AC 2 ms
4,768 KB
testcase_20 AC 3 ms
4,680 KB
testcase_21 AC 3 ms
4,768 KB
testcase_22 AC 7 ms
4,916 KB
testcase_23 AC 3 ms
4,556 KB
testcase_24 AC 2 ms
4,796 KB
testcase_25 AC 11 ms
4,948 KB
testcase_26 AC 2 ms
4,956 KB
testcase_27 AC 2 ms
4,980 KB
testcase_28 AC 4 ms
4,648 KB
testcase_29 AC 2 ms
4,948 KB
testcase_30 AC 4 ms
4,784 KB
testcase_31 AC 2 ms
4,724 KB
testcase_32 AC 2 ms
4,652 KB
testcase_33 AC 2 ms
4,728 KB
testcase_34 AC 3 ms
4,716 KB
testcase_35 AC 3 ms
4,676 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/(x*)(\d)/+$2$1/g;s/\bx/1x/g;
/d/?++$D:/\}/?--$D:f($_,-1+length,$D)for/d|\dx*|\}/g;
print"@a"
0