/ 科创班 /

记录详情

Wrong Answer


  
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 256.0 KiB
#2 Wrong Answer 2ms 256.0 KiB
#3 Wrong Answer 3ms 256.0 KiB
#4 Wrong Answer 2ms 256.0 KiB
#5 Wrong Answer 2ms 256.0 KiB
#6 Wrong Answer 2ms 256.0 KiB
#7 Wrong Answer 2ms 256.0 KiB
#8 Wrong Answer 2ms 256.0 KiB
#9 Wrong Answer 2ms 256.0 KiB
#10 Wrong Answer 2ms 256.0 KiB

代码


#include <stdio.h>
#include <math.h>
 
int main()
{
	int a,b,c,d;
	int count = 1;
	scanf("%d",&a);
	c = a;
	printf("逆序:");
	while(c / 10 != 0)
	{
		count++;
 
		b = c % 10;
		printf("%d",b);
		c = c / 10;	
	}	
	b = c % 10;
	printf("%d\n",b);
	printf("位数是:%d\n",count);
	printf("各位数字分别为:");
	while(a % 10 != 0)
	{
		d = a / (int)pow(10,(count-1));
		printf("%d ",d);
		a = a % (int)pow(10,count-1);
		count--;
	}
	return 0;
}

信息

递交者
类型
递交
题目
4.9数位
题目数据
下载
语言
C
递交时间
2018-07-17 21:20:31
评测时间
2018-07-17 21:27:24
评测机
分数
0
总耗时
25ms
峰值内存
256.0 KiB