
二分图
huanghongxun
这个作者很懒,什么都没留下…
展开
-
UVALive 7958|Gym 101201G|Maximum Islands|二分图|最大独立点集
DescriptionYou are mapping a faraway planet using a satellite. Your satellite has captured an image of the planet’s surface. The photographed section can be modeled as a grid. Each grid cell is either原创 2017-12-09 20:05:14 · 342 阅读 · 0 评论 -
2017 ACM-ICPC Hua-Lien Regional
A: Smooth Sequences 如果一个序列是光滑的仅当相邻元素差的绝对值不超过d。称一个序列是半光滑的仅当修改至多一个元素使得序列变得光滑。给定序列询问是否光滑。 题解 半光滑的有3种情况,一种是连续两端差均不满足d,这种判断两端点差不超过2d即可,一种是一端的差不满足d,随便改,一种是中间某段不满足d,判断修改左右端点即可。 #include <bits/stdc...原创 2018-05-01 17:24:05 · 1173 阅读 · 1 评论