http://poj.org/problem?id=3278 题目大意:农场主约翰得知了一头逃跑的母牛的行踪,想立即抓住她。他从一个点开始,N(0≤N≤100000)在数轴上,牛点K(0≤K≤100000)在同一数轴。农夫约翰有两种交通方式:步行和心灵运输。 *行走:FJ可以在一分钟内从任意点X移动 ...
分类:
其他好文 时间:
2018-04-27 02:30:27
阅读次数:
191
Description 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,00 ...
分类:
其他好文 时间:
2018-02-12 23:40:52
阅读次数:
186
Catch That Cow Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 102339 Accepted: 31988 Description Farmer John has been informed of the loca ...
分类:
其他好文 时间:
2018-01-07 15:53:31
阅读次数:
149
POJ3278:Catch That Cow kuangbin专题一:C题 题目链接:http://poj.org/problem?id=3278 Description Farmer John has been informed of the location of a fugitive cow ...
分类:
其他好文 时间:
2017-10-08 18:10:53
阅读次数:
205
Description 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,00 ...
分类:
其他好文 时间:
2017-09-06 10:05:44
阅读次数:
203
Catch That Cow Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 97240 Accepted: 30519 Description Farmer John has been informed of the locat ...
分类:
其他好文 时间:
2017-08-22 13:19:57
阅读次数:
185
#include #define MAX 100001 int john,cow; int queue[MAX]; int vis[MAX]; int ans; void bfs() { int tail,head; tail=head=0; int start=john; queue[tail++... ...
分类:
其他好文 时间:
2017-04-28 16:10:10
阅读次数:
204
Description 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,00 ...
分类:
其他好文 时间:
2017-04-23 18:15:02
阅读次数:
135
Catch That Cow Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 88247 Accepted: 27640 Description Farmer John has been informed of the locat ...
分类:
其他好文 时间:
2017-04-12 21:34:46
阅读次数:
257
Catch That Cow Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N ...
分类:
其他好文 时间:
2017-02-22 13:25:59
阅读次数:
202