
杭电OJ基础知识
叙述杭电oj的基础知识
sxj731533730
江流儿
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
七、ASCII
Problem Description Since all we know the ASCII code, your job is simple: input numbers and output corresponding messages.Input The first line contains one integer T (1<=T<=1000). The input will con原创 2017-04-14 14:59:17 · 462 阅读 · 0 评论 -
八、Identity Card
Problem Description Do you own an ID card?You must have a identity card number in your family’s Household Register. From the ID card you can get specific personal information of everyone. The number h原创 2017-04-14 15:00:48 · 34347 阅读 · 0 评论 -
九、FatMouse' Trade
Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-th room contai原创 2017-04-14 15:03:05 · 718 阅读 · 0 评论 -
十、今年暑假不AC
Problem Description “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%…”确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节目,比如新闻联播(永远不要忘记关心国家大事)、非常6+7、超级女生,以及王小原创 2017-04-14 15:04:27 · 304 阅读 · 0 评论 -
十一、百步穿杨
百步穿杨 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5656 Accepted Submission(s): 1916 Problem Description 时维九月,序属三秋,辽军大举进攻MCA山,战场上两军正交锋.辽军统帅是原创 2017-04-17 09:21:06 · 829 阅读 · 0 评论 -
十二、What Is Your Grade?
Problem Description “Point, point, life of student!” This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too. How many points can you get? Now, I told you the原创 2017-05-05 13:41:00 · 722 阅读 · 0 评论 -
十五、Rank
Problem Description Jackson wants to know his rank in the class. The professor has posted a list of student numbers and marks. Compute Jackson’s rank in class; that is, if he has the top mark(or is ti原创 2017-05-15 16:44:36 · 637 阅读 · 0 评论 -
十六、As Easy As A+B
Problem Description These 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 nights. Give原创 2017-05-16 12:26:52 · 398 阅读 · 0 评论 -
十七、最小公倍数
Problem Description 给定两个正整数,计算这两个数的最小公倍数。Input 输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数.Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。Sample Input 10 14 Sample Output 70 #include<iostream>using namespace std;int原创 2017-05-16 12:42:07 · 646 阅读 · 0 评论 -
十八、How many prime numbers
Problem Description Give you a lot of positive integers, just to find out how many prime numbers there are.Input There are a lot of cases. In each case, there is an integer N representing the number原创 2017-05-16 19:37:31 · 482 阅读 · 0 评论 -
十三、Wooden Sticks
Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It need原创 2017-05-08 13:52:32 · 283 阅读 · 0 评论 -
十九、Largest prime factor
Problem Description Everybody knows any number can be combined by the prime number. Now, your task is telling me what position of the largest prime factor. The position of prime 2 is 1, prime 3 is 2原创 2017-05-20 12:51:14 · 414 阅读 · 0 评论 -
十四、排列2
Problem Description Ray又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input 每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。Output 对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千位数字相同的在同一行,同一行中每个四位数间用空格分隔。原创 2017-05-12 21:25:06 · 628 阅读 · 0 评论 -
六、IBM Minus One
Problem Description You may have heard of the book ‘2001 - A Space Odyssey’ by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is sent from Earth to Saturn. The cr原创 2017-04-14 14:58:16 · 379 阅读 · 0 评论 -
五、Balloon Comes!
Problem Description The contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very beautiful balloon if only you have solved the ver原创 2017-04-14 14:56:04 · 706 阅读 · 0 评论 -
一、Elevator
Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified o原创 2017-04-14 14:51:07 · 350 阅读 · 0 评论 -
二、Climbing Worm
Problem Description An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest, it原创 2017-04-14 14:52:13 · 472 阅读 · 0 评论 -
三、Nasty Hacks
Problem Description You are the CEO of Nasty Hacks Inc., a company that creates small pieces of malicious software which teenagers may use to fool their friends. The company has just finished their f原创 2017-04-14 14:53:19 · 314 阅读 · 0 评论 -
四、 Buildings
Problem Description We divide the HZNU Campus into N*M grids. As you can see from the picture below, the green grids represent the buidings. Given the size of the HZNU Campus, and the color of each gr原创 2017-04-14 14:55:00 · 396 阅读 · 0 评论 -
二十、整数对
Problem Description Gardon和小希玩了一个游戏,Gardon随便想了一个数A(首位不能为0),把它去掉一个数字以后得到另外一个数B,他把A和B的和N告诉了小希,让小希猜想他原来想的数字。不过为了公平起见,如果小希回答的数虽然不是A,但同样能达到那个条件(去掉其中的一个数字得到B,A和B之和是N),一样算小希胜利。而且小希如果能答出多个符合条件的数字,就可以得到额外的糖果。原创 2017-11-22 21:53:32 · 298 阅读 · 0 评论