Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106333 | 周琨智 | 18陶陶摘苹果 | C++ | Accepted | 1 MS | 276 KB | 244 | 2025-01-16 09:57:15 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10]; int b; int s; s=0; for(int i=0;i<=9;i++){ cin>>a[i]; } cin>>b; for(int i=0;i<=9;i++){ if((b+30)>=a[i]){ s=s+1; } } cout<<s; return 0; }