Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Timus 2100
- #include <string>
- #include <cstring>
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, len, answ=200;
- char mass[42];
- string s;
- cin >> n;
- for(int i=0;i<n;i++)
- {
- cin >> s;
- len = s.size();
- strcpy(mass, s.c_str());
- if(mass[len-4]=='+'){answ+=200;}
- else{answ+=100;}
- }
- if(answ==1300){cout<<"1400";}
- else{cout<<answ;}
- return 0;
- }
Add Comment
Please, Sign In to add comment