aboutsummaryrefslogtreecommitdiff
path: root/codechef/problemCategory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/problemCategory.cpp')
-rw-r--r--codechef/problemCategory.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/codechef/problemCategory.cpp b/codechef/problemCategory.cpp
new file mode 100644
index 0000000..4eb7500
--- /dev/null
+++ b/codechef/problemCategory.cpp
@@ -0,0 +1,23 @@
+#include<bits/stdc++.h>
+
+using namespace std;
+
+int main () {
+ ios_base::sync_with_stdio(false);
+ cin.tie(NULL);
+ int tt;
+ cin >> tt;
+ while(tt--){
+ int x;
+ cin >> x;
+ if(x < 100) {
+ cout << "Easy" << '\n';
+ }
+ else if(x >= 100 && x < 200) {
+ cout << "Medium" << '\n';
+ }
+ else if(x >= 200 && x <= 300) {
+ cout << "Hard" << '\n';
+ }
+ }
+}