Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106357 | 郭玉洁 | 18陶陶摘苹果 | C++ | Accepted | 1 MS | 272 KB | 278 | 2025-01-16 10:23:05 |
#include<bits/stdc++.h> using namespace std; int main() { int n = 10; int a[n]; for (int i = 0; i <= 9; i++) { cin >> a[i]; } int y;// cin >> y; int x = 0; for (int i = 0; i <= 9; i++) { if (y + 30 >= a[i]) { x++; } } cout << x; return 0; }