摘要: 七夕节Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21248Accepted Submission(s): 648Problem Description七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!"人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下:数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2, 阅读全文
posted @ 2013-03-10 23:26 哥的笑百度不到 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 吃糖果Time Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 15484Accepted Submission(s): 4445Problem DescriptionHOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。Input第一行有一个整数T 阅读全文
posted @ 2013-03-10 22:26 哥的笑百度不到 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Common SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15192Accepted Submission(s): 629Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, x 阅读全文
posted @ 2013-03-10 20:53 哥的笑百度不到 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 排序Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24829Accepted Submission(s): 6732Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。Input输入包含多组 阅读全文
posted @ 2013-03-10 19:56 哥的笑百度不到 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Text ReverseTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11201Accepted Submission(s): 427Problem DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words 阅读全文
posted @ 2013-03-10 17:35 哥的笑百度不到 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Rightmost DigitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22791Accepted Submission(s): 8697Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line 阅读全文
posted @ 2013-03-10 16:54 哥的笑百度不到 阅读(139) 评论(0) 推荐(0) 编辑
摘要: N!Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39265Accepted Submission(s): 10930Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N, output N! in 阅读全文
posted @ 2013-03-09 09:48 哥的笑百度不到 阅读(115) 评论(0) 推荐(0) 编辑
摘要: As Easy As A+BTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 26298Accepted Submission(s): 11177 Problem 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 阅读全文
posted @ 2013-03-08 22:41 哥的笑百度不到 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Robot MotionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4452Accepted Submission(s): 2057 Problem DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid d 阅读全文
posted @ 2013-03-08 22:20 哥的笑百度不到 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Problem 2091 播放器Accept: 155Submit: 571 Time Limit: 1000 mSecMemory Limit : 32768 KBProblem Descriptionshadow喜欢听音乐,于是v11自己写了个播放器送给了shadow,这个播放器有一个播放列表,一个“下一首”按钮,一个“上一首”按钮,还有一个播放记录。一开始播放器会播放播放列表中的第一首歌,当按下“下一首”按钮时,它会播放当前歌曲在播放列表中的下一首歌,若当前歌曲就是播放列表中的最后一首歌时,它仍会播放播放列表中的最后一首歌;当按下“上一首”按钮时,它会清除播放记录中的最后一首歌,并播放. 阅读全文
posted @ 2013-03-08 21:28 哥的笑百度不到 阅读(167) 评论(0) 推荐(0) 编辑