Rectangle XOR Game

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4354 [PDF](https://uva.onlinejudge.org/external/126/p12629.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12629/d3baf578c832d85f71fc1df8f328eae71424f6e4.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12629/b56d499bf4049a22e880e0097f82070369c41992.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12629/342653523d2e443024f32aab7a9706840fea57ba.png)

输入输出样例

输入样例 #1

2 2
0 1
1 0
2 2
1 0
0 1
2 2
1 1
1 1
1 7
0 1 1 1 1 0 0

输出样例 #1

No
1 1 1 2 2
3 1 1 2 2
3 1 2 1 5