code for fun

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年2月26日

摘要: Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(1 0) { a = cin.nextBigInteger(); b = cin.nextBigInteger(); System.out.println("Case "... 阅读全文
posted @ 2014-02-26 03:10 xueda120 阅读(310) 评论(0) 推荐(0) 编辑

摘要: Problem DescriptionHey, 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 ... 阅读全文
posted @ 2014-02-26 02:24 xueda120 阅读(556) 评论(0) 推荐(0) 编辑