2019年8月13日

codeforces_D. Treasure Hunting_[DP+Binary Search]

摘要: http://codeforces.com/contest/1201/problem/D 题意:n行m列的矩阵中,有k个targets,从[1, 1]出发,每次只能向上下左右四个方向移动一步,且只有在q个safecolumns上进行向上移动,最少需要多少次移动才能获得所有的targets。(2≤n, 阅读全文

posted @ 2019-08-13 18:39 JASONlee3 阅读(314) 评论(0) 推荐(0) 编辑

导航