Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numb ...
分类:
其他好文 时间:
2017-04-09 10:44:33
阅读次数:
206
#include #include #include #include #include using namespace std; #define maxn 100001 int steps=0; int book[maxn]={0}; queueq; void bfs(int a,int b) {... ...
分类:
其他好文 时间:
2017-04-08 21:29:07
阅读次数:
183
Catch That Cow Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100 ...
分类:
其他好文 时间:
2017-04-08 19:40:59
阅读次数:
366
This article is made by Jason-Cow.Welcome to reprint.But please post the writer's address. http://www.cnblogs.com/JasonCow/ 链剖+线段树 所以为什么 2017.4.8 C题爆零 ...
分类:
其他好文 时间:
2017-04-08 16:14:55
阅读次数:
304
This article is made by Jason-Cow.Welcome to reprint.But please post the writer's address. http://www.cnblogs.com/JasonCow/ 叉积判方向 点积判角度 角度和=0°在外面 否则在里 ...
分类:
其他好文 时间:
2017-04-08 00:53:39
阅读次数:
240
首先是这个图 更多的理解参照这个 http://diaocow.iteye.com/blog/1922760 http://python.jobbole.com/84279/ 关于application的代码参照这个 http://www.jb51.net/article/65307.htm ...
分类:
Web程序 时间:
2017-04-05 21:50:19
阅读次数:
149
【题目链接】 http://poj.org/problem?id=3180 【题目大意】 N头牛,M条有向绳子,能组成几个歌舞团?要求顺时针逆时针都能带动舞团内所有牛。 【题解】 等价于求点数大于1的SCC数量。 【代码】 ...
分类:
其他好文 时间:
2017-04-04 16:02:24
阅读次数:
154
Dining Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 17181 Accepted: 7607 Description Cows are such finicky eaters. Each cow has a prefer ...
分类:
其他好文 时间:
2017-04-04 11:39:57
阅读次数:
219
题目: Description Bessie, Farmer John's prize cow, has just won first place in a bovine beauty contest, earning the title 'Miss Cow World'. As a result, ...
分类:
编程语言 时间:
2017-04-03 17:51:41
阅读次数:
277
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1631 解:先跑一遍最短路,把所有边都反过来以后,再跑一遍 程序: ...
分类:
其他好文 时间:
2017-04-03 00:59:23
阅读次数:
238