Problem C: 疾⽻的救赎(2024-T3)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:17 Solved:1

Description

Input

Output

⼀共 T ⾏,如果第 i 个测试⽤例可⾏,就在第 i ⾏输出⼀个⼤写字⺟ Y ,否则输出⼤写字⺟ N。

Sample Input Copy

1
1 1
1 1
1 2
2 1
2 1
1 -1
3 1
2 2
3 -1
2 -1
3 1
3 2

Sample Output Copy

Y

HINT

最开始的状态如下,接下来将⼀步步给出每⼀次执⾏完⾏动卡⽚的状态。














Source/Category