摘要:
完全背包:Piggy-Bank猪猪储蓄罐Time Limit:1000MS Memory Limit:65536KTotal Submit:14 Accepted:6DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained.ACM要正常运转的前提,准备并提供好一定的财务预算费用是必需的。The main income for this action comes from Irreversibly Bound Money (IBM).这 阅读全文
摘要:
题目:01背包:Bone Collector骨骼收集家Time Limit:1000MS Memory Limit:65536KTotal Submit:44 Accepted:7DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”.许多年前,在泰迪镇有这么一个骨骼收集家。This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave … 阅读全文
摘要:
题目:http://60.191.162.158:8080/JudgeOnline/showproblem?problem_id=1230代码:#include<stdio.h>
int f[10001]={0},task[10001][3]={0},time[10001][3]={0};
int main()
{ int n,k,i,j,p; scanf("%d%d",&n,&k); p=0; for(i=1;i<=k;i++){ scanf("%d %d",&task[i][1],&task[i][2 阅读全文
摘要:
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int bs(int a){ if(a<0)return -a; return a;
} int min
(int a,int b,int c){ int temp; temp=b; if(a<b)temp=a; if(c<temp)temp=c; return temp;
}
int f[2001][2001]={0};
int main()
{ int i,j,k,l1,l2... 阅读全文