Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

problem category codechef solution in c++

/*
  problem link: https://www.codechef.com/LP1TO201/problems/PROBCAT
*/  

#include<iostream>
#include<climits>
#define ll long long
#include<vector>
#include<stack>
#include<string>
#include<algorithm>
using namespace std;

void solve()
{
	ll x;
	cin >> x;
	if (x >= 1 && x < 100)
		cout << "Easy
";
	else if (x >= 100 && x < 200)
		cout << "Medium
";
	else
		cout << "Hard
";
}

int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		solve();
	}
	return 0;
}
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #problem #category #codechef #solution
ADD COMMENT
Topic
Name
6+3 =