Skip to content

Instantly share code, notes, and snippets.

@aadimator
Created April 1, 2017 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aadimator/fc47a8a42d0acc02f094bbb39cccf00b to your computer and use it in GitHub Desktop.
Save aadimator/fc47a8a42d0acc02f094bbb39cccf00b to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
int t, a, output = 0;
cin >> t;
while(t--){
cin >> a;
output += a;
}
cout << output << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment