背包dp
文章平均质量分 83
信天翁_
这个作者很懒,什么都没留下…
展开
-
Gym - 100989M 0-1背包
Time limit 1000 ms Memory limit 262144 kB George met AbdelKader in the corridor of the CS department busy trying to fix a group of incorrect equations. Seeing how fast he is, George decided to cha...原创 2018-07-18 11:20:57 · 208 阅读 · 0 评论 -
Gym - 100989L dfs
Time limit 1000 ms Memory limit 262144 kB 题目描述: AbdelKader enjoys math. He feels very frustrated whenever he sees an incorrect equation and so he tries to make it correct as quickly as possible! ...原创 2018-07-06 11:15:24 · 480 阅读 · 0 评论 -
01背包
//01背包问题 #include <iostream> #include<stdio.h> #include<string.h> using namespace std; const int M=0x3f3f3f3f; void sort1(int *a,int left,int right) { if(left>=right) ...原创 2018-03-11 13:44:29 · 176 阅读 · 0 评论