动态规划
somniloquy_
为利益而活 如腐尸般不堪
展开
-
HDU-4504 威威猫系列故事——篮球梦
#include <iostream> #include <cstdio> #include <cstring>using namespace std;const int round_max = 20 + 5; const int grade_max = 20 * 3 + 5; long long dp[round_max][grade_max]; //表示 第i回合 获得 j分 的原创 2015-09-11 20:40:16 · 463 阅读 · 1 评论 -
HDU-1864 最大报销额
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm>using namespace std;const int q_max = 1000 * 30 * 100 + 5; const int n_max = 30 + 5;double dp[q_max]; double abc[3]; double原创 2015-09-13 00:29:26 · 691 阅读 · 1 评论 -
HDU-2955 Robberies
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm>using namespace std;const int money_max = 1e4 + 5; const int n_max = 100 + 5; double dp[money_max]; struct node { int mo原创 2015-09-13 22:10:35 · 311 阅读 · 0 评论