摘要:
利用几何关系转化以后,变成经典的区间覆盖问题,每次选择当前覆盖范围内能覆盖最远的线段 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 10010; const double eps 阅读全文
摘要:
先枚举出第一行的 \(2^n\) 种状态,然后递推出后面所有的行 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 20; const int INF = 1000000007; i 阅读全文
摘要:
\(string\) 的简单应用 #include<cstdio> #include<iostream> #include<map> using namespace std; typedef long long ll; const int maxn = 110; int T, n; map<stri 阅读全文