Skip to content

Instantly share code, notes, and snippets.

@ik11235
Created December 3, 2014 07:53
#include <iostream>
using namespace std;
int main(void){
int n,ans=0;
cin>>n;
for(int i=0;i<n;i++)
{
int tmp;
cin>>tmp;
ans+=tmp;
}
cout<<ans<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment