3 条题解

  • 2
    @ 2023-4-9 19:17:03
    #include<bits/stdc++.h>
    using namespace std;
    int a1,a2,x,y;
    int main()
    {
        for (int i=1;i<=3;i++)
        {
            cin>>x>>y;
            if (x>y)
                a1++;
            else
                a2++;
        }
        if (a1>a2)
            cout<<"yangguang";
        else
            cout<<"leiting";
        return 0;
    }
    • 2
      @ 2022-11-27 11:12:26
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int a, b, num1 = 0, num2 = 0;
          for (int i = 1; i <= 3; i++)
          {
              cin >> a >> b;
              if (a > b)
              {
                  num1++;
              }
              else
              {
                  num2++;
              }
          }
          if (num1 > num2)
          {
              cout << "yangguang";
          }
          else
          {
              cout << "leiting";
          }
          return 0;
      }
      
      • 1
        @ 2022-12-16 22:03:49
        #include <iostream>//hetao3097453
        using namespace std;
        int a,b,c,d,e,f,asum,bsum;
        int main()
        {
            cin >> a >> b >> c >> d >> e >> f;
            if(a > b)
            {
                asum++;
            }
            else
            {
                bsum++;
            }
            if(c > d)
            {
                asum++;
            }
            else
            {
                bsum++;
            }
            if(e > f)
            {
                asum++;
            }
            else
            {
                bsum++;
            }
        
            if(asum > bsum)
            {
                cout << "yangguang";
            }
            else
            {
                cout << "leiting";
            }
            return 0;
        }
        
        
        • 1

        信息

        ID
        717
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        递交数
        75
        已通过
        52
        上传者