摘要: 青蛙过桥时间限制:1000 ms | 内存限制:65535 KB难度:3描述The annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog athletes to jump over the river. The width of the river is L (1<= L <= 10000 阅读全文
posted @ 2013-05-29 21:52 可笑痴狂 阅读(1586) 评论(0) 推荐(0)
摘要: 疯牛时间限制:1000 ms | 内存限制:65535 KB难度:4描述农夫 John 建造了一座很长的畜栏,它包括N (2 <= N <= 100,000)个隔间,这些小隔间依次编号为x1,...,xN (0 <= xi <= 1,000,000,000).但是,John的C (2 <= C <= N)头牛们并不喜欢这种布局,而且几头牛放在一个隔间里,他们就要发生争斗。为了不让牛互相伤害。John决定自己给牛分配隔间,使任意两头牛之间的最小距离尽可能的大,那么,这个最大的最小距离是什么呢?输入有多组测试数据,以EOF结束。第一行:空格分隔的两个整数N和C第 阅读全文
posted @ 2013-05-29 20:36 可笑痴狂 阅读(2208) 评论(2) 推荐(0)