A+Bcoming

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  疼痛落在指尖  阅读(159)  评论(0编辑  收藏  举报