摘要: Number StepsTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionStarting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the figure. For example, 1, 2, and 3 has been written at points (1,1), 阅读全文
posted @ 2012-07-10 22:01 ismdeep 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Ignatius and the Princess IVTime Limit:1000MSMemory Limit:32767KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:Description"OK, you are not too bad, em... But you can never pass the next test." feng5166 says."I will tell you an odd number N, and then N integers. Ther 阅读全文
posted @ 2012-07-10 21:55 ismdeep 阅读(155) 评论(0) 推荐(0) 编辑
摘要: B -As Easy As A+BTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThese days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, I got it after many waking nigh 阅读全文
posted @ 2012-07-10 21:27 ismdeep 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Triangle WaveIn this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below. This lin 阅读全文
posted @ 2012-07-10 21:01 ismdeep 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Kindergarten Counting GameEverybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how many words I just said?Input and OutputInput to your program will consist of a series of lines, each line containing multiple words (at least one 阅读全文
posted @ 2012-07-10 20:09 ismdeep 阅读(172) 评论(0) 推荐(0) 编辑
摘要: The DecoderWrite a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded set of characters and print the exact message that the characters contain. The code key for this simple coding is a one for one character s 阅读全文
posted @ 2012-07-10 19:35 ismdeep 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Back to High School PhysicsInput:standard inputOutput:standard outputA particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?InputThe input will contain two integers in each line. Each line makes one 阅读全文
posted @ 2012-07-10 19:19 ismdeep 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Hashmat the brave warriorInput:standard inputOutput:standard outputHashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his opponents. Before fighting he just calculates one thing, the difference between his soldier number and the opponent& 阅读全文
posted @ 2012-07-10 19:16 ismdeep 阅读(169) 评论(0) 推荐(0) 编辑
摘要: J -JTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionHOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。Input第一行有一个整数T,接下来T组数据,每组数据占2行,第一行是一个整数N(0<N<=1000000),第二行是N个数,表示N 阅读全文
posted @ 2012-07-10 15:48 ismdeep 阅读(149) 评论(0) 推荐(0) 编辑
摘要: I -ITime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or 阅读全文
posted @ 2012-07-10 15:48 ismdeep 阅读(161) 评论(0) 推荐(0) 编辑
摘要: F -FTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets.The following n lines each represent a data set. Each data set will be formatted accordi 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(107) 评论(0) 推荐(0) 编辑
摘要: E -ETime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thu 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(232) 评论(3) 推荐(0) 编辑
摘要: G -GTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgor K. always used to trust his favorite Kashpirovsky Antivirus. That is why he didn't hesitate to download the link one of his groupmates sent him via QIP Infinium. The link was said to contain &q 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(188) 评论(0) 推荐(0) 编辑
摘要: H -HTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示成都的大街上有几个路口,标号为1的路口是商店所在地,标号为N的路口是赛场所在地,M则表 阅读全文
posted @ 2012-07-10 15:47 ismdeep 阅读(178) 评论(0) 推荐(0) 编辑
摘要: C -CTime Limit:10000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionConsider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that sati 阅读全文
posted @ 2012-07-10 15:45 ismdeep 阅读(143) 评论(0) 推荐(0) 编辑
摘要: D -DTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIn the Fibonacci integer sequence,F0= 0,F1= 1, andFn=Fn− 1+Fn− 2forn≥ 2. For example, the first ten terms of the Fibonacci sequence are:0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …An alternative formula for the Fi 阅读全文
posted @ 2012-07-10 15:45 ismdeep 阅读(171) 评论(0) 推荐(0) 编辑
摘要: A -ATime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。Input测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ( < 100 );随后的 N行对应村庄间道路的成本,每行给出一对正整数 阅读全文
posted @ 2012-07-10 15:44 ismdeep 阅读(170) 评论(0) 推荐(0) 编辑
摘要: B -BTime Limit:1000MSMemory Limit:1000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionRecently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard game.The size of the chesserboard is n*m.First of all, a coin is placed in the top right 阅读全文
posted @ 2012-07-10 15:44 ismdeep 阅读(140) 评论(0) 推荐(0) 编辑
摘要: RobberiesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3934Accepted Submission(s): 1492Problem DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because the 阅读全文
posted @ 2012-07-10 10:56 ismdeep 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 今天课程主要是图论的一些入门的知识,上午图的基本知识概念,还有遍历,下午讲了桥,求桥。http://poj.org/problem?id=3352这个题目你可以做一下。。还有就是学长给我们一个地址,是华东交大11届比赛的地址,比赛时间10日,你自己看一下时间。到时候你也去吧。记得把名字中注明自己的学校名字。如果要密码的话是:123456网址:http://acm.hust.edu.cn:8080/judge/contest/view.action?cid=9184#overview 阅读全文
posted @ 2012-07-10 09:19 ismdeep 阅读(188) 评论(0) 推荐(0) 编辑