Sponsors

Tag: problem: (A) Is it rated? Solution In C/C++

Codeforces Round #412 (rated,...

#include <iostream> using namespace std; int n,i,a,a1,b,f; string s={"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; }

Advertisement

spot_img