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.