救,只对了一个

P1046 [NOIP2005 普及组] 陶陶摘苹果

```python lst = list(map(int, input().split())) h = int(input()) h += 30 count = 0 for i in lst: if i<=h: count+=1 print(count) ```
by Winds_Land @ 2024-01-23 16:40:39


@[muchenglin2023](/user/1238355) ``` #include<iostream> using namespace std; int main() { int a[10]={},b,e; e=0; for(int i=0;i<10;i++) { cin>>a[i]; } cin>>b; for(int d=0;d<10;d++) { if(b+30>=a[d]) { e++; } } cout<<e; return 0; } ```
by 120229xhj @ 2024-02-16 10:22:40


|