[恢]hdu 2057
2011-12-20 02:53:00
地址:http://acm.hdu.edu.cn/showproblem.php?pid=2057
题意:十六进制a+b~
代码:
# include <stdio.h>
int main ()
{
long long a, b, c ;
while (~scanf ("%I64X%I64X", &a, &b))
{
c = a+b ;
if (c < 0){putchar ('-') ; c = -c ;}
printf ("%I64X\n", c) ;
}
return 0 ;
}