Codeforces Round #412 (rated, Div. 2, base on VK Cup 2017 Round 3), problem: (A) Is it rated? Solution In C/C++

#include <iostream>
using namespace std;
int n,i,a,a1,b,f;
string s[3]={“maybe”,”unrated”,”rated”};
int main(){
cin>>n;
for(;i<n;i++){
cin>>a>>b;
if(a!=b){f=2;break;}
if(i>0&&a>a1)f=1;
a1=a;
}
cout<<s[f];
}

Advertisement

spot_img

Top 5 Metaverse Games...

  The metaverse is a virtual world where users can...

Forex Trading- The Best...

  Bringing in cash has for the most part been...

Music + Faith: 3...

Faith and music go hand in hand, with many...

Executive Producer John Lasseter...

In the past week, it was announced that Skydance...

Online Study Tips To...

The pandemic has changed the daily schedule for everyone...

Do you really need...

Changing a PDF format file into a Word file...

Top 5 Metaverse Games of 2023

  The metaverse is a virtual world where users can interact with each other and the environment in real time. It is a place where...

Forex Trading- The Best Way To Make Money Online

  Bringing in cash has for the most part been connected with and restricted to customary 'disconnected' courses. With the Internet progressing and being a...

Music + Faith: 3 Reasons to Book Christian Live Acts

Faith and music go hand in hand, with many saying they believe we connect so much better with religion when we're able to celebrate...

Executive Producer John Lasseter and Skydance Animation Team Up for the Movie Luck

In the past week, it was announced that Skydance animation studios is releasing their first movie since hiring animator, John Lasseter, as the head...

Online Study Tips To Help You Succeed

The pandemic has changed the daily schedule for everyone and how they go on with their lives. With offices and educational institutes now shut...

Do you really need a PDF editing tool?

Changing a PDF format file into a Word file or any other format could be a really frustrating task. While PDFs have become quite...

How to Benefit from the Services of a Tax Attorney

However, if your condition worsens, you may require the services of an attorney. Tax law is a specialized area of the law, and tax...

Tips on Buying Diamond Engagement Rings

When planning an engagement, one always want to get the best for their fiancée; thus, comparing and contrasting different options in the market is...

How To Create A Fun And Healthy Working Environment?

Everyone likes to work in a fun and engaging place that has a positive vibe in the work culture. This kind of atmosphere not...