#define _CRT_SECURE_NO_WARNINGS
#include
#include
int main()
{
unsigned int num = 0;
scanf("%u",&num);
if (num <= 10)
{
return 0;
}
unsigned int wei = 0;
unsigned int a = num;
while (a)
{
wei++;
a /= 10;
}
unsigned int n = wei - 1;
unsigned int last = 1;
while (n)
{
last *= 10;
n--;
}
unsigned int lastres = 0;
lastres = (num / last)*last;
unsigned int b = 0;
b=num - lastres;
printf("\n%d", b);
system("pause");
return 1;
}
为什么提交之后华为系统返回格式错误,我用VS2015编译没事呀!