結果

問題 No.526 フィボナッチ数列の第N項をMで割った余りを求める
ユーザー %20%20
提出日時 2017-06-09 22:33:51
言語 cLay
(20240104-1)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 83 bytes
コンパイル時間 1,741 ms
コンパイル使用メモリ 160,036 KB
実行使用メモリ 46,540 KB
最終ジャッジ日時 2023-09-18 23:16:24
合計ジャッジ時間 3,167 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,468 KB
testcase_01 AC 2 ms
5,508 KB
testcase_02 AC 2 ms
5,464 KB
testcase_03 AC 2 ms
5,452 KB
testcase_04 AC 2 ms
5,388 KB
testcase_05 AC 2 ms
5,400 KB
testcase_06 AC 2 ms
5,392 KB
testcase_07 AC 2 ms
5,472 KB
testcase_08 AC 2 ms
5,548 KB
testcase_09 AC 4 ms
6,376 KB
testcase_10 AC 20 ms
13,572 KB
testcase_11 AC 89 ms
46,340 KB
testcase_12 AC 89 ms
46,540 KB
testcase_13 AC 90 ms
46,336 KB
testcase_14 AC 89 ms
46,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll a[6d6],n,m;
{
	a[2]=1;
	rd(n,m);
	a[3..n]=(a[1..n-2]+a[2..n-1])%m;
	wt(a[n]);
}
0