摘要:
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 course, I got it after many waking nights.Give you some integers, your task is to sort these number ascending (升序).You should know how easy the proble 阅读全文
posted @ 2013-01-13 20:05
刘一卜
阅读(1332)
评论(0)
推荐(0)
摘要:
Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one integer per line.OutputFor each case, output SUM(n) in one line, followed by a blank line. You may assume t 阅读全文
posted @ 2013-01-13 19:51
刘一卜
阅读(481)
评论(0)
推荐(0)
摘要:
Problem DescriptionCalculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2题意:求输入的两个数之和。分析:注意题目暗含循环输入输出。AC源代码(C语言):1 #include<stdio.h>2 int main()3 {4 int a,b;5 while(scanf("%d%d&qu 阅读全文
posted @ 2013-01-13 19:38
刘一卜
阅读(3375)
评论(0)
推荐(0)

浙公网安备 33010602011771号