摘要: 传送门:http://codeforces.com/problemset/problem/580/d 思路:状压DP,f[i][j]表示最后一个为i,已选取的菜的状态为j。 #include#include#includeconst int maxt=540000;using namesp... 阅读全文
posted @ 2015-09-25 11:40 orzpps 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 传送门:http://codeforces.com/problemset/problem/573/c 思路:见官方题解。。。 #include#include#include#includeconst int maxn=100010;using namespace std;int n,... 阅读全文
posted @ 2015-09-25 10:42 orzpps 阅读(276) 评论(0) 推荐(0) 编辑