#1336 Tiling a Grid With Dominoes

11  1 s   128 MB  

Description

문제링크

Sample Input

Sample Output

3
2
3
7
1 5
2 11
3 781

Source

2007 ACM-ICPC Greater New York Region