摘要:
A Cookie Exchanges 模拟 Problem Statement Takahashi, Aoki and Snuke love cookies. They have A, B and C cookies, respectively. Now, they will exchange th 阅读全文
摘要:
题目大意 给定一个n个点m条边的有向图,以n为源点.对于一个点u,求在所有n u的路径上都出现的点的编号之和. n include include include using namespace std; typedef long long ll; inline void read(int &x){ 阅读全文
摘要:
题目大意: 给定一张无向图,判断是不是弦图. 题解: 今天刚学了《弦图与区间图》 本来写了一个60行+的学习笔记 结果因为忘了保存重启电脑后被还原了... 那就算了吧. MCS最大势算法,写起来挺愉悦的. 不过觉得除了做裸题就只能做裸题了.. 直接贴板子 C++ include include in 阅读全文
摘要:
题目: 对于边带权的有向图,找出一个点数最小的环,使得环上的边权和为负. 2 include include using namespace std; typedef long long ll; inline void read(int &x){ x=0;static char ch;bool fl 阅读全文