Skip to content

Commit

Permalink
Added sample C++ solution
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmirr committed Jul 22, 2020
1 parent 8c11a67 commit 50c27ad
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions SIZECON.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <iostream>

using namespace std;

int main()
{
int t, n, s;
s = 0;
cin >> t;
for(int i = 0; i < t; i++)
{
cin >> n;
if(n > 0)
{
s = s + n;
}
}
cout << s;
return 0;
}

0 comments on commit 50c27ad

Please sign in to comment.