| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 38698 | JINHAOLAN | 计算数组前缀和 | C++ | Accepted | 0 MS | 236 KB | 184 | 2024-01-28 09:43:08 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m=0; cin>>n; int a[n]; for(int i=0;i<n;i++) { cin>>a[i]; m+=a[i]; cout<<m<<" "; } return 0; }