Description为 了跟踪所有的牛,农夫JOHN在农场上装了一套自动系统. 他给了每一个头牛一个电子牌号 当牛走过这个系统时,牛的名字将被自动读入. 每一头牛的电子名字是一个长度为M (1 2 3 #include 4 5 #include 6 7 #include 8 9 #inc...
分类:
移动开发 时间:
2014-10-28 19:38:42
阅读次数:
290
上回的《Django和Ajax的那些事儿-Ajax
Get》,讲过$.get(),它是从Django服务端获取我们想要的数据,然后渲染到前端html。今天说到Post方式,葫芦画瓢,让人想:会不会
有$.post()。嗯,没错,的确有$.post(),官网示例:viewplainprint?$.post("test.cgi",{name:"John",time:"2pm..
分类:
Web程序 时间:
2014-10-28 18:06:12
阅读次数:
317
DescriptionFarmer John以及他的N(1 #include #include #include using namespace std;int v[2501];int n,m;int f[2501]; int main(){ freopen("data.txt","r",stdin...
分类:
其他好文 时间:
2014-10-28 15:08:16
阅读次数:
176
Cleaning Shifts
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2743
Accepted: 955
Description
Farmer John's cows, pampered since birth, have reached new h...
分类:
其他好文 时间:
2014-10-28 13:59:49
阅读次数:
201
POJ 3683 Priest John's Busiest Day
题目链接
题意:给定几个时间,si, ti, di每个时间要选[si, si + di]或[ti - di, ti],问能否选出所有时间不相交的方案
思路:显然的2-sat,注意判断相交的方法
代码:
#include
#include
#include
using namespace std...
分类:
其他好文 时间:
2014-10-28 10:24:50
阅读次数:
212
DescriptionFarmer John打算将电话线引到自己的农场,但电信公司并不打算为他提供免费服务。于是,FJ必须为此向电信公司支付一定的费用。 FJ的农场周围分布着N(1 3;3->2;2->5,这3对电话线杆间需要的 电话线的长度分别为4、3、9。FJ让电信公司提供那条长度为9的电话线,...
分类:
其他好文 时间:
2014-10-27 14:12:44
阅读次数:
222
DescriptionFarmer John最近发明了一个游戏,来考验自命不凡的贝茜。游戏开始的时 候,FJ会给贝茜一块画着N (2 #include #include #include using namespace std;const int INF=21474836;int n,tot=0,a...
分类:
其他好文 时间:
2014-10-27 00:21:20
阅读次数:
201
POJ 3480 & HDU 1907 John(尼姆博弈变形)...
分类:
其他好文 时间:
2014-10-26 17:01:43
阅读次数:
187
Building Roads
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9360
Accepted: 2690
Description
Farmer John had just acquired several new farms! He wants to...
分类:
其他好文 时间:
2014-10-24 12:59:25
阅读次数:
224
Catch That CowTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 48127Accepted: 15077DescriptionFarmer John has been informed of the location of...
分类:
其他好文 时间:
2014-10-23 20:45:19
阅读次数:
260