区间dp
囿于昼夜one
这个作者很懒,什么都没留下…
展开
-
Codeforces 149D Coloring Brackets(区间dp)
给出一个合法的括号序列,要求给这个序列染色,求染色方案。 1.可以选择无色、红色、蓝色。 2.每一对括号要有且仅有一个染色的括号。 3.相邻的括号不能有相同的颜色(无色没关系) #include<cstdio> #include<cstring> #include<algorithm> #define rep(i,a,b) for(int i=a;i<=b...原创 2019-09-17 22:30:20 · 138 阅读 · 1 评论 -
HDU 4283 You Are the One(区间DP)
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 show itself. The show is hold in the Small hall,...原创 2019-10-04 11:44:04 · 102 阅读 · 0 评论