Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
52072 | 张思存 | 陶陶摘苹果 | C++ | Accepted | 0 MS | 236 KB | 274 | 2024-09-27 15:34:05 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10] ,m , num = 0; for(int i = 0;i < 10;i ++){ cin >> a[i]; } cin >> m; m += 30; for(int i = 0 ; i < 10 ; i ++){ if(a[i] < m ||a [i] == m){ num += 1; } } cout << num; return 0; }