5 条题解

  • 3
    @ 2023-3-29 20:42:55
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        if(n <= 100)
        {
            cout << n * 2;
        }
        else
        {
            cout << 200 + n - 100;
        }
        return 0;
    }
    
    • 0
      @ 2023-10-12 23:48:07

      AC

      #include<bits/stdc++.h>
      using namespace std;
      int a;
      int main()
      {
          cin>>a;
          if(a<101)
          {
              cout<<a*2;
          }
          else
          {
              cout<<a+100;
          }
          return 0;
      }
      
      
      • 0
        @ 2023-9-20 21:37:58
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int a;
            cin >> a;
            if(a < 101)
            {
                a = a * 2;
                cout << a;
            }
            else
            {
                a = a-100;
                a += 200;
                cout << a;
            }
            return 0;
        }//A
        
        • 0
          @ 2023-4-5 17:29:54
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              int x;
              cin>>x;
              if (x<=100)
                  cout<<x*2;
              else
                  cout<<200+x-100;
              return 0;
          }
          • 0
            @ 2023-1-15 11:22:39
            #include <iostream>//hetao3097453
            using namespace std;
            int main()
            {
                int x;
                cin >> x;
                if(x <= 100)
                {
                    cout << x * 2;
                }
                else
                {
                    cout << 200 + (x - 100);
                }
                return 0;
            }
            
            
            • 1

            信息

            ID
            634
            时间
            1000ms
            内存
            16MiB
            难度
            3
            标签
            递交数
            201
            已通过
            107
            上传者