4 solutions

  • 1
    @ 2023-9-17 14:20:45

    #include <stdio.h>

    int main(){

    int a;

    scanf("%d",&a);

    if(a>=90&&a<=100){printf("Great");}

    else if(a>=70&&a<=89){printf("Good");}

    else if(a>=60&&a<=69){printf("Average");}

    else if(a>=0&&a<=59){printf("Poor");}

    return 0;

    }

    • 0
      @ 2023-10-3 17:19:15

      算是一道入门题目了

      #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
        @ 2022-4-4 17:16:46

        这题还好

        #include <iostream>
        using namespace std;
        int main()
        {
            int n = 0;
            cin >> n;
            if(n >= 90) cout << "Great" << endl;
            else if(n >= 70) cout << "Good" << endl;
            else if(n >= 60) cout << "Average" << endl;
            else cout << "Poor" << endl;
            return 0;
        }
        
        • 0
          @ 2022-3-7 20:11:35
          #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
          735
          Accepted
          301
          Uploaded By