提交时间:2024-11-09 09:59:49
运行 ID: 56076
#include <iostream> using namespace std; int main() { int n; cin >> n; int num; int sum = 0; for (int i = 0; i < n; i++) { cin >> num; if (num >= 10) { sum += num; } } cout << sum << endl; return 0; }