摘要: Research Rover Description Input Output 仅一行一个整数表示答案。 Sample Input 3 3 2 11 2 1 2 3 Sample Output 333333342 HINT Main idea 从(1,1)走到(n,m),每次可以向右或向下走一步,有 阅读全文
posted @ 2017-03-06 21:35 BearChild 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 旅行路线 Description Input Output 仅一行一个整数表示答案。 Sample Input 3 2 1 3 1 Sample Output 3 HINT Main idea 将每个点的入度作为标识,问从叶节点到根有几个本质不同的串。 Solution 我们先考虑暴力的写法,显然无 阅读全文
posted @ 2017-03-06 20:38 BearChild 阅读(199) 评论(0) 推荐(0) 编辑