摘要:
题目链接:https://www.luogu.org/problemnew/show/P1955 并查集操作,1e9要离散化,数组要开大一些,操作前先执行合并操作 ~~样例好毒啊(全是排好序的)~~ include include include include using namespace st 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1373 想不出来状态 看了一眼题解状态明白了 dp[i][j][h][1/0] 表示在i,j点差值为h是小A还是uim移动的 include include include include define ll 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/SP2713 真暴力啊。 开方你开就是了,开上6次就都没了。 include include include include include define ll long long using namespace 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P2245 = 货车运输 被逼着写过mst+lca 后来成了mst+树剖 include include include include using namespace std; const int maxn = 阅读全文
摘要:
总结:stl真好用 include include include include using namespace std; const int maxn = 100100; int a[maxn], n, lis[maxn], len; int main() { ios::sync_with_st 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/SP6285 唉好久之前校内模拟赛的题目 嘴上说着明白但是实现起来我的位运算太丑陋了啊! include include include include define ll long long using name 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/UVA11806 容斥原理+组合数 正着找合♂fa的不好找,那就用总方案数 不合♂fa的 include include include include using namespace std; const int 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P2279 想怎么贪怎么贪 include include include include include using namespace std; const int maxn = 1010; int n, an 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P2919 1.搜索的时候分清楚全局变量和局部变量的区别 2.排序优化搜索 include include include include using namespace std; const int maxn = 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P3946 交好几遍是因为虽然能过一直有提醒..强迫症qwq include define ll long long using namespace std; const int maxn = 5 1e6 + 10 阅读全文