結果

問題 No.533 Mysterious Stairs
ユーザー tailstails
提出日時 2017-06-24 00:44:08
言語 Perl
(5.38.0)
結果
AC  
実行時間 3,809 ms / 5,000 ms
コード長 130 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 5,460 KB
実行使用メモリ 204,340 KB
最終ジャッジ日時 2023-07-27 11:10:52
合計ジャッジ時間 16,007 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,512 KB
testcase_01 AC 2 ms
4,540 KB
testcase_02 AC 3 ms
4,596 KB
testcase_03 AC 3 ms
4,592 KB
testcase_04 AC 3 ms
4,744 KB
testcase_05 AC 3 ms
4,532 KB
testcase_06 AC 3 ms
4,496 KB
testcase_07 AC 3 ms
4,700 KB
testcase_08 AC 3 ms
4,640 KB
testcase_09 AC 3 ms
4,552 KB
testcase_10 AC 3 ms
4,640 KB
testcase_11 AC 4 ms
4,776 KB
testcase_12 AC 5 ms
4,824 KB
testcase_13 AC 6 ms
4,888 KB
testcase_14 AC 6 ms
4,824 KB
testcase_15 AC 9 ms
4,904 KB
testcase_16 AC 14 ms
5,252 KB
testcase_17 AC 23 ms
5,696 KB
testcase_18 AC 33 ms
6,056 KB
testcase_19 AC 40 ms
6,728 KB
testcase_20 AC 425 ms
26,720 KB
testcase_21 AC 467 ms
28,904 KB
testcase_22 AC 1,427 ms
81,768 KB
testcase_23 AC 3,713 ms
202,064 KB
testcase_24 AC 3,809 ms
204,340 KB
testcase_25 AC 420 ms
26,856 KB
testcase_26 AC 3,205 ms
175,876 KB
testcase_27 AC 947 ms
54,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$m=1e9+7;@1=($2[2]=1)x2;map{$$_[$']=(${$_%3+1}[$'-$_]+${($_+1)%3+1}[$'-$_])%$m for//..3}3..($n=<>);print+($1[$n]+$2[$n]+$3[$n])%$m
0