随笔分类 -  水题之路

摘要: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. 阅读全文
posted @ 2012-08-22 13:16 疼痛落在指尖 阅读(160) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2012-08-04 22:18 疼痛落在指尖 阅读(119) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示