- 输入三个数字字符(字符‘1’~字符‘9’),输出由它们组成的一个整数。例如:输入‘2’、‘5’、‘7’,输出整数257。
输入格式:
输入在一行中给出3个字符,中间用1个空格分开。
输出格式:
在一行中输出转换后的1个整数。
输入样例:
2 5 7
输出样例:
257
代码长度限制16 KB
时间限制
400 ms
内存限制
64 MB
C (gcc)
#include<stdio.h>
int main()
{
int a,b,c,sum;
scanf("%d %d %d",&a,&b,&c);
sum=a*100+b*10+c;
printf("%d",sum);
return 0;
}
测试用例