- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 两个一元多项式相加(链表 || 顺序表实现)
顺序表实现:#include #include #include #include #include using namespace std;#define maxsize 1000struct Data{ double coef; int exp;};struct List{ Data* elem; int length;};char s[100];
2015-09-23 17:24:00 13395 1
原创 HDU 1281
棋盘游戏Time Limit: 1000MS Memory Limit: 32768KB64bit IO Format: %I64d & %I64uDescription小希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽量多的一些国际象棋里面的“车”,并且使得他们不能互相攻击,这当然很简单,但是Gardon限制了只有某些格子才可以放,小希还是很轻松的解决了这个
2015-09-07 21:06:23 412
原创 POJ 2392(多重背包)
Space ElevatorTime Limit: 1000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64uDescriptionThe cows are going to space! They plan to achieve orbit by buildin
2015-09-06 22:03:59 414
原创 POJ 1787(完全背包+记录路径)
POJ - 1787Charlie's ChangeTime Limit: 1000MS Memory Limit: 30000KB 64bit IO Format: %I64d & %I64uDescriptionCharlie is a driver of Advanced Cargo Movement, Lt
2015-09-06 21:33:27 460
原创 ZOJ 1149(多重背包)
DividingTime Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %lld & %lluMarsha and Bill own a collection of marbles. They want to split the collection among themse
2015-09-06 20:34:12 379
原创 HDU 1150
HDU - 1150Machine ScheduleTime Limit: 1000MS Memory Limit: 32768KB 64bit IO Format: %I64d & %I64uDescriptionAs we all know, machine scheduling is a very class
2015-09-05 10:35:31 346
原创 HDU 2255(KM 模板题)
奔小康赚大钱Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5552 Accepted Submission(s): 2438Problem Description传说在遥远的地方有一个非常富裕的村落,有一
2015-09-04 22:05:16 414
原创 HDU 1533
Going HomeTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3469 Accepted Submission(s): 1780Problem DescriptionOn a grid
2015-09-02 19:39:20 390
原创 连续增广路算法
const int maxn = 110;const int maxm = 5010;struct Edge{ int to, next, c, f;}edge[maxm*10];int head[maxn],dis[maxn],load[maxn],p[maxn];int n;bool flag[maxn];bool spfa(int start,int end){
2015-09-01 22:19:15 473
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人