#include<iostream> #include<string> using namespace std; int main(){ int a, b; int total; while(cin>>a && a != 0){ total = 0; for(int i = 0; i < a; i++){ cin>>b; total += b; } cout<<total<<endl; } }
【上篇】Objective-C数组 NSArray与NSMutableArray的区别 NSDictionary与 NSMutableDictionary 的区别 == int,NSInteger,NSUIn
【下篇】poj3715——Blue and Red//最小顶点覆盖
【下篇】poj3715——Blue and Red//最小顶点覆盖