結果

問題 No.533 Mysterious Stairs
ユーザー %20%20
提出日時 2017-06-24 00:01:42
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,056 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 40 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 219,008 KB
最終ジャッジ日時 2024-04-15 01:11:59
合計ジャッジ時間 4,945 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,812 KB
testcase_01 AC 3 ms
6,944 KB
testcase_02 AC 3 ms
6,940 KB
testcase_03 AC 3 ms
6,940 KB
testcase_04 AC 3 ms
6,940 KB
testcase_05 AC 3 ms
6,940 KB
testcase_06 AC 3 ms
6,940 KB
testcase_07 AC 3 ms
6,940 KB
testcase_08 AC 3 ms
6,944 KB
testcase_09 AC 3 ms
6,944 KB
testcase_10 AC 3 ms
6,944 KB
testcase_11 AC 3 ms
6,940 KB
testcase_12 AC 4 ms
6,940 KB
testcase_13 AC 4 ms
6,944 KB
testcase_14 AC 4 ms
6,940 KB
testcase_15 AC 5 ms
6,940 KB
testcase_16 AC 6 ms
6,940 KB
testcase_17 AC 9 ms
6,940 KB
testcase_18 AC 12 ms
6,940 KB
testcase_19 AC 13 ms
7,552 KB
testcase_20 AC 122 ms
29,056 KB
testcase_21 AC 133 ms
31,488 KB
testcase_22 AC 409 ms
87,424 KB
testcase_23 AC 1,046 ms
216,320 KB
testcase_24 AC 1,056 ms
219,008 KB
testcase_25 AC 120 ms
29,184 KB
testcase_26 AC 905 ms
189,056 KB
testcase_27 AC 271 ms
59,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

@_=([1,0,0],[0,1,0],[1,1,1]);
	$_[$_][0]=($_[$_-1][1]+$_[$_-1][2])%(1e9+7),
	$_[$_][1]=($_[$_-2][0]+$_[$_-2][2])%(1e9+7),
	$_[$_][2]=($_[$_-3][0]+$_[$_-3][1])%(1e9+7)
for 3..($N=<>-1);
print eval(join'+',@{$_[$N]})%(1e9+7)
0