#356. moo的数列
moo的数列
No testdata at current.
Background
......
Description
本题共 次询问。
有2个长度为 的数列 , 。
首先会给 赋初始值,接着会对这2个数组进行 次操作。具体为:
请你计算出经过 次操作后 的第 项。
Format
Input
Output
Samples
5 1 11 1
1 2 3 4 5
5
4
Limitation
No testdata at current.
moomoomoo ......
本题共 T 次询问。
moo有2个长度为 N 的数列 a, b 。
首先moo会给 a 赋初始值,接着会对这2个数组进行 K 次操作。具体为:
请你计算出经过 K 次操作后 a 的第 x 项。
NKPT
a1a2a3...aN
x1x2x3...xT
ax1ax2ax3...axT
5 1 11 1
1 2 3 4 5
5
4
1≤N≤105
0≤K≤103
2≤P≤109
∣ai∣≤109
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.