結果
問題 |
No.718 行列のできるフィボナッチ数列道場 (1)
|
ユーザー |
![]() |
提出日時 | 2018-07-27 23:39:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-05 05:37:39 |
合計ジャッジ時間 | 1,333 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 RE * 2 |
other | RE * 20 |
ソースコード
N = int(input()) def fib(n): f = ((1 + 5**0.5) / 2)**n / 5**0.5 + 0.5 return int(f) L = [(fib(i+1)**2)%1000000007 for i in range(N)] A = [] print(L) for j in range(len(L)) : a = L[j]%1000000007 A.append(a) sum(A)