#P8524. [Ynoi2078] 《A theory of consciousness from a theoretical computer scienceperspective: Insights from the Conscious Turing Machine》阅读报告(更新中...)
[Ynoi2078] 《A theory of consciousness from a theoretical computer scienceperspective: Insights from the Conscious Turing Machine》阅读报告(更新中...)
Problem Description
Given a sequence of length , you need to perform operations. There are three types of operations:
Operation 1: Given , first create a new array such that . Then simultaneously modify to .
Operation 2: Given , simultaneously modify to the value obtained by dividing by and taking the floor.
Operation 3: Given , compute the sum of .
Input Format
The first line contains an integer .
The next line contains integers representing the sequence .
The next line contains an integer .
The next lines each describe one operation:
1 l r x means Operation 1.
2 l r means Operation 2.
3 l r means Operation 3.
Output Format
For each Operation 3, output one line containing one integer, which is the answer.
10
1 81 93 81 16 97 63 26 66 13
10
1 1 5 3
3 5 6
3 9 9
3 1 3
3 1 7
2 1 3
3 3 9
1 5 6 6
3 1 4
3 3 9
174
66
83
354
363
121
440
10
61 53 17 97 81 17 1 91 38 93
10
2 3 6
2 1 8
3 1 5
3 1 1
3 1 7
3 3 5
3 1 4
2 2 10
2 1 5
3 5 5
104
30
108
48
84
5
Hint
Warning: Misusing this problem will result in your account being banned.
For of the data, and .
The initial values of the sequence satisfy .
For each operation, .
For each Operation 1, .
All values above are integers.
Translated by ChatGPT 5