#11704: 空白


curtis123 (curtis)

學校 : 國立嘉義高級中學
編號 : 59072
來源 : [36.239.81.102]
最後登入時間 :
2020-05-14 20:50:36
b138. NOIP2005 1.陶陶摘苹果 -- NOIP2005普及組 | From: [114.39.27.81] | 發表日期 : 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