#Lutece1930. 一道普通的题2
一道普通的题2
Migrated from Lutece 1930 一道普通的题2
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给出一个长为 的数列 ,以及 个操作,操作涉及区间开方,区间求和。
Input
第一行输入一个数字 。
第二行输入 个非负整数,第个数字为 ,以空格隔开。
接下来输入 行询问,每行输入四个数字 ,以空格隔开。
若 ,表示将位于 的之间的数字都开方。对于区间中每个
若 ,表示询问位于 的所有数字的和。
Output
对于每次询问,输出一z行一个数字表示答案。
保证所有数据在int
范围内
Samples
4
1 2 2 3
0 1 3 1
1 1 4 4
0 1 2 2
1 1 2 4
6
2
Resources
2018 UESTC Training for Data Structures