题解 | #单组_一维数组#
单组_一维数组
https://www.nowcoder.com/practice/f3a0631c336d42099103c187a9c65e62
#include <iostream> using namespace std; int main() { int len; cin >> len; long sum = 0; for(int i = 0; i < len; i++){ int num; cin >> num; sum += num; } cout << sum << endl; } // 64 位输出请用 printf("%lld")