結果

問題 No.2067 ±2^k operations
ユーザー tailstails
提出日時 2022-09-13 10:12:14
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,280 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 5,012 KB
実行使用メモリ 94,868 KB
最終ジャッジ日時 2023-08-20 11:43:57
合計ジャッジ時間 16,718 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,548 KB
testcase_01 AC 124 ms
14,676 KB
testcase_02 AC 126 ms
14,740 KB
testcase_03 AC 125 ms
14,672 KB
testcase_04 AC 131 ms
14,716 KB
testcase_05 AC 126 ms
14,668 KB
testcase_06 AC 33 ms
7,524 KB
testcase_07 AC 1,273 ms
94,868 KB
testcase_08 AC 1,260 ms
94,596 KB
testcase_09 AC 1,256 ms
94,720 KB
testcase_10 AC 1,271 ms
94,644 KB
testcase_11 AC 1,274 ms
94,720 KB
testcase_12 AC 1,268 ms
94,632 KB
testcase_13 AC 1,280 ms
94,772 KB
testcase_14 AC 1,259 ms
94,728 KB
testcase_15 AC 1,269 ms
94,644 KB
testcase_16 AC 1,278 ms
94,612 KB
testcase_17 AC 46 ms
8,360 KB
testcase_18 AC 16 ms
6,368 KB
testcase_19 AC 13 ms
6,308 KB
testcase_20 AC 13 ms
6,268 KB
testcase_21 AC 16 ms
6,292 KB
testcase_22 AC 16 ms
6,356 KB
testcase_23 AC 16 ms
6,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$m{0}=0;
sub f{
	my($n)=@_;
	$m{$n}//=f($n>>1)+f($n-1>>2)+f($n+1>>2)+($n+3>>1);
}
<>;
print f($_)-$_,$/for<>;
0