标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 90793 Accepted Submission(s): 48215
1 #include <iostream> 2 using namespace std; 3 int main() { 4 int n; 5 while(cin >> n && n != 0) 6 { 7 int sum = 0; 8 int temp; 9 for(int i = 1; i <= n; i++) 10 { 11 cin >> temp; 12 sum += temp; 13 } 14 cout << sum << endl; 15 } 16 return 0; 17 }
hdu 1092 A+B for Input-Output Practice (IV)
标签:
原文地址:http://www.cnblogs.com/qinduanyinghua/p/5518164.html