結果

問題 No.533 Mysterious Stairs
ユーザー maimai
提出日時 2017-06-24 01:13:54
言語 cLay
(20240104-1)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 2,715 ms
コンパイル使用メモリ 171,884 KB
実行使用メモリ 19,952 KB
最終ジャッジ日時 2023-09-18 23:19:54
合計ジャッジ時間 3,984 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
19,708 KB
testcase_01 AC 14 ms
19,732 KB
testcase_02 AC 13 ms
19,732 KB
testcase_03 AC 14 ms
19,692 KB
testcase_04 AC 13 ms
19,684 KB
testcase_05 AC 13 ms
19,692 KB
testcase_06 AC 14 ms
19,800 KB
testcase_07 AC 13 ms
19,772 KB
testcase_08 AC 14 ms
19,720 KB
testcase_09 AC 14 ms
19,712 KB
testcase_10 AC 14 ms
19,696 KB
testcase_11 AC 14 ms
19,688 KB
testcase_12 AC 14 ms
19,772 KB
testcase_13 AC 13 ms
19,872 KB
testcase_14 AC 14 ms
19,680 KB
testcase_15 AC 14 ms
19,692 KB
testcase_16 AC 13 ms
19,692 KB
testcase_17 AC 13 ms
19,756 KB
testcase_18 AC 14 ms
19,684 KB
testcase_19 AC 14 ms
19,952 KB
testcase_20 AC 14 ms
19,740 KB
testcase_21 AC 14 ms
19,680 KB
testcase_22 AC 16 ms
19,696 KB
testcase_23 AC 19 ms
19,708 KB
testcase_24 AC 18 ms
19,716 KB
testcase_25 AC 14 ms
19,800 KB
testcase_26 AC 18 ms
19,804 KB
testcase_27 AC 15 ms
19,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mint d[1000010][4];ll n;
{rd(n);d[1..3][0..2]=1;
rep(i,1,n){
d[i+1][0]+=d[i][1]+d[i][2];
d[i+2][1]+=d[i][0]+d[i][2];
d[i+3][2]+=d[i][0]+d[i][1];
}
d[n][1..2]+=d[n][0..];
wt(d[n][2]);}
0