[ABC315Ex] Typical Convolution Problem
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
[ABC315Ex] Typical Convolution Problem
题面翻译
题目描述
给定一个长为 的序列 ,按如下方法计算 :
- ;
- 当整数 时,$f(m)=a_m\times (\displaystyle\sum_{i+j\lt m} f(i)\times f(j))$。
对于每个整数 ,计算 的值。
输入格式
第一行为序列长度 ,第二行输入 个整数表示序列 。
输出格式
依次输出 ,,…, 对 取模后的值,相邻两个数之间以单个空格隔开。
说明/提示
数据规模与约定
,。
样例 #1
样例输入 #1
5
1 2 3 4 5
样例输出 #1
1 6 48 496 6240
样例 #2
样例输入 #2
3
12345 678901 2345678
样例输出 #2
12345 790834943 85679169
样例解释1
。 。 同理可得 。
9月19日周二晚上集训赛
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2023-9-19 19:00
- End at
- 2023-9-19 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 30