1720专题

hdu 1720(ACM steps 1.2.2)A+B coming

题目描述 A+B Coming Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4554    Accepted Submission(s): 2917 Problem Description Many class

hdu_1720 A+B Comeing

原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1720 分析:用%x,十六进制输入,%d 十进制输出即可。 代码: #include<stdio.h> int main() {     int a,b;     while(~scanf("%x%x",&a,&b))     {         printf("%d\n",a+b);