3 条题解

  • 1
    @ 2022-8-18 19:10:52
    太简单了上代码:
    #include <iostream>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        if(n>=90)
        {
            cout << n*3 << endl;
        }
        else if(n>=80)
        {
            cout << n*2 << endl;
        }
        else if(n>=70)
        {
            cout << n << endl;
        }
        else
        {
            cout << 50 << endl;
        }
        return 0;
    }
    
  • 0
    @ 2023-9-19 21:32:23
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int c;
        cin >> c;
        if(c >= 90)
        {
            c = c * 3;
            cout << c;
        }
        else if(c >= 80)
        {
            c = c * 2;
            cout << c;
        }
        else if(c >= 70 && c <= 79)
        {
            cout << c;
        }
        else
        {
            cout <<"50";
        }
        return 0;
    }//已AC
    
    • 0
      @ 2023-4-3 21:32:01
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int x;
          cin>>x;
          if (x>=90)
              cout<<x*3;
          else if (x>=80)
              cout<<x*2;
          else if (x>=70)
              cout<<x;
          else
              cout<<50;
          return 0;
      }
      
      • 1

      【入门】小明暑假的零花钱

      信息

      ID
      297
      时间
      1000ms
      内存
      16MiB
      难度
      3
      标签
      递交数
      305
      已通过
      169
      上传者