Codeforces 1191A. Tokitsukaze and Enhancement Solution

Solve in C++:

#include<iostream>
using namespace std;
main()
{
int n,a;
cin>>n;
a=n%4;
if(a==1)
cout<<"0 "<<"A"<<endl;
else if(a==2)
 cout<<"1 "<<"B"<<endl;
else if(a==3)
 cout<<"2 "<<"A"<<endl;
 else if(a==0)
 cout<<"1 "<<"A"<<endl;

}

No comments

Most View Post

Recent post

RESTful APIs with CRUD Operations in Laravel 12| (2025)

  RESTful APIs serve as the foundation of modern web development. They follow a set of rules called Representational State Transfer (REST) t...

Powered by Blogger.