From 50c27ad26a90511aaefc9d535dbb9e86813e5ead Mon Sep 17 00:00:00 2001 From: szymmirr Date: Wed, 22 Jul 2020 08:44:56 +0200 Subject: [PATCH] Added sample C++ solution --- SIZECON.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 SIZECON.cpp diff --git a/SIZECON.cpp b/SIZECON.cpp new file mode 100644 index 0000000..a40d413 --- /dev/null +++ b/SIZECON.cpp @@ -0,0 +1,20 @@ +#include + +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; +}