[恢]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 ;
}



posted @ 2012-01-06 22:35  Seraph2012  阅读(140)  评论(0编辑  收藏  举报