ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2100. Wedding Dinner

05580 с++
Posted by abram fedor 25 Mar 2022 06:13
#include <iostream>

using namespace std;

int main()
{
int n, x=2;
cin>>n;
 x += n;
 while(n--)
    {
      string s;
      cin >> s;
        for(int i=0; i<s.size(); i++)
        {
            if(s[i]=='+')
            {
                x++;
            }
        }
    }
    if(x!=13)   cout << 100*x<< endl;
    else            cout << 100*(x+1) << endl;


   return 0;
}

Edited by author 25.03.2022 06:15

Edited by author 25.03.2022 06:15