junctions专题

【codechef】 Historical Junctions(开放想方法,分类)

Input:24 41 22 33 44 14 61 22 33 44 11 32 4Output:4 41 52 63 74 80 0 http://www.codechef.com/SNCK151A/problems/HISTJUNK 当n<3||(n==3&&m==3)时: 虽然4的这种情况也是,不过简单起见我们也可以选