摘要: 洛谷p3806 code #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e5 + 7; const int inf = 1e7; int n, m, mx[maxn], si 阅读全文
posted @ 2022-10-11 17:47 Catherine_leah 阅读(19) 评论(1) 推荐(0) 编辑
摘要: 问题 A: 【2022NOIP联测710月11日】找(a) 一看到是个数学题还感觉挺恐怖,把式子写出来才发现它很水。 没开long long大样例跑不出来还以为T1又没了……然而幸好及时发现问题。 #include <bits/stdc++.h> using namespace std; typed 阅读全文
posted @ 2022-10-11 15:46 Catherine_leah 阅读(41) 评论(5) 推荐(0) 编辑
摘要: A. 蜥蜴 我坚信我背的板子是对的,结果我记错了,k = dinic(y, min(rest, a[i].w)被我记成了和flow取min…… 对建反向边理解还不深刻,有的边反向了有的边没反向,还把源点到蜥蜴全都连成了inf,事实上应该连1,因为最大流答案不能超过蜥蜴总数,有蜥蜴的石柱上只有一只,没 阅读全文
posted @ 2022-10-11 08:00 Catherine_leah 阅读(11) 评论(1) 推荐(2) 编辑
/* */