好奇设计模式的源头,做了一番搜索和调查,于是便开启了这个系列“PrintJ的设计模式之旅”。1.模式之父GOF(Gang of Four)Erich Gamma、Richard Helm、Ralph Johnson 和 John Vlissides合著了"Design Patterns: Eleme...
分类:
其他好文 时间:
2014-07-29 21:08:32
阅读次数:
229
Agri-Net
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 39499
Accepted: 16017
Description
Farmer John has been elected mayor of his town! One of his campa...
分类:
Web程序 时间:
2014-07-29 17:57:12
阅读次数:
307
Description
Farmer John is leaving his house promptly at 6 AM for his daily milking of Bessie. However, the previous evening saw a heavy rain, and the fields are quite muddy. FJ starts at the point...
分类:
其他好文 时间:
2014-07-29 17:47:12
阅读次数:
247
详解:hdu 1907 John - lihaogegehuting的专栏 - 博客频道 - CSDN.NET
两道题几乎一样
代码如下:
#include
int main()
{
int T,a[100],i,sum,ok;
while(~scanf("%d",&T))
{
sum=0;
ok=0;
...
原题http://poj.org/problem?id=2456
Aggressive cows
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6001
Accepted: 2989
Description
Farmer John has built a new...
分类:
其他好文 时间:
2014-07-29 15:04:48
阅读次数:
199
Drainage Ditches
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 55276
Accepted: 21122
Description
Every time it rains on Farmer John's fields, a pond fo...
分类:
其他好文 时间:
2014-07-29 14:34:22
阅读次数:
185
??
Description
Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID tag that the system will read ...
分类:
其他好文 时间:
2014-07-29 13:22:46
阅读次数:
212
http://poj.org/problem?id=3254Corn FieldsTime Limit:2000MSMemory Limit:65536KTotal Submissions:7113Accepted:3778DescriptionFarmer John has purchased a...
分类:
其他好文 时间:
2014-07-29 10:40:46
阅读次数:
288
取火柴的游戏
题目1:今有若干堆火柴,两人依次从中拿取,规定每次只能从一堆中取若干根,
可将一堆全取走,但不可不取,最后取完者为胜,求必胜的方法。
若sum=0;则先取者输,后取者胜;
若sum=!0,则先取者使其变成奇异状态,先取者胜
即谁先面临奇异状态谁输;
题目2:今有若干堆火柴,两人依次从中拿取,规定每次只能从一堆中取若干根,
可将一堆全取走,但不可不取,...
分类:
其他好文 时间:
2014-07-28 16:30:13
阅读次数:
240
花括号保存对象方括号保存数组数组[];对象 {}数组对象:[ {}, {}, {} ](1)、复杂JSON对象。{"employees": [{ "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastN...
分类:
Web程序 时间:
2014-07-28 11:38:50
阅读次数:
234