#P1275. MATSURI MATRIX

MATSURI MATRIX

题目描述

NO SPJ RIGHT NOW, DON'T SUBMIT!

输入格式

输出格式

样例

3 
3 10 
4 12 
3 14 

POSSIBLE 
1 3 2 
3 2 1 
2 1 3 
POSSIBLE 
1 3 4 2 
3 1 2 4 
4 2 1 3 
2 4 3 1 
IMPOSSIBLE