我是0分啊0分(悲),不知道原因,求求大佬教我改改
查看原帖
我是0分啊0分(悲),不知道原因,求求大佬教我改改
1074760
Rotten楼主2023/11/5 23:31
#include<stdio.h>
int main()
{
	int chair=30;
	int height[9];
	scanf("%d %d %d %d %d %d %d %d %d %d",&height[0],&height[1],&height[2],&height[3],&height[4],&height[5],&height[6],&height[7],&height[8],&height[9]);
	int handmax;
	scanf("%d",&handmax);
	int n=0;
	int num=0;
	while(n<10){
	if(handmax+chair>=height[n]){
		num++;
		}
		n++;
	}
	printf("%d",num);
	return 0;
}

2023/11/5 23:31
加载中...