码迷,mamicode.com
首页 >  
搜索关键字:最小路径    ( 492个结果
hdu 1104 数论+bfs
题意:给n,m,k;输出n经过+-*%后(n%k+k)%k==((n+1)%k)%k 输出最小路径与运算副zsd:% 只是求余数 有正负 mod 是求模 无正负、yhd:对m*k求余对 对k求余不对#include#includeusing namespace std;struct Node{ .....
分类:其他好文   时间:2014-07-22 23:06:14    阅读次数:369
Leetcode:Minimum Path Sum 最小路径和
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at...
分类:其他好文   时间:2014-04-28 10:46:41    阅读次数:311
492条   上一页 1 ... 48 49 50
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!