結果

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

テストケース

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

ソースコード

diff #

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