11 条题解

  • 2
    @ 2023-9-25 22:11:30

    #include<stdio.h> int main() { int S; scanf("%d",&S); switch(S) { case 90 ... 100: printf("A"); break; case 80 ... 89: printf("B"); break; case 70 ... 79: printf("C"); break; case 60 ... 69: printf("D"); break; case 0 ... 59: printf("E"); break; default: printf("EORR"); }return 0;}

    • 2
      @ 2022-9-21 22:35:26
      #include<stdio.h>
      int main()
      {
          int S;
          scanf("%d",&S);
          if(90<=S&&S<=100)
          printf("A");
          else if(80<=S&&S<90)
          printf("B");
          else if(70<=S&&S<80)
          printf("C");
          else if(60<=S&&S<70)
          printf("D");
          else if(0<=S&&S<60)
          printf("E");
          else
          printf("EORR");
          return 0;
      }
      
      • 1
        @ 2022-9-19 8:53:29

        #include<stdio.h>

        int main(){

        int S;

        scanf("%d",&S);

        while(S<0||S>100){

        printf("EORR");

        return 0;

        }

        switch(S/10){

        case 9 ... 10:printf("A");break;

        case 8:printf("B");break;

        case 7:printf("C");break;

        case 6:printf("D");break;

        case 0 ... 5:printf("E");break;

        }

        return 0;

        }

        • 0
          @ 2026-8-27 0:24:36

          #include <stdio.h>

          int main() { int s,x; scanf("%d",&s); if(s==100){printf("A"); //TODO } else { x=s/10; switch (x){ case 9: printf("A"); break; case 8: printf("B"); break; case 7: printf("C"); break; case 6: printf("D"); break; case 5: case 4: case 3: case 2: case 1: case 0: printf("E"); break; default: printf("EORR"); break; } } return 0;

          }

          • 0
            @ 2025-10-15 20:35:49
            #include <stdio.h>
            
            int main() {
            int S,t;
            scanf("%d",&S);
            t= S/10;
            if(S==100){
                printf("A");
            }
            else{
                   switch(t){
                       case 9:
                       printf("A");
                       break;
                       case 8:
                       printf("B");
                       break;
                       case 7:
                       printf("C");
                       break;
                       case 6:
                       printf("D");
                       break;
                       case 0:
                       case 1:
                       case 2:
                       case 3:
                       case 4:
                       case 5:
                       printf("E");
                       break;
                       default:
                       printf("EORR");
            }
            }
            return 0;
            }
            //哈基米
            
            • 0
              @ 2024-4-24 22:05:43
              #include <stdio.h>
              int main()
              {
                  int a,b;
                  scanf("%d",&a);
                  b=a/10;
                  if(a==100)printf("A");
                  else switch (b)
                  {
                  case 0:
                  case 1:
                  case 2:
                  case 3:
                  case 4:
                  case 5:printf("E");break;
                  case 6:printf("D");break;
                  case 7:printf("C");break;
                  case 8:printf("B");break;
                  case 9:printf("A");break;
              
                  default:printf("EORR"); break;
                  }
                  
                  return 0;
              }//
              
              • 0
                @ 2023-9-27 22:28:35

                #include<stdio.h> int main() { int S; scanf("%d",&S); switch(S) { case 90 ... 100: printf("A"); break; case 80 ... 89: printf("B"); break; case 70 ... 79: printf("C"); break; case 60 ... 69: printf("D"); break; case 0 ... 59: printf("E"); break;

                default:
                	printf("EORR");
                	break;		
                }
                
                return 0;
                

                }

                • 0
                  @ 2023-8-16 0:58:15

                  #include <stdio.h>

                  int main() { int S;

                  scanf("%d", &S);
                  if(90<=S && S<=100){
                  	printf("A");
                  }
                  else if(80<=S && S<90)
                  {
                  	printf("B");
                  }
                  else if(70<=S && S<80){
                  	printf("C");
                  }
                  else if(60<=S && S<70){
                  	printf("D");
                  }
                  else if(0<=S && S<60){
                  	printf("E");
                  }
                  else{printf("EORR");}
                  return 0;
                  

                  }

                  • 0
                    @ 2023-7-28 2:32:50

                    代码块可以根据语言高亮 '''后接语言名 比如'''cpp

                    #include<iostream>
                    using namespace std;
                    int main(){
                        int n;
                        cin>>n;
                        if(n>=90&&n<=100) cout<<"A";
                        if(n>=80&&n<90) cout<<"B";
                        if(n>=70&&n<80) cout<<"C";
                        if(n>=60&&n<70) cout<<"D";
                        if(n>=0&&n<60) cout<<"E";
                        if(n<0||n>100) cout<<"EORR";
                    }
                    
                    • 0
                      @ 2023-7-24 21:23:36

                      #include<iostream> using namespace std; int main() {int S; cin>>S; if(90<=S&&S<=100) cout<<"A"; if(80<=S&&S<90) cout<<"B"; if(70<=S&&S<80) cout<<"C"; if(60<=S&&S<70) cout<<"D"; if(0<=S&&S<60) cout<<"E"; if(S<0) cout<<"EORR"; if(S>100) cout<<"EORR"; return 0; }

                      • 0
                        @ 2022-9-29 10:50:51
                        #include<stdio.h>
                        int main()
                        {
                            int s;
                            scanf("%d",&s);
                            if(90<=s<&&s<=100)
                            {
                                printf("A");
                        
                            }
                            else if(80<=s&&s<90)
                            {
                                printf("B");
                            }
                            else if(70<=s&&s<80)
                            {
                                printf("C");
                        
                            }
                            else if(60<=s&&s<70)
                            {
                                printf("D");
                        
                            }
                            else if(50<=s&&s<60)
                            {
                                printf("E");
                        
                            }
                            else
                            printf("EORR");
                            return 0; 
                        
                        }
                        
                        
                        • 1

                        信息

                        ID
                        17
                        时间
                        1000ms
                        内存
                        128MiB
                        难度
                        7
                        标签
                        递交数
                        12305
                        已通过
                        2724
                        上传者