結果
| 問題 |
No.978 Fibonacci Convolution Easy
|
| コンテスト | |
| ユーザー |
ion0002
|
| 提出日時 | 2020-01-31 22:30:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 818,176 KB |
| 最終ジャッジ日時 | 2024-09-17 09:05:28 |
| 合計ジャッジ時間 | 3,406 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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