Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- #include<cstdlib>
- #include<algorithm>
- #include<cmath>
- #include<cstring>
- using namespace std;
- const int MAXN = 20;
- int main() {
- int n, cnt = 0;
- bool o = 0;
- char k = '+';
- string a;
- cin >> n;
- for (int i = 0; i < n; i++) {
- cin >> a;
- for (int h = 0; ; h++) {
- if (k == a[h]) {
- o = 1;
- break;
- }
- else if (a[h] == '\0')
- break;
- }
- if (o == 1)
- cnt += 2;
- else cnt++;
- cout << '\n';
- o = 0;
- }
- if (cnt == 11)
- cout << cnt * 100 + 300;
- else cout << cnt * 100 + 200;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement