杭电oj
唐煜鑫
这个作者很懒,什么都没留下…
展开
-
1001数列求和
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 series of integers n, one integer per line. Output For each case, ou原创 2020-09-01 18:53:11 · 134 阅读 · 0 评论 -
杭电oj1000 A+B
Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. Sample Input 1 1 Sample Output 2 #include<stdio.h> int main() { int n; while(scanf("%d",原创 2020-09-01 18:49:52 · 131 阅读 · 0 评论