Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
46458 | yuzhengxun | 求和 | C++ | Accepted | 1 MS | 240 KB | 191 | 2024-05-04 09:12:34 |
#include<bits/stdc++.h> using namespace std; int main() { int n,s=0; cin>>n; for(int i=1;i<=n;i++){ int m; cin>>m; if(m>=10){ s+=m; } } cout<<s; return 0; }