记录详情

Wrong Answer


  
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 1ms 128.0 KiB
#3 Accepted 1ms 216.0 KiB
#4 Accepted 0ms 224.0 KiB
#5 Wrong Answer 0ms 220.0 KiB
#6 Wrong Answer 0ms 128.0 KiB
#7 Accepted 1ms 220.0 KiB
#8 Wrong Answer 1ms 128.0 KiB
#9 Wrong Answer 1ms 220.0 KiB
#10 Accepted 1ms 128.0 KiB
#11 Accepted 1ms 224.0 KiB
#12 Wrong Answer 0ms 128.0 KiB
#13 Accepted 1ms 220.0 KiB

代码

#include<stdio.h>
int main() 
{
	int n,m,k,a,a1;
	int i; 
	int shang,yu;
	scanf("%d%d%d",&n,&m,&k);
	while(n>0)
	{
		scanf("%d",&a);
		for(i=1;i<=m;i++)
		{
			a1=a-i;
			shang=a1/(k+1);
			yu=a1%(k+1);
			if(shang*(m-1)>=yu)
			break;
		}
		if(i==m+1)
		break;
		n--;
	}
	if(n==0)
	printf("Yes\n");
	else
	printf("No\n");
	return 0;
}

信息

递交者
类型
递交
题目
P1002 hitwh 2019 新生赛 C cqsss and his enterprise
语言
C
递交时间
2020-12-24 13:15:23
评测时间
2020-12-24 13:15:23
评测机
分数
60
总耗时
14ms
峰值内存
224.0 KiB