6 条题解

  • 2
    @ 2023-8-19 17:46:27

    👀️ so easy~

    点个赞吧

    #include<iostream>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        if(n>=10)
        {
            cout<<n*2<<".0";
        }
        if(n<10)
        {
            cout<<n*2.2;
        }
        return 0;
    }已AC,放心食用
    
    • 1
      @ 2023-4-3 21:36:59

      #include<bits/stdc++.h> using namespace std; int main() { double x; cin>>x; if (x>=10) cout<<2x<<".0";//偷懒() else cout<<fixed<<setprecision(1)<<x2.2; return 0; }

      • 0
        @ 2023-10-14 14:19:14

        🚀️ 超级简单

        #include<iostream>
        using namespace std;
        int main()
        {
            int n;
            cin >> n;
            if(n>=10)
            {
                cout<<n*2;
            }
            else
            {
                cout<<n*2.2;
            }
            return 0;
        }
        
        • 0
          @ 2023-10-4 21:05:41
          #include<bits/stdc++.h>
          using namespace std;
          double n;
          int main()
          {
              cin>>n;
              if(n>=10)
              {
                  n*=2;
              }
              if(n<10)
              {
                  n*=2.2;
              }
              cout<<fixed<<setprecision(1)<<n;
              return 0;
          }
          
          
          • 0
            @ 2023-9-18 21:53:35
            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
                double c;
                cin >> c;
                if(c < 10)
                {
                    c = c * 2.2;
                    printf("%.1f",c);
                }
                else
                {
                    c = c * 2.0;
                    printf("%.1f",c);
                }
                return 0;
            }
            

            原始算法 A

            • 0
              @ 2022-12-24 16:57:57

              easy peasy

              #include <bits/stdc++.h>
              using namespace std;
              int main()
              {
                  int a;
                  double b;
                  cin >> a;
                  if (a >= 10)
                  {
                      b = a * 2;
                  }
                  else
                  {
                      b = a * 2.2;
                  }
                  cout << fixed << setprecision(1) << b << endl;
                  return 0;
              }
              
              • 1

              【入门】冷饮的价格(1)

              信息

              ID
              300
              时间
              1000ms
              内存
              16MiB
              难度
              2
              标签
              递交数
              162
              已通过
              99
              上传者