Problem

Given the time control of a chess match as a+b, determine which format of chess out of the given 4 it belongs to.
- Chef if a + b \lt 3a+b<3
- Cfenia if 3 \leq a + b \leq 103≤a+b≤10
- Chefina if 11 \leq a + b \leq 6011≤a+b≤60
- Cf if 60 \lt a + b60<a+b.
Input Format
- First line will contain T, number of testcases. Then the testcases follow.
- Each testcase contains a single line of input, two integers a, b.
Output Format
For each testcase, output in a single line.
Constraints
Sample
Input
4
1 0
4 1
100 0
20 5
Output
1
2
4
3
Explanation
TestCase 1: Since a+b=1<3.
TestCase 2: Since 3≤(a+b=5)≤10.
Solution

cpp
#include <iostream>
using namespace std;
class Chess{
int a,b,c;
public:
void game();
};
void Chess::game(){
cin>>a>>b;
c=a+b;
if(c<3)
cout<<1<<endl;
else if(c>=3&&c<=10)
cout<<2<<endl;
else if(c>=11&&c<=60)
cout<<3<<endl;
else
cout<<4<<endl;
}
int main() {
// your code goes here
int t;
cin>>t;
Chess c;
while(t--){
c.game();
}
return 0;
}
Please First Try to Solve Problem by Yourself.