自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

sky_zdk的博客

相信奇迹的人本身就和奇迹一样了不起

  • 博客(4)
  • 收藏
  • 关注

原创 uva 242 DP 求s张邮票可以连续组合成最大面值多少的邮票

#include #include #include using namespace std; int d[36][36],dp[1036],res[36]; int main(){ int s,n; while(scanf("%d",&s) == 1 && s){ scanf("%d",&n); for(int i = 1;i <= n;i++){ scanf("%d",&d[

2017-11-06 09:10:25 268

原创 uva 1630 KMP判断周期串 和 区间DP 压缩字符串

#include #include #include #include #include using namespace std; string dp[160][160]; char s[160],t[160]; int f[160]; string ToString(int x){ string res = ""; while(x){ res += (char)('0' + (x % 1

2017-11-06 08:22:50 330

原创 uva1629 切方格使得每个方格中只有一个物品,求最少切割费用 记忆化搜索

#include #include #include #define INF 0x3f3f3f3f using namespace std; int dp[36][36][36][36],x[500],y[500],n,m,k; int dfs(int x1,int y1,int x2,int y2){ int &t = dp[x1][y1][x2][y2]; if(t != -1) retu

2017-11-06 07:21:03 210

原创 uva 10118 Free Candies

#include #include #include using namespace std; int vis[30],top[5],dp[60][60][60][60],n,d[4][60]; int dfs(int k){ int &t=dp[top[0]][top[1]][top[2]][top[3]]; if(t != -1) return t; t=0; if(k >= 5 ||

2017-11-06 07:18:42 205

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除