摘要: #pragma warning (disable : 4996) #include<iostream> #include<algorithm> #include<unordered_map> #include<fstream> #include<iomanip> #include<string> # 阅读全文
posted @ 2020-09-29 23:00 wansheking 阅读(111) 评论(0) 推荐(0)
摘要: #pragma warning (disable : 4996) #include <cstdio> #include <iostream> #include <algorithm> #include <string> #include <cstring> using namespace std; 阅读全文
posted @ 2020-09-29 22:54 wansheking 阅读(77) 评论(0) 推荐(0)
摘要: 很明显,当前行的状态只与前一行有关 并且当前行的状态与前一行的状态(i&j)==0时才满足条件 预处理出每种可能的状态 从前往后枚举每一行的状态 再枚举前一行的状态 dp存储该状态下最优结果 #pragma warning (disable : 4996) #include <cstdio> #in 阅读全文
posted @ 2020-09-29 22:49 wansheking 阅读(126) 评论(0) 推荐(0)