4 solutions
- 1
Information
- ID
- 40
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 882
- Accepted
- 372
- Uploaded By
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int score;
cin>>score;
if((90<=score)&&(score<=100))
{
cout<<"Great"<<endl;
}
else if ((70<=score)&&(score<=89))
{
cout<<"Good"<<endl;
}
else if ((60<=score)&&(score<=69))
{
cout<<"Average"<<endl;
}
else
{
cout<<"Poor"<<endl;
}
return 0;
}
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int n;
scanf("%d",&n);
if(n>=0&&n<60)
printf("Poor");
else
if(n>=60&&n<70)
printf("Average");
else
if(n>=70&&n<90)
printf("Good");
else
if(n>=90&&n<100)
printf("Great");
return 0;
}
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.