
hdu
landcruiser007
这个作者很懒,什么都没留下…
展开
-
HDU 1000 A+B problem
problem descriptioncalculate A+Binputeach line will contain two integers A and B. process to end of lfileoutputfor each case , output A+B in one linesample input1 1sample outpu...原创 2018-09-01 13:14:29 · 226 阅读 · 0 评论 -
HDU 1062 text reverse
problem 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 and then output them.inputThe input co...原创 2018-09-02 11:13:41 · 339 阅读 · 0 评论 -
HDU 1064 financial management
problem descriptionLarry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial ...原创 2018-09-02 11:17:35 · 211 阅读 · 0 评论 -
HDU 1087 super jumping!jumping!jumping!
problem descriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to yo...原创 2018-09-02 11:36:33 · 422 阅读 · 0 评论 -
HDU 1089 for input-output practice(1)
problem descriptionYour task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some problems have the same titles with this...原创 2018-09-02 11:39:12 · 180 阅读 · 0 评论 -
HDU 1090 for input-output practice(2)
problem descriptionYour task is to Calculate a + b.inputInput contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a s...原创 2018-09-02 11:46:38 · 178 阅读 · 0 评论 -
HDU 1091 for input-output practice(3)
problem descriptionYour task is to Calculate a + b.inputInput contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case contain...原创 2018-09-02 11:50:23 · 221 阅读 · 0 评论 -
HDU 1092 for input-output practice(4)
problem descriptionYour task is to Calculate the sum of some integers.inputInput contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A...原创 2018-09-02 11:53:07 · 251 阅读 · 0 评论 -
HDU 1093 for input-output practice(5)
problem descriptionYour task is to calculate the sum of some integers.inputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M i...原创 2018-09-02 11:56:08 · 339 阅读 · 0 评论 -
HDU 1060 leftmost digit
解题思路: N^N用科学计数法表示为a*10^x 我们要得到的就是a 以10为底取对数 log10(N^N)=log10(a)+x Nlog10(N)=log10(a)+x log10(a)=Nlog10(N)-x a=10^(Nlog10(N)-x) 而由HDU 1018题(https://blog.youkuaiyun.com/landcruiser007/article/details/...原创 2018-09-02 11:09:34 · 203 阅读 · 0 评论 -
HDU 1052 tian ji--the horse racing
思路: 首先比较最慢的马。 1.如果田忌最慢的马比齐王最慢的马还慢:那么让田忌最慢的马去和齐王最快的马比。输一次。 2.如果田忌最慢的马比齐王最慢的马快:那么让两个比,胜一次。 3.如果最慢的马一样快:再比较田忌和齐王最快的马。如果田忌最快的马比齐王最快的马快,就让两个最快的马比。胜一次。 如果田忌最快的马比齐王最快的马慢,那么让田忌最慢的马去和齐王最快的马比。输一次。#includ...原创 2018-09-01 15:46:51 · 170 阅读 · 0 评论 -
HDU 1001 sum problem
problem descriptionhey, welcome to HDOJ. in this problem, your task is to calculate SUM(n)=1+2+3+…+n.input the input will consist of a series of integers n, one integer per line.outputfor e...原创 2018-09-01 13:19:34 · 199 阅读 · 0 评论 -
HDU 1003 max sum
problem descriptiongiven a sequence a[1],a[2],a[3]……a[n], your job is to calculate the max sum of a sub-sequence. for example, given(6,-1,5,4,-7),the max sum in this sequence is 6+(-1)+5+4=14input...原创 2018-09-01 13:49:25 · 158 阅读 · 0 评论 -
HDU 1004 let the balloon rise
problem descriptioncontest time again! how excited it is to see balloons floating around. but to tell you a secret, the judges’ favourite time is suessing the most popular problem. when the contest ...原创 2018-09-01 14:10:16 · 137 阅读 · 0 评论 -
HDU 1005 number sequence(重点题)
problem descriptionA number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, you are to calculate the value of f(n).inputThe i...原创 2018-09-01 14:51:16 · 261 阅读 · 0 评论 -
HDU 1009 fatmouse' trade(贪心)
problem descriptionFatMouse 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 conta...原创 2018-09-01 15:00:11 · 219 阅读 · 0 评论 -
HDU 1010 tempter of the bone(DFS)
problem descriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He re...原创 2018-09-01 15:07:46 · 155 阅读 · 0 评论 -
HDU 1018 big number(求n!的位数)
problem descriptionIn many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are ...原创 2018-09-01 15:16:11 · 205 阅读 · 0 评论 -
HDU 1022 train problem 1(栈)
problem descriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is t...原创 2018-09-01 15:32:01 · 211 阅读 · 0 评论 -
HDU 1094 A+B for input-output practice(6)
problem descriptionYour task is to calculate the sum of some integers.inputInput contains multiple test cases, and one case one line. Each case starts with an integer N, and then N integers foll...原创 2018-09-02 12:02:28 · 458 阅读 · 0 评论