/ 科创班 /

记录详情

Wrong Answer


  
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 2ms 256.0 KiB
#8 Wrong Answer 2ms 256.0 KiB
#9 Accepted 2ms 256.0 KiB
#10 Accepted 1ms 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("N:");
	while(c / 10 != 0)
	{
		count++;
 
		b = c % 10;
		printf("%d",b);
		c = c / 10;	
	}	
	b = c % 10;
	printf("%d ",b);
	printf("W:%d ",count);
	printf("NUM:");
	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-18 23:09:28
评测时间
2018-07-18 23:09:28
评测机
分数
90
总耗时
23ms
峰值内存
256.0 KiB