提交时间:2024-05-04 09:07:20

运行 ID: 46451

#include <bits/stdc++.h> using namespace std; int a[10001]; int main(){ int n; cin >> n; for(int i = 1; i <= n; i++){ cin >> a[i]; } int sum = 0; for(int i = 1; i <= n; i++){ if(a[i] >= 10){ sum += a[i]; } } cout << sum; return 0; }