結果

問題 No.533 Mysterious Stairs
ユーザー %20%20
提出日時 2017-06-23 23:58:07
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 218,880 KB
最終ジャッジ日時 2024-04-15 01:10:28
合計ジャッジ時間 5,310 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 4 ms
6,944 KB
testcase_03 AC 4 ms
6,944 KB
testcase_04 AC 4 ms
6,944 KB
testcase_05 AC 3 ms
6,940 KB
testcase_06 AC 4 ms
6,940 KB
testcase_07 AC 4 ms
6,940 KB
testcase_08 AC 3 ms
6,940 KB
testcase_09 AC 3 ms
6,940 KB
testcase_10 AC 4 ms
6,940 KB
testcase_11 AC 4 ms
6,944 KB
testcase_12 AC 4 ms
6,940 KB
testcase_13 AC 4 ms
6,940 KB
testcase_14 AC 4 ms
6,944 KB
testcase_15 AC 5 ms
6,940 KB
testcase_16 AC 6 ms
6,940 KB
testcase_17 AC 9 ms
6,944 KB
testcase_18 AC 12 ms
7,040 KB
testcase_19 AC 15 ms
7,680 KB
testcase_20 AC 125 ms
29,056 KB
testcase_21 AC 142 ms
31,488 KB
testcase_22 AC 421 ms
87,168 KB
testcase_23 AC 1,067 ms
216,320 KB
testcase_24 AC 1,083 ms
218,880 KB
testcase_25 AC 127 ms
29,184 KB
testcase_26 AC 927 ms
188,928 KB
testcase_27 AC 282 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..<>-1;
print eval(join'+',@{pop@_})%(1e9+7)
0