题解 | #进制A+B#
进制A+B
http://www.nowcoder.com/practice/6187581174ac48278ca3bccf8d534897
#include<stdio.h>
int main(void)
{
int a,b,result;
scanf("%x %o",&a,&b);//注意怎么输入十六进制和八进制
result=a+b;
printf("%d",result);
return 0;
}
进制A+B
http://www.nowcoder.com/practice/6187581174ac48278ca3bccf8d534897
#include<stdio.h>
int main(void)
{
int a,b,result;
scanf("%x %o",&a,&b);//注意怎么输入十六进制和八进制
result=a+b;
printf("%d",result);
return 0;
}
相关推荐