社区讨论
WA
P1046[NOIP 2005 普及组] 陶陶摘苹果参与者 3已保存回复 5
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 5 条
- 当前快照
- 1 份
- 快照标识符
- @mlhxhs93
- 此快照首次捕获于
- 2026/02/11 19:10 上周
- 此快照最后确认于
- 2026/02/11 19:55 上周
CPP
#include<bits/stdc++.h>
using namespace std;
int a[15];
int cm,h;
int main(){
for(int i=1;i<=10;i++){
cin>>a[i];
}
cin>>cm;
for(int i=1;i<=10;i++){
if(cm+30>=a[i]) {
h++;
}
}
cout<<h;
return 0;
}
回复
共 5 条回复,欢迎继续交流。
正在加载回复...