#P5355. [Ynoi Easy Round 2017] 由乃的玉米田
[Ynoi Easy Round 2017] 由乃的玉米田
Background

Problem Description
Yuno is taking a walk by her farmland. She suddenly finds that a row of corn in the field looks very ugly.
There are a total of corn plants in this row, and their heights are uneven.
Yuno thinks the cornfield is not beautiful, so she decides to make a data structure problem.
The problem is as follows:
You are given a sequence of length , with operations. Each operation queries whether, in a given interval, you can pick two numbers whose difference is , or queries whether, in a given interval, you can pick two numbers whose sum is , or queries whether, in a given interval, you can pick two numbers whose product is , or queries whether, in a given interval, you can pick two numbers whose quotient is (with no remainder). These four operations are numbered , respectively.
The two chosen numbers may come from the same position.
Input Format
The first line contains two integers .
The next line contains integers representing .
The next lines each contain four integers .
indicates which type of operation it is, specify the interval of the operation, and is the value for this operation.
Output Format
For each query, if it is possible, output yuno; otherwise output yumi.
5 5
1 1 2 3 4
4 1 1 1
1 1 2 2
3 1 1 1
3 5 5 16
1 2 3 4
yuno
yumi
yuno
yuno
yumi
Hint
Idea: nzhtl1477, Solution: nzhtl1477, Code: nzhtl1477, Data: nzhtl1477&mrsrz.
For of the testdata, all input numbers are within , and the elements in the sequence are within .
Translated by ChatGPT 5