OJ-Problems-Source/CodeVS/1906_冰封.c

17 lines
217 B
C
Raw Normal View History

2016-07-06 14:28:18 +08:00
#include <stdio.h>
int a[10];
int main(void){
int b,j = 0,i;
for(i = 0; i < 10; i++)
scanf("%d",&a[i]);
scanf("%d",&b);
b += 30;
for(i = 0; i < 10; i++){
if(a[i]<=b)
j++;
}
printf("%d",j);
return 0;
}