3
3
2 3
2 2
1 3 2
【样例解释】
0型路径
(1, 1) -> (1, 2) -> (1, 3) -> (2, 3) -> (3, 3)
1型路径
(1, 1) -> (2, 1) -> (2, 2) -> (2, 3) -> (3, 3)
(1, 1) -> (1, 2) -> (2, 2) -> (2, 3) -> (3, 3)
(1, 1) -> (2, 1) -> (3, 1) -> (3, 2) -> (3, 3)
2型路径
(1, 1) -> (2, 1) -> (2, 2) -> (3, 2) -> (3, 3)
(1, 1) -> (1, 2) -> (2, 2) -> (3, 2) -> (3, 3)
【数据规模】
对于100%数据
1<=R,C<=50
0<=N<=50