尤斯蒂亚 @ 2020-09-20 19:12:52
#include<stdio.h>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{ int x[10];
int y,i,k=0;
for (i=1;i<=10;i++)
cin >> x[i];
cin >> y;
for (i=1;i<=10;i++)
if (x[i]<=y+30) k++;
cout << k;
return 0;
}
by 尤斯蒂亚 @ 2020-09-20 19:13:40
我下载了数据,答案是对的,但还是没分
by UperFicial @ 2020-09-20 19:14:30
@尤斯蒂亚
by do_while_true @ 2020-09-20 19:14:45
数组越位了
by UperFicial @ 2020-09-20 19:14:57
数组下标是从
by quest_2 @ 2020-09-20 19:15:08
因为你x数组开小了QwQ
by UperFicial @ 2020-09-20 19:15:18
还有话说这是
by SteveFang @ 2020-09-20 19:15:45
萌新用户,多理解一下
by UperFicial @ 2020-09-20 19:16:25
@SteveFang az
by 出言不逊王子 @ 2020-09-20 19:17:00
@SteveFang ¿
by UperFicial @ 2020-09-20 19:17:48
@SteveFang 您管这叫萌新/fad/fad