码迷,mamicode.com
首页 >  
搜索关键字:max sum plus plus    ( 46271个结果
(RQoj 15 采药------rwkj 10.1.5.253 1447) 动态规划 DP 1
#include #include using namespace std;int dp[105][1005], w[105],v[105],T,M;int max(int x,int y){ return x>y?x:y; }void f( ){ int i,j; for (i=1; ...
分类:其他好文   时间:2014-08-12 21:55:54    阅读次数:353
(RQoj 15 采药------rwkj 10.1.5.253 1447) 动态规划 DP 2
70 371 10069 11 2#include #include using namespace std;int dp[105][1005], w[105],v[105],T,M;int max(int x,int y){ return x>y?x:y; }void f( ){ ...
分类:其他好文   时间:2014-08-12 21:50:24    阅读次数:299
(RQoj 15 采药------rwkj 10.1.5.253 1447) 递归 2
#include #include using namespace std;int dp[105][1005], w[105],v[105],T,M,;int max(int x,int y) { return x>y?x:y; }int f(int x,int y){ int t; if (...
分类:其他好文   时间:2014-08-12 21:48:24    阅读次数:289
(RQoj 15 采药------rwkj 10.1.5.253 1447) 动态规划 DP 3
#include #include using namespace std;int dp[1005], w[105],v[105],T,M;int max(int x,int y) { return x>y?x:y; }void f( ){ int i,j; for (i...
分类:其他好文   时间:2014-08-12 21:48:14    阅读次数:203
(RQoj 15 采药------rwkj 10.1.5.253 1447) 网上
#includeint max(int x,int y){ int z; if (x>y) z=x; else z=y; return z;}int max(int a,int b){ return a > b ? a : b;}int main(){ int t...
分类:其他好文   时间:2014-08-12 21:45:14    阅读次数:345
(RQoj 15采药------rwkj 10.1.5.253 1447) 记忆式搜索 1
#include using namespace std;int dp[105][1005],w[105],v[105] ;int max(int a,int b) { return a > b ? a : b; }int f(int x,int y){ int t ; if(dp[x][...
分类:其他好文   时间:2014-08-12 21:41:05    阅读次数:273
(RQoj 15 采药------rwkj 10.1.5.253 1447) 递归 1
#include using namespace std;int dp[105][1005],w[105],v[105] ;int max(int a,int b) { return a > b ? a : b; }int f(int x,int y){ int t ; if(dp[x][...
分类:其他好文   时间:2014-08-12 21:36:24    阅读次数:295
1458 poj--zoj 1733---------------递归
#include #include #define N 1005using namespace std ;char s1[N],s2[N];int dp[N][N],ans,len1,len2;int max(int a,int b){ return a>b ? a : b ; }int f(in....
分类:其他好文   时间:2014-08-12 21:29:24    阅读次数:175
1458 poj--zoj 1733---------------记忆式搜索
#include #include #define N 1005using namespace std ;char s1[N],s2[N];int dp[N][N],ans,len1,len2;int max(int a,int b){ return a>b ? a : b ; }int f(in....
分类:其他好文   时间:2014-08-12 21:29:14    阅读次数:219
足球赛售票
#include int f(int a,int b){ if(aint f(int a,int b){ if(b==0) return 1 ; if(a#define MAX 200void main( ){ int...
分类:其他好文   时间:2014-08-12 21:26:34    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!