From 24c6e4e9c16315553ec4833de3123ba32acc6a41 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Wed, 27 Jul 2016 09:51:12 +0800 Subject: [PATCH] Create 1544.cpp --- VIJOS/1544.cpp | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 VIJOS/1544.cpp diff --git a/VIJOS/1544.cpp b/VIJOS/1544.cpp new file mode 100644 index 0000000..f79f335 --- /dev/null +++ b/VIJOS/1544.cpp @@ -0,0 +1,52 @@ +/*原题是这样的: +对于20%数据,1<=n<=10; +对于100%数据,1<=rmb<=100,1<=rp<=100,1<=time<=1000; +对于100%数据,1<=m<=100,1<=r<=100,1<=n<=100.*/ +#include +#include +#include + +#include +using namespace std; + +#define MAXN 101 +#define MAXV 101 +#define MAXU 101 +/** f[x][y] means GG can find f[x][y] MM by x of V and y of U*/ +int f[MAXV][MAXU]; +/** time[x][y] means it takes time[x][y] while x of V and y of U is taken,*/ +int time[MAXV][MAXU]; +int v[MAXN]; +int u[MAXN]; +int w[MAXN]; +int main() +{ + int n; + scanf("%d",&n); + for(int i=0;i=v[i];j--) + { + for(int k=r;k>=u[i];k--) + { + if(f[j][k]