Editorial for Награда


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.

Submitting an official solution before solving the problem yourself is a bannable offence.
by:

Тестовете можете да видите тук.

Примерно решение на C++:

#include<iostream>
using namespace std;
int main()
{
    int oc,br1=0,br2=0;
    for(int i=1;i<=7;i++)
    {
       cin>>oc;
       if(oc==2){br1++;}
       if(oc==6){br2++;}
    } 
    if(br1!=0 || br2==0)cout<<"No"<<endl; 
    else {         
          for(int i=1;i<=br2;i++) cout<<"*";
          cout<<endl;    
         }
   return 0;
}

Comments

There are no comments at the moment.