diff --git a/282A-Bit++/282A.cpp b/282A-Bit++/282A.cpp new file mode 100644 index 0000000..f51b636 --- /dev/null +++ b/282A-Bit++/282A.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() +{ + int n, x = 0; + cin >> n; + while (n--) + { + char op[4]; + cin >> op; + if (op[1] == '+') + x++; + else if (op[1] == '-') + x--; + } + cout << x << endl; +} \ No newline at end of file