随笔分类 - 图论-网络流
摘要:Knightsbridge Rises 题目描述 High-rise buildings in the wealthy retail district of Knightsbridge are usually built with exotic hoisting machines known, in
阅读全文
摘要:Problem L.Videos Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 163 Accepted Submission(s): 63
阅读全文
摘要:问题 A: 棋盘V 题目描述 有一块棋盘,棋盘的边长为100000,行和列的编号为1到100000。棋盘上有n个特殊格子,任意两个格子的位置都不相同。现在小K要猜哪些格子是特殊格子。她知道所有格子的横坐标和纵坐标,但并不知道对应关系。换言之,她只有两个数组,一个存下了所有格子的横坐标,另一个存下了所
阅读全文
摘要:Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others.Farmer John has c...
阅读全文
摘要:dinic 算法 时间复杂度 O(n*n*e) 1 struct node{ 2 int u,v,next,c; 3 }edge[maxn<<1]; 4 int head[maxn]; 5 int cnt,dis[maxn],n,m,ans; 6 7 void init(){ 8 memset(he
阅读全文

浙公网安备 33010602011771号