3 条题解

  • 2
    @ 2022-12-11 16:31:08
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a, b, c;
        cin >> a >> b >> c;
        if (a + b >= c)
        {
            cout << "Yes";
        }
        else if ((a + b + c) % 2 == 1)
        {
            cout << "Bad";
        }
        else
        {
            cout << "No";
        }
        return 0;
    }
    
    • 1
      @ 2023-9-25 20:52:07
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int c , v ,b;
          cin >> c >> v >> b;
          int n = c + v + b;
          if (n % 2 == 1)
          {
              cout << "Bad";
          } 
          else
          {
              if(c + v >= b)
              {
                  cout << "Yes";
              }
              else
              {
                  cout <<"No";
              }
          }
          return 0;
      }//A
      
      • 1
        @ 2023-4-6 22:18:42
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int a,b,c;
            cin>>a>>b>>c;
            if ((a+b+c)%2==0)
                if (a+b>=c)
                    cout<<"Yes";
                else
                    cout<<"No";
            else
                cout<<"Bad";
            return 0;
        }
        • 1

        【入门】判断3个整数是否满足条件

        信息

        ID
        674
        时间
        1000ms
        内存
        16MiB
        难度
        2
        标签
        递交数
        120
        已通过
        73
        上传者