摘要:
struct seg { int l, r; int flag; int id; }s[N]; int split(int x, int y) { int cnt = 0; int flag=0; int fx = top[x], fy = top[y]; while (fx != fy) { if 阅读全文
摘要:
题目 题目链接:http://poj.org/problem?id=3177 In order to get from one of the F (1 <= F <= 5,000) grazing fields (which are numbered 1..F) to another field, 阅读全文
摘要:
题目 链接:https://acm.hdu.edu.cn/showproblem.php?pid=1808 very year there is the same problem at Halloween: Each neighbour is only willing to give a certa 阅读全文