#11704: 空白


curtis123 (curtis)

School : 國立嘉義高級中學
ID : 59072
IP address : [61.227.139.67]
Last Login :
2019-09-05 14:32:27
b138. NOIP2005 1.陶陶摘苹果 -- NOIP2005普及組 | From: [114.39.27.81] | Post Date : 2017-02-03 16:16

#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {

int a[10],h,s=0;
for(int i=0;i<10;i++) //0~9
cin>>a[i];

cin>>h;
for(int i=0;i<10;i++)
{
if(a[i]<=h+30)
s++;
}
cout<<s<<endl;

return 0;
}

 

 
ZeroJudge Forum