Credit score Problem Code: CREDSCORESubmit (Practice)
To access CRED programs, one needs to have a credit score of or more.
Given that the present credit score is , determine if one can access CRED programs or not.
If it is possible to access CRED programs, output , otherwise output .
Input Format
The first and only line of input contains a single integer , the credit score.
Output Format
Print if it is possible to access CRED programs. Otherwise, print .
You may print each character of the string in uppercase or lowercase (for example, the strings , , and will all be treated as identical).
Constraints
Subtasks
- Subtask 1 (100 points): Original constraints.
Sample Input 1
823
Sample Output 1
YES
Explanation
Since , it is possible to access CRED programs.
Sample Input 2
251
Sample Output 2
NO
Explanation
Since , it is not possible to access CRED programs.
solution
#include <iostream>
using namespace std;
int main() {
// your code goes here
int x;
cin >> x;
if (x >= 750)
cout << "YES\n";
else
cout << "NO\n";
return 0;
}
No comments:
Post a Comment