随笔分类 -  动规-区间DP

摘要:Description The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card 阅读全文
posted @ 2017-03-20 17:30 Robin! 阅读(308) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://vjudge.net/problem/UVA-10003 思路: 石子合并问题的逆过程,做法一模一样; Code: 阅读全文
posted @ 2017-02-06 16:11 Robin! 阅读(121) 评论(0) 推荐(0) 编辑
摘要:Problem Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the 阅读全文
posted @ 2017-02-04 21:46 Robin! 阅读(246) 评论(0) 推荐(0) 编辑
摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 #define MAXN 1000+10 4 int dp[MAXN][MAXN], a[MAXN]; 5 6 void InitRMQ(int l, int r, int n){ 7 int k 阅读全文
posted @ 2017-01-22 21:29 Robin! 阅读(139) 评论(0) 推荐(0) 编辑
摘要:Description FJ has purchased N (1 <= N <= 2000) yummy treats for the cows who get money for giving vast amounts of milk. FJ sells one treat per day an 阅读全文
posted @ 2017-01-22 21:15 Robin! 阅读(115) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示