81 条题解

  • 0
    @ 2022-7-9 15:15:53

    #include <iostream> using namepace std; int main() { int x; cin>>x; if(x>=86) { cout<<"VERY GOOD"; } else if(x<60) { cout<<"BAD"; } else { cout<<"GOOD"; } returm; }

    • 0
      @ 2022-7-8 17:52:18

      #include <iostream> using namespace std; int main () { int a; cin >> a; if (a >= 86) cout <<"VERY GOOD"; else if (a >= 60) cout <<"GOOD"; else cout <<"BAD"; return 0; }

      • 0
        @ 2022-6-8 13:18:02

        if...else if...else 语句 #include<iostream> using namespace std; int main() { int n; cin>>n; if(n>=86) { cout<<"VERY GOOD"; } else if(n>60) { cout<<"GOOD"; } else { cout<<"BAD"; } return 0; }

        • 0
          @ 2022-4-24 15:47:40

          鼓励大家写题解,但注意题解格式。

          给代码两端加上这个会舒服一些

          ```cpp

          你的代码

          ```

          </span>

          这个点在键盘的左上角tab上面那个键,注意切换输入法

          #include<iostream>
          using namespace std;
          int main()
          {
              int n;
              cin>>n;//这是一个注释
              return 0;
          } 
          

          请注意严禁抄袭题解,写题解不要只放代码,需加上你的思路或代码注释。

          抄袭题解一经发现直接取消成绩。

          • -1
            @ 2024-3-15 19:09:15

            这么简单坤吧

            • -1
              @ 2024-2-18 8:43:28
              #include <iostream>//或者万能头
              using namespace std;
              int main()
              {
                  int n;
                  cin >> n;
                  if (n >= 86)//判断
                  {
                      cout << "VERY GOOD";
                  }
                  else if (n >= 60)
                  {
                      cout << "GOOD";
                  }
                  else{
                      cout << "BAD";
                  }
                  return 0;
              }
              
              • -1
                @ 2024-1-1 21:42:34
                #include <iostream>
                using namespace std;
                int main()
                {
                    int n;
                    cin >> n;
                    if (n >= 86)
                    {
                        cout << "VERY GOOD" << endl;
                    }
                    if (n >= 60)
                    {
                        if (n <= 85)
                        {
                            cout << "GOOD" << endl;
                        }
                    }
                    if (n < 60)
                    {
                        cout << "BAD" << endl;
                    }
                    return 0;
                }
                
                • -1
                  @ 2023-12-23 20:15:37
                  #include <bits/stdc++.h> 
                  using namespace std;
                  int main()
                  {
                      int n;
                      cin >> n;
                      if(n >= 86)
                      {
                          cout << "VERY GOOD";
                      }
                      else if((60 <= n)&&(n <= 85))
                      {
                          cout << "GOOD";
                      }
                      else
                      {
                          cout << "BAD";
                      }
                      return 0;
                  }
                  
                  
                  • -1
                    @ 2023-12-8 21:40:36
                    #include <bits/stdc++.h> 
                    using namespace std;
                    int main()
                    {
                        int n;
                        cin >> n;
                        if(n >= 86)
                        {
                            cout << "VERY GOOD";
                        }
                        else if(n >= 60 and n <= 85)
                        {
                            cout << "GOOD";
                        } 
                        else
                        {
                            cout << "BAD";
                        }
                        return 0;
                    }
                    
                    • -1
                      @ 2023-12-8 21:38:13
                      #include <bits/stdc++.h> 
                      using namespace std;
                      int main()
                      {
                          int n;
                          cin >> n;
                          if(n >= 86)
                          {
                              cout << "VERY GOOD";
                          }
                          else if(n >= 60 and n <= 85)
                          {
                              cout << "GOOD";
                          } 
                          else
                          {
                              cout << "BAD";
                          }
                          return 0;
                      }
                      
                      • -1
                        @ 2023-11-20 21:46:38
                        #include<bits/stdc++.h>
                        using namespace std;
                        int main()
                        {
                        	int n;
                            cin >> n;
                            if (n>=86)
                            {
                                cout << "VERY GOOD";
                            }
                            if (n>=60)
                            {
                                if (n<=85)
                                {
                                    cout << "GOOD";
                                }
                            }
                            if (n<60)
                            {
                                cout << "BAD";
                            }
                        }
                        
                        • -1
                          @ 2023-11-20 19:51:23
                          #include <bits/stdc++.h>
                          using namespace std;
                          int main()
                          {
                              int a;
                              cin>>a;
                              if(a>=86)
                              {
                                  cout<<"VERY GOOD";
                              }
                              else if(a>=60)
                              {
                                  cout<<"GOOD";
                              }
                              else
                              {
                                  cout<<"BAD";
                              }
                              return 0;
                          }
                          

                          点个赞吧

                          • -1
                            @ 2023-11-18 19:14:18
                            #include <bits/stdc++.h>
                            using namespace std;
                            int n;
                            void u(int n)//话说用函数真的很高大上诶
                            {
                                if(n >= 86)
                                {
                                    cout << "VERY GOOD";
                                }
                                else if(n >= 60)
                                {
                                    cout << "GOOD";
                                }
                                else
                                {
                                    cout << "BAD";
                                }
                            }
                            int main()
                            {
                                cin >> n;
                                u(n);
                                return 0;
                            }
                            
                            • -1
                              @ 2023-8-15 20:28:47

                              #include using namespace std; int main() { int a; cin>>a; if(a>=86) { cout<<"VERY GOOD"; } if(a>=60 and a<=85) { cout<<"GOOD"; } if(a<60) { cout<<"BAD"; } return 0; }**

                              
                              
                              • -1
                                @ 2023-8-15 16:43:29

                                这太简单了,不多说了,代码不易,先赞后复制,谢谢!!!!!!!!😄 #include <bits/stdc++.h> using namespace std; int main() { int a; cin >>a

                                if(a>=86) { cout << "VERY GOOD"; } if(a>=60) { if(a<=85) { cout << "GOOD"; } } if(a<60) { cout << "BAD"; } return 0; }

                                
                                
                                • -1
                                  @ 2023-8-14 18:01:27
                                  #include <bits/stdc++.h> 
                                  using namespace std;
                                  int main()
                                  {
                                      int a;//组a存储分数
                                      cin>>a;
                                      if (a>=60)
                                      {//如果分数大于等于六十。
                                          if (a>=86)
                                          {
                                              cout<<"VERY GOOD";
                                          }//如果分数大于等于86
                                          else
                                          {
                                              cout<<"GOOD";
                                          }//在60—85分之间
                                      }
                                      else
                                      {
                                          cout<<"BAD";
                                      }//小于60分
                                      return 0;
                                  }
                                  
                                  • -1
                                    @ 2023-8-9 14:22:54

                                    简单😄

                                    #include <bits/stdc++.h>
                                    using namespace std;
                                    int main()
                                    {
                                        int a;
                                        cin>>a;
                                        if(a>=86)
                                        {
                                            cout << "VERY GOOD";
                                        }
                                        if(a>=60)
                                        {
                                            if(a<=85)
                                            {    
                                                cout << "GOOD";
                                            }
                                        }
                                        if(a<60)
                                        {
                                            cout << "BAD";
                                        }
                                        return 0;
                                    }
                                    
                                    • -1
                                      @ 2023-7-30 17:59:03

                                      这道题十分简单,这是最基本的解题方式

                                      #include <iostream> using namespace std; int main() { int a; cin >> a; if (a >= 86) { cout << "VERY GOOD"; } if (a > 59 and a < 86) //表示在60和85之间 { cout << "GOOD"; } if (a < 60) { cout << "BAD"; } return 0; }

                                      • -1
                                        @ 2023-7-12 16:13:33
                                        #include<bits/stdc++.h>
                                        using namespace std;
                                        int main(){
                                            int a;
                                            cin >> a;
                                            if (a >= 86){
                                                cout << "VERY GOOD";
                                            }
                                            else if (a >= 60){
                                                cout << "GOOD";
                                            }
                                            else if (a < 60){
                                                cout << "BAD";
                                            }
                                            return 0;
                                        }
                                        
                                        • -2
                                          @ 2024-3-15 19:08:57

                                          不是吧这么简单不会还有人不会做吧=image

                                          信息

                                          ID
                                          29
                                          时间
                                          1000ms
                                          内存
                                          16MiB
                                          难度
                                          7
                                          标签
                                          递交数
                                          27032
                                          已通过
                                          6049
                                          上传者