[CSP-S2019 江西] 和积和
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.
题目背景
JXCSP-S T2
题目描述
给定两个下标从 到 编号的序列 ,定义函数 为:
请你求出下列式子的值:
由于答案可能很大,你只需要给出答案模 后的结果。
输入格式
第一行一个正整数 表示序列长度。
第二行 个正整数表示 。
第三行 个正整数表示 。
输出格式
仅一行一个整数表示答案模 后的结果。
3
2 3 4
3 4 5
244
5
11 22 33 44 55
12 34 56 78 90
201542
提示
【数据范围】
对于 的数据: , ;
对于 的数据: , ;
对于 的数据: , ;
对于 的数据: , 。
C23 CSP-J真题训练2数学思维(暑期完成)
- Status
- Done
- Problem
- 10
- Open Since
- 2024-7-5 0:00
- Deadline
- 2024-10-27 23:59
- Extension
- 24 hour(s)