HDOJ
而今_迈步从头越
额,萌新一枚~
展开
-
HDOJ-1001 Sum Problem
Problem Description Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + … + n. Input The input will consist of a原创 2017-07-26 16:58:53 · 226 阅读 · 0 评论 -
HDOJ-1002 A + B Problem II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate th原创 2017-07-26 21:26:10 · 175 阅读 · 0 评论 -
HDOJ-1003 Max Sum
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description Given a sequence a[1],a[2],a[3]……a[n], your job is to calculate the max sum of a sub-sequence原创 2017-07-26 23:22:14 · 194 阅读 · 0 评论 -
HDOJ-1004 Let the Balloon Rise
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secr原创 2017-07-27 23:12:26 · 185 阅读 · 0 评论 -
HDOJ-2010 水仙花数
Problem Description 春天是鲜花的季节,水仙花就是其中最迷人的代表,数学上有个水仙花数,他是这样定义的: “水仙花数”是指一个三位数,它的各位数字的立方和等于其本身,比如:153=13+53+33153=1^3+5^3+3^3。 现在要求输出所有在m和n范围内的水仙花数。 Input 输入数据有多组,每组占一行,包括两个整数m和n(100<=m<=原创 2017-07-28 20:38:52 · 216 阅读 · 0 评论 -
HDOJ-2039 三角形
Problem Description 给定三条边,请你判断一下能不能组成一个三角形。 Input 输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000; Output 对于每个测试实例,如果三条边长A,B,C能组成三角形的话,输出YES,否则NO。 Sample Input 2 1 2原创 2017-07-28 21:15:53 · 165 阅读 · 0 评论