結果
| 問題 | No.978 Fibonacci Convolution Easy |
| コンテスト | |
| ユーザー |
ion0002
|
| 提出日時 | 2020-01-31 22:30:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 1,230 ms |
| コンパイル使用メモリ | 20,812 KB |
| 実行使用メモリ | 1,287,900 KB |
| 最終ジャッジ日時 | 2026-04-06 05:12:37 |
| 合計ジャッジ時間 | 7,632 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | MLE * 1 -- * 20 |
ソースコード
n,p=map(int,input().split()) A=[0,1] i=2 while i<=n: a=p*A[i-1]+A[i-2] A.append(a) i+=1 sum1=0 for i in range(n): s=A[i]*(sum(A[0+i:n])) sum1+=s print(sum1%1000000007)
ion0002