上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 43 下一页
摘要: 威威猫系列故事——拼车记Time Limit: 500/200 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 938Accepted Submission(s): 284Problem Description 话说威威猫有一次去参加比赛,虽然学校离比赛地点不太远,但威威猫还是想坐出租车去。大学城的出租车总是比较另类,有“拼车”一说,也就是说,你一个人坐车去,还是一堆人一起,总共需要支付的钱是一样的(每辆出租上除司机外最多坐下4个人)。刚好那天同校的一群Acmer在校门口扎堆了,大家果. 阅读全文
posted @ 2013-06-03 20:29 可笑痴狂 阅读(452) 评论(0) 推荐(0)
摘要: Humble NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12573Accepted Submission(s): 5509Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16 阅读全文
posted @ 2013-06-02 21:05 可笑痴狂 阅读(599) 评论(0) 推荐(0)
摘要: FibonacciTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7241Accepted: 5131DescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2. For example, the first ten terms of the Fibonacci sequence are:0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …An alternative formul 阅读全文
posted @ 2013-06-02 17:08 可笑痴狂 阅读(13445) 评论(1) 推荐(2)
摘要: 小珂的图表时间限制:1000 ms | 内存限制:65535 KB难度:2描述小珂最近有一个麻烦,就是要统计一下指定区域中有几个方格被染黑了.表格的布局及表格各个位置的坐标如下所示.有三种操作命令,BLACK x,y,l 表示把以坐标(x,y)为左上角顶点,(x+l-1,y+l-1)为右下角顶点的矩形染黑。WHITE x,y,l 表示吧指定区域染白。TEST x,y,l 表示计算指定区域的黑块的个数。说明:如果 x,y,x+l-1 ,y+l-1超出图表的范围,就只计算图表内部的。输入第一行有一个整数n(0<n<100),表示有n条命令,随后的n行有n个指令。输出遇到TEST命令,把 阅读全文
posted @ 2013-05-31 22:05 可笑痴狂 阅读(397) 评论(0) 推荐(0)
摘要: 青蛙过桥时间限制: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 可笑痴狂 阅读(1583) 评论(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 可笑痴狂 阅读(2201) 评论(2) 推荐(0)
摘要: Max Sum Plus PlusTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12589Accepted Submission(s): 4146Problem DescriptionNow I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves 阅读全文
posted @ 2013-05-28 21:31 可笑痴狂 阅读(10292) 评论(0) 推荐(0)
摘要: AGTCTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7923Accepted: 3142DescriptionLet x and y be two strings over some finite alphabet A. We would like to transform x into y allowing only operations given below:Deletion: a letter in x is missing in y at a corresponding position.Insertion: a 阅读全文
posted @ 2013-05-27 20:55 可笑痴狂 阅读(2386) 评论(0) 推荐(0)
摘要: 1、【结果填空】 (满分5分)1949年的国庆节(10月1日)是星期六。 今年(2012)的国庆节是星期一。那么,从建国到现在,有几次国庆节正好是星期日呢?只要答案,不限手段!可以用windows日历,windows计算器,Excel公式,。。。。。当然,也可以编程!不要求写出具体是哪些年,只要一个数目!千万不要提交源代码!答案不要写在这里,写在“解答.txt”中 1 #include <cstdio> 2 #include <iostream> 3 4 using namespace std; 5 6 int main() 7 { 8 int cnt = 0; 9 i 阅读全文
posted @ 2013-05-27 15:26 可笑痴狂 阅读(1140) 评论(0) 推荐(0)
摘要: 1、题目标题: 高斯日记大数学家高斯有个好习惯:无论如何都要记日记。他的日记有个与众不同的地方,他从不注明年月日,而是用一个整数代替,比如:4210后来人们知道,那个整数就是日期,它表示那一天是高斯出生后的第几天。这或许也是个好习惯,它时时刻刻提醒着主人:日子又过去一天,还有多少时光可以用于浪费呢?高斯出生于:1777年4月30日。在高斯发现的一个重要定理的日记上标注着:5343,因此可算出那天是:1791年12月15日。高斯获得博士学位的那天日记上标着:8113 请你算出高斯获得博士学位的年月日。提交答案的格式是:yyyy-mm-dd, 例如:1980-03-21请严格按照格式,通过浏览器提 阅读全文
posted @ 2013-05-27 15:22 可笑痴狂 阅读(3954) 评论(0) 推荐(2)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 43 下一页