Sillycat @ 2019-03-19 12:51:44
#include<iostream>
using namespace std;
int main()
{
int a[10];
int b=0,c=0,d=0;
for(int i=1;i<=10;i++)
{
cin>>a[i];
}
cin>>b;
c=b+30;
for(int i=1;i<=10;i++)
{
if(a[i]>=c)
{
d++;
}
}
cout<<d<<endl;
return 0;
}
一脸懵逼
by dead_X @ 2019-03-19 12:54:33
a[10] 改为 a[11]
by dead_X @ 2019-03-19 12:54:52
不然数组会炸吧
by Skeleton @ 2019-03-19 12:54:54
数组越界
by Skeleton @ 2019-03-19 12:55:03
同楼上大佬
by dead_X @ 2019-03-19 12:55:51
@Skeleton sto orz FAKE
by Skeleton @ 2019-03-19 13:00:46
@dead_X 您才是巨佬!~orz
by Sillycat @ 2019-03-19 13:06:40
@dead_X 过了,竟然是大于小于号反了...... 我该去医院检查一下脑子了