衰囧坑神 @ 2017-05-29 09:33:02
#include<iostream>
using namespace std;
int main()
{
int a[10],i,b=0,x,c;
for(i=0;i<=10;i++) {
cin>>a[i];
}
cin>>x;
c=x+30;
for(i=0;i<=10;i++){
if(a[i]<=x){
b++;
}
if((a[i]>x)&&(a[i]<=c)){
b++;
}
}
cout<<b<<endl;
}
by tarjen @ 2017-05-29 09:45:55
10个数啊姐姐。。。你这0----10 11个数。。。@哀囧坑神
by std__unsigned @ 2017-05-29 09:58:01
滋磁
by 衰囧坑神 @ 2017-05-29 10:17:58
@taojun 嗷嗷,谢谢
by S0lution @ 2017-06-14 19:40:38
i从1开始,不从零