码迷,mamicode.com
首页 >  
搜索关键字:poj 1321    ( 20310个结果
Arbitrage POJ - 2240
#include<iostream> #include<queue> #include<cstdio> #include<cstring> using namespace std; double d[35]; int h[1010],cnt,n,pre[35]; bool vis[35]; stru ...
分类:其他好文   时间:2020-01-29 12:24:11    阅读次数:42
POJ 2253 Frogger
#include<math.h> #include<iomanip> //setprecision头文件 #include<stdio.h> #include<iostream> #include<algorithm> #include<string.h> #include<queue> using ...
分类:其他好文   时间:2020-01-29 12:15:57    阅读次数:51
Heavy Transportation POJ - 1797
#include<iostream> #include<algorithm> #include<queue> #include<map> #include<cstring> #include<cstring> #include<cstdio> #include<math.h> using names ...
分类:其他好文   时间:2020-01-29 12:15:38    阅读次数:71
Jungle Roads POJ - 1251 模板题
#include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=0x3f3f3f3f; int p[50]; struct edge{ int a,b,w; }e[100]; bool ...
分类:其他好文   时间:2020-01-29 12:11:08    阅读次数:72
Silver Cow Party POJ - 3268
#include<iostream> #include<queue> #include<cstring> using namespace std; const int N=200000+10,INF=0x3f3f3f3f; int h[N],e[N],ne[N],w[N],idx; int n,m, ...
分类:其他好文   时间:2020-01-29 12:10:32    阅读次数:56
poj 2019 Cornfields
Cornfields Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 9378 Accepted: 4420 Description FJ has decided to grow his own corn hybrid in or ...
分类:其他好文   时间:2020-01-29 10:24:05    阅读次数:95
poj 2155 Matrix
Matrix Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 36547 Accepted: 13109 Description Given an N*N matrix A, whose elements are either 0 ...
分类:其他好文   时间:2020-01-28 23:01:20    阅读次数:73
Milking Time POJ - 3616 dp 感觉像背包
#include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; const int N=1010; struct edge{ int start; int end; int ...
分类:其他好文   时间:2020-01-28 20:59:13    阅读次数:78
kuangbin专题专题十一 网络流 POJ 3436 ACM Computer Factory
题目链接:https://vjudge.net/problem/POJ-3436 Sample input 1 3 4 15 0 0 0 0 1 0 10 0 0 0 0 1 1 30 0 1 2 1 1 1 3 0 2 1 1 1 1 题目:P —— 一台电脑由p个零件组成 N —— 工厂有n台加 ...
分类:其他好文   时间:2020-01-28 20:56:06    阅读次数:82
Treats for the Cows POJ - 3186 dp 区间dp
//dp[i][j]表示第i次从左边取,第j次从右边取的价值,所以我们可以得到状态方程 //dp[i][j]=max(dp[i-1][j]+(i+j)*a[i],dp[i][j-1]+(i+j)*a[n-j+1]) (i > 0 && j > 0 ) //dp[i][0]=dp[i-1][0]+i* ...
分类:其他好文   时间:2020-01-28 19:34:37    阅读次数:68
20310条   上一页 1 ... 40 41 42 43 44 ... 2031 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!