摘要:
A - Dima and Trap Graph CF366D Dima and Trap Graph 题解:考虑二分满足答案区间,但是发现这个区间并不具有单调性。于是我们考虑固定一个端点(不妨固定左端点),然后二分右端点,此时右端点是有单调性的。 然后思考如何判断是否联通。这题可以直接使用并查集,把 阅读全文
摘要:
A - Physical Education Lessons CF915E Physical Education Lessons 题解:没什么好说的,动态开点模板题(好像普通线段树也可以做) B - GCD of an Array CF1493D GCD of an Array 题解:暴力分解质因数 阅读全文
摘要:
A - Going Home HDU1533 Going Home 题解:费用流板子题,没什么好说的 B - Boxes SOPJ Boxes 题解:又一道费用流板子题,但是我以为它是个序列然而它是个环 C - The Most Reckless Defense The Most Reckless 阅读全文
摘要:
A - Little Pony and Crystal Mine CF454A Little Pony and Crystal Mine 题解:弱智模拟题 B - Little Pony and Expected Maximum CF453A Little Pony and Expected Max 阅读全文
摘要:
A - Flow Problem HDU3549 Flow Problem 题解:网络流版题,甚至今天早上我还只会EK(辛亏卡EK的没那么多,但是还是被迫学习dinic) B - War HDU-3599 War 题意:求1到n最短路径(无向边)的最大条数(一条边不能重复经过) 题解:题面就让人难懂 阅读全文
摘要:
A - Strictly Positive Matrix CF402E Strictly Positive Matrix 题解:若a[i][j]为1,那么i向j连边,若只有一个scc有解否则无解 手模一下矩阵的运算规则就不难发现 B - Reachability from the Capital C 阅读全文