随笔分类 - 水题之路
摘要:1 #include<iostream>2 using namespace std;3 void main()4 {5 int a,b;6 while(~scanf("%x%x",&a,&b))7 printf("%d\n",a+b);8 }//A, B are hexadecimal number.
阅读全文
摘要:Sum ProblemTime Limit: 1000/500 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 164763Accepted Submission(s): 38888Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.In
阅读全文