Codechef Problems : Cricket World Cup Qualifier (CWC23QUALIF)
Problem Statement:
https://www.codechef.com/problems/CWC23QUALIF
Solution:
Given, X : total points scored by the team
12 :
minimum points required to qualify for next stage
To find: check whether the team qualify for next stage or
not
Condition 1: X is greater than or equals to 12
Output: Yes
Condition 2: Otherwise
Output: No
Code Solution:
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x >= 12) {
cout <<
"Yes" << endl;
} else {
cout <<
"No" << endl;
}
return 0;
}
Comments
Post a Comment