http://acm.hdu.edu.cn/showproblem.php?pid=2057
#include<stdio.h>intmain(void){__int64a,b;while(scanf("%I64X%I64X",&a,&b)!=EOF){b+=a;...
#include <stdio.h>
int main ( void )
{
__int64 a, b;
while ( scanf ( "%I64X %I64X", &a, &b ) != EOF )
{
b += a;
if ( b < 0 )
{
b = -b;
a = '-';
}
else
a = 0;
if ( a )
putchar ( a );
printf ( "%I64X\n", b );
}
return 0;
}
b += a;
if ( b < 0 )
{
b = -b;
a = '-';
}
else
a = 0;
if ( a )
putchar ( a )这段程序有何作用啊,我觉得没有也行啊 ,哪位牛人解释下啊,某刚出道详细点行吗? 展开
int main ( void )
{
__int64 a, b;
while ( scanf ( "%I64X %I64X", &a, &b ) != EOF )
{
b += a;
if ( b < 0 )
{
b = -b;
a = '-';
}
else
a = 0;
if ( a )
putchar ( a );
printf ( "%I64X\n", b );
}
return 0;
}
b += a;
if ( b < 0 )
{
b = -b;
a = '-';
}
else
a = 0;
if ( a )
putchar ( a )这段程序有何作用啊,我觉得没有也行啊 ,哪位牛人解释下啊,某刚出道详细点行吗? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询