結果

問題 No.639 An Ordinary Sequence
ユーザー tailstails
提出日時 2018-01-26 22:28:16
言語 Perl
(5.38.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 83 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 7,116 KB
実行使用メモリ 4,652 KB
最終ジャッジ日時 2023-08-30 12:43:56
合計ジャッジ時間 1,187 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,608 KB
testcase_01 AC 3 ms
4,516 KB
testcase_02 AC 2 ms
4,500 KB
testcase_03 AC 2 ms
4,520 KB
testcase_04 AC 3 ms
4,516 KB
testcase_05 AC 3 ms
4,580 KB
testcase_06 AC 3 ms
4,560 KB
testcase_07 AC 3 ms
4,468 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 2 ms
4,512 KB
testcase_10 AC 3 ms
4,552 KB
testcase_11 AC 2 ms
4,384 KB
testcase_12 AC 3 ms
4,628 KB
testcase_13 AC 3 ms
4,392 KB
testcase_14 AC 3 ms
4,564 KB
testcase_15 AC 3 ms
4,544 KB
testcase_16 AC 3 ms
4,544 KB
testcase_17 AC 3 ms
4,424 KB
testcase_18 AC 3 ms
4,652 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::m" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

sub f{
	my($n)=@_;
	return $m{$n}//=$n==0?1:f(int$n/3)+f(int$n/5);
}
print f(<>+0);
0