#P12012. [Ynoi April Fool's Round 2025] 牢爱
[Ynoi April Fool's Round 2025] 牢爱
Background

Problem Description
Hoshino Ai gives you a sequence of length . Each number is between and . There are operations.
Operation : Each time, ask whether it is possible to choose two non-empty sets of indices in an interval such that:
- and are disjoint.
- For an element , its contribution to set is . The total contribution of elements in must be equal to the total contribution of elements in . If such two sets can be chosen, output
Yuno; otherwise outputYuki.
Operation : Modify the numbers in an interval so that for all , , i.e., take the cube modulo on the interval.
Input Format
The first line contains three integers , with meanings as described above.
The next line contains integers, representing the sequence .
Then follow lines, each containing three numbers , indicating whether the operation type is or , and the operated interval is .
Output Format
For each query, output one line containing a string Yuno or Yuki, indicating whether such two sets can be chosen.
20 20 152
3 26 133 54 79 81 72 109 66 91 82 100 35 23 104 17 51 114 12 58
2 1 17
2 6 12
1 1 12
2 3 5
2 11 11
2 7 19
2 6 15
1 5 12
1 1 9
1 10 19
2 3 19
2 6 20
2 1 13
2 1 15
2 1 9
1 1 1
2 1 7
2 7 19
2 6 19
2 3 6
Yuno
Yuno
Yuno
Yuno
Yuki
Hint
Idea: nzhtl1477, Solution: nzhtl1477, Code: nzhtl1477, Data: nzhtl1477.
Constraints: For of the testdata, , . The testdata has no subtasks or grading by difficulty.
Translated by ChatGPT 5