#P3901. 数列找不同
数列找不同
Description
Given a sequence and queries , determine whether are all different from each other.
Input Format
The first line contains two integers .
The second line contains integers .
Then lines follow, each containing two integers .
Output Format
For each query, output one line: Yes or No.
4 2
1 2 3 2
1 3
2 4
Yes
No
Hint
For of the testdata, .
For of the testdata, , , .
Translated by ChatGPT 5
京公网安备 11011102002149号