2079 - 【NOIP2019】T4 加工零件
Time Limit : 1 秒
Memory Limit : 256 MB
Input
Output
Examples
Input
3 2 6 1 2 2 3 1 1 2 1 3 1 1 2 2 2 3 2
Output
No Yes No Yes No Yes
Input
5 5 5 1 2 2 3 3 4 4 5 1 5 1 1 1 2 1 3 1 4 1 5
Output
No Yes No Yes Yes