#2069 Fun Coloring

4 s   128 MB  

Description

link

Sample Input

Sample Output

2
5 3
1 2 3
2 3 4
1 3 5

7 7
1 2
1 3
4 2
4 3
2 3
1 4
5 6 7
YN

Source

2011 ACM-ICPC Asia Phuket Regional