33 条题解

  • 10
    @ 2024-1-29 9:59:53

    emmm……这个哲哲好像是柯南吧…… 好啦好啦,回归正题,我来告诉大家解决这一道题的步骤

    Step 1:定义变量,尤其是变量e(用于记录语数英三科中大于等于90分科目的个数)和变量f(用于记录体育是否大于等于(相当于不低于)85分), 接着输入变量a(语文),b(数学),c(英语),d(体育);

    Step 2:判断语数英三科是否大于等于90分,每有语数英三科中的一科大于等于90分,则将变量e加上1;

    Step 3:判断体育是否大于等于85分,若体育大于等于85分,则将变量f设为1,否则保持不变(仍然为0);

    Step 4:判断变量e是否大于等于2并且变量f是否等于1,最后根据情况输出;

    Step 5:写上 “return 0;”,完成!

    已AC,请放心食用

    #include <iostream>
    using namespace std;
    int main()
    {
        int a, b, c, d, e = 0, f = 0;
        cin >> a >> b >> c >> d;
        if (a >= 90)
        {
            e += 1;
        }
        if (b >= 90)
        {
            e += 1;
        }
        if (c >= 90)
        {
            e += 1;
        }
        if (d >= 85)
        {
            f += 1;
        }
        if (e >= 2 && f == 1)
        {
            cout << "Qualified";
        }
        else
        {
            cout << "Not qualified";
        }
        return 0;
    }
    

    你学了吗?

    养成好习惯,看后点个赞( •̀ ω •́ )✧!

    • 4
      @ 2024-1-16 13:21:29

      🎉️ AC🎉️

      #include<iostream>
      using namespace std;
      int main()
      {
          int a,b,c,d,sum=0;
          cin>>a>>b>>c>>d;
          if(d>=85)
          {
              if(a>=90)
              {
                  sum++;
              }
              if(b>=90)
              {
                  sum++;
              }
              if(c>=90)
              {
                  sum++;
              }
          }
          else
          {
              cout<<"Not qualified";
              return 0;
          }
          if(sum>=2)
          {
              cout<<"Qualified";
          }
          else
          {
              cout<<"Not qualified";
          }
      
          return 0;
      }
      
      
      
      • @ 2024-4-4 21:31:17

        你试试Python

        print('Not qualified')
        
      • @ 2024-4-4 21:54:15

        你再试试C++

        #include<iostream>
        int main(){std::cout<<"Not qualified";}
        
    • 0
      @ 2024-3-3 21:15:47
      if(((a>=90&&b>=90)||(a>=90&&c>=90)||(b>=90&&c>=90))&&(d>=85))
          {
              cout<<"Qualified";
          }
          else
          {
              cout<<"Not qualified";
          }
      
      • 0
        @ 2024-3-3 21:14:45

        这道题可以用 学过的”或者“ ”并且“运算符进行运算。(稍微短一些) if(((a>=90&&b>=90)||(a>=90&&c>=90)||(b>=90&&c>=90))&&(d>=85)) { cout<<"Qualified"; } else { cout<<"Not qualified"; }

        已AC!

        • 0
          @ 2024-2-2 19:13:06
          #include <iostream>
          using namespace std;
          int main()
          {
              int a,b,c,d;
              cin>>a>>b>>c>>d;
              if (d>=85)//判断体育分数是否大于85分
              {
                  if (a>=90&&b>=90||a>=90&&c>=90||b>=90&&c>=90)//判断是否有两项大于90分
                  {
                      cout<<"qualified";
                  }
                  else//主科成绩不好不行
                  {
                      cout<<"Not qualified";
                  }
              }
              else//体育不行,没班长的命
              {
                  cout<<"Not qualified";
              }
              return 0;
          }
          
          • 0
            @ 2024-2-1 9:55:52
            #include <iostream>
            using namespace std;
            int main()
            {
                int a,b,c,d;
                cin >> a >> b >> c >> d;
                if (((a>=90)&&(b>=90))||((b>=90)&&(c>=90))||(c>=90)&&(a>=90))
                {
                    if (d>=85)
                    {
                        cout << "Qualified";
                        return 0;
                    }
                }
                cout << "Not qualified";
                return 0;
            }
            
            • 0
              @ 2023-11-25 14:54:58
              #include <iostream>
              using namespace std;
              int a[20];
              int main()
              {
                  int a, b, c, d, n = 0;
                  cin >> a >> b >> c >> d;
                  for (int i = 1;i <= 3;i++)
                  {
                      if (a >= 90 or b >= 90 or c >= 90)
                      {
                          n++;
                      }
                  }
                  if (n >= 2 and d >= 85)
                  {
                      cout << "Qualified";
                  }
                  else
                  {
                      cout << "Not qualified";
                  }
                  return 0;
              }
              // @真相或许有很多个~
              
              • 0
                @ 2023-8-31 18:28:16

                过辣!

                #include <bits/stdc++.h>
                using namespace std;
                int main()
                {
                    int a[10],num=0;
                    scanf("%d%d%d%d",&a[1],&a[2],&a[3],&a[4]);
                    for (int i=1;i<=3;i++)
                    {
                        if (a[i]>=90)num++;
                    }
                    if (num>=2 && a[4]>=85)printf("Qualified");
                    else printf("Not qualified");
                    return 0;
                }
                
                • 0
                  @ 2023-8-21 19:13:41
                  #include <bits/stdc++.h>
                  using namespace std;
                  int a [20];
                  int main()
                  {
                      int a,b,c,d,n=0;
                      cin>>a>>b>>c>>d;
                      for(int i=1;i<=3;i++)
                      {
                          if(a>=90 or b>=90 or c>=90)
                          {
                              n++;
                          }
                      }
                      if(n>=2 && d>=85)
                      {
                          cout<<"Qualified";
                      }
                      else
                      {
                          cout<<"Not qualified";
                      }
                      return 0;
                  }
                  
                  • 0
                    @ 2023-5-30 21:03:13

                    最短代码

                    #include <bits/stdc++.h>
                    using namespace std;
                    int main()
                    {
                        cout << "Not qualified";
                    }
                    
                  • 0
                    @ 2023-5-14 20:54:05

                    全网最长题解,已AC,请放心食用。😄

                    #include <bits/stdc++.h>
                    using namespace std;
                    int c, m, e, p;
                    int main()
                    {
                        cin >> c >> m >> e >> p;
                        if ((((c >= 90) && (m >= 90)) || ((c >= 90) && (e >= 90)) || ((m >= 90) && (e >= 90))) && (p >= 85))
                            cout << "Qualified" << endl;
                        else
                            cout << "Not qualified" << endl;
                        return 0;
                    }
                    
                    • @ 2024-4-4 21:56:18

                      最短Python代码

                      print('Not qualified')
                      
                  • -1
                    @ 2024-4-30 21:28:28

                    if就是一切!!!(已AC,请食用)

                    我才不会告诉你我懒得编了


                    #include <bits/stdc++.h>
                    using namespace std;
                    int main()
                    {
                        int a,b,c,d,z=0;
                        cin >> a >> b >> c >> d;
                        if (a>=90)z++;
                        if (b>=90)z++;
                        if (c>=90)z++;
                        if (z>=2 and d>=85)cout << "Qualified";
                        else cout << "Not qualified";
                        return 0;
                    }
                    

                    点个赞再走吧👀️

                    • -1
                      @ 2024-2-14 17:57:14

                      `这题不难,话不多说,上代码!!!`` (已AC) #include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d;//输入四科成绩; if(a>=90&&b>=90&&d>=85)//判断成绩是否达标; { cout<<"Qualified";//输出结果; } else if(a>=90&&c>=90&&d>=85)//判断成绩是否达标; { cout<<"Qualified";//输出结果; } else if(b>=90&&c>=90&&d>=85)//判断成绩是否达标; { cout<<"Qualified";//输出结果; } else//不达标; { //输出结果;

                      } 制作不易,点个赞吧!!!😄

                      • -1
                        @ 2023-12-11 20:46:34

                        #include<bits/stdc++.h> using namespace std; int a,b,c,d; int main() { cin>>a>>b>>c>>d; if(((a>=90&&b>=90)||(a>=90&&c>=90)||(b>=90&&c>=90))&&d>=85) { cout<<"Qualified"; } else { cout<<"Not qualified"; } return 0; }

                        • -1
                          @ 2023-12-11 20:46:20

                          #include<bits/stdc++.h> using namespace std; int a,b,c,d; int main() { cin>>a>>b>>c>>d; if(((a>=90&&b>=90)||(a>=90&&c>=90)||(b>=90&&c>=90))&&d>=85) { cout<<"Qualified"; } else { cout<<"Not qualified"; } return 0; }

                          • -1
                            @ 2023-11-13 20:14:37
                            #include <iostream>
                            using namespace std;
                            int main()
                            {
                                int a,b,c,d;
                                cin >> a >> b >> c >> d;
                                if (a>=90 && b>=90 && d>=85)
                                {
                                    cout << "Qualified";
                                }
                                else if (a>=90 && c>=90 && d>=85)
                                {
                                    cout << "Qualified";
                                }
                                else if (c>=90 && b>=90 && d>=85)
                                {
                                    cout << "Qualified";
                                }
                                else
                                {
                                    cout << "Not qualified";
                                }
                                return 0;
                            }
                            
                            • -1
                              @ 2023-10-14 22:31:14

                              #include <bits/stdc++.h>
                              using namespace std;
                              int main()
                              {
                                  int a,b,c,d;
                                  cin >> a >> b >> c >> d;
                                  if(((a>=90&&b<=90)||(a>=90&&c>=90)||(b>=90&&c>=90))&&(d>=85))
                                  {
                                      cout << "Qualified";
                                  }
                                  else
                                  {
                                      cout << "Not qualified";
                                  }
                                  return 0;
                              }
                              
                              • -1
                                @ 2023-8-28 16:56:22

                                http://oj.hetao101.com/file/5285/.avatar.png

                                😏哈哈哈,打开看看!

                                • -1
                                  @ 2023-8-19 18:12:15

                                  解法《极速版》

                                  #include <bits/stdc++.h>//万能头是个好习惯
                                  using namespace std;
                                  int main()
                                  {
                                      int a, b, c, d;
                                      cin >> a >> b >> c >> d;
                                      if (((a >= 90 && b >= 90) || (a >= 90 && c >= 90) || (b >= 90 && c >= 90)) && d >= 85)
                                      {
                                          cout << "Qualified";
                                          return 0;//极简版
                                      } 
                                      else
                                      {
                                          cout << "Not qualified";
                                          return 0;//极简版
                                      }
                                  }
                                  

                                  已AC请放心进食😄 不喜勿喷

                                  • -1
                                    @ 2023-8-9 19:40:35
                                    #include <bits/stdc++.h>
                                    using namespace std;
                                    int main()
                                    {
                                        int a,b,c,d;
                                        cin >> a >> b >> c >> d;
                                        if(((a>=90&&b<=90)||(a>=90&&c>=90)||(b>=90&&c>=90))&&(d>=85))
                                        {
                                            cout << "Qualified";
                                        }
                                        else
                                        {
                                            cout << "Not qualified";
                                        }
                                        return 0;
                                    }
                                    

                                    信息

                                    ID
                                    1293
                                    时间
                                    1000ms
                                    内存
                                    256MiB
                                    难度
                                    2
                                    标签
                                    递交数
                                    1235
                                    已通过
                                    759
                                    上传者