LeeBlog

导航

HDU 2057 A + B Again

#include<stdio.h>
long long z,x,y;
int main( )
{
    while( scanf( "%I64x%I64x",&x,&y ) != EOF )
    {
           z = x + y;
           if( z < 0 )
               printf( "-" ), z = -z;
           printf( "%I64X\n",z );
           }           
    return 0;    
}

posted on 2011-04-29 13:50  LeeBlog  阅读(191)  评论(0编辑  收藏  举报