#1561: answer


1654469-2@g.puiching.edu.mo (P6D06吳奕恩)

School : No School
ID : 3054
IP address : [192.168.120.33]
Last Login :
2024-06-14 10:51:05
a686. 陶陶摘苹果 | From: [192.168.120.33] | Post Date : 2024-05-22 11:16

#include<bits/stdc++.h>

using namespace std;

int main()

{

int apple[10], count=0;

for(int i=0;i<10;i++) cin>>apple[i];

int h;cin>>h;

for(int i=0;i<10;i++){

if(apple[i]<=30+h) count++;

}

cout<<count;

return 0;

}

 
ZeroJudge Forum