Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
50045 | Hyma | 求和 | C++ | Accepted | 0 MS | 236 KB | 200 | 2024-08-07 11:46:10 |
#include<bits/stdc++.h> using namespace std; int main() { int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ int m; cin>>m; if(m>=10){ sum+=m; } } cout<<sum; return 0; }