4 solutions
-
0
算是一道入门题目了
#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; }
-
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; }
- 1
Information
- ID
- 40
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 851
- Accepted
- 355
- Uploaded By