5 条题解

  • 2
    @ 2022-12-29 19:58:02
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double x, n;
    	cin >> n;
    	if (n <= 20)
            x = n * 1.68;
    	else
            x = n * 1.98;
    	cout << fixed << setprecision(2) << x;
    	return 0;
    }//代码已AC
    
    • 1
      @ 2023-3-19 17:37:37

      已AC,放心

      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          double n;
          cin >> n;
          if(n <= 20)
          {
              cout << fixed << setprecision(2) << n * 1.68;
          }
          else
          {
              cout << fixed << setprecision(2) << n * 1.98;
          }
          return 0;
      }
      
      • 0
        @ 2023-9-22 18:43:43
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            double c;
            cin >> c;
            if (c <= 20)
            {
                c = c * 1.68;
                printf("%.2f",c);
            }
            else
            {
                c = c * 1.98;
                printf("%.2f",c);
            }
            return 0;
        }//A
        
        • 0
          @ 2023-4-6 19:52:31
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              double x;
              cin>>x;
              if (x<=20)
                  cout<<fixed<<setprecision(2)<<x*1.68;
              else
                  cout<<fixed<<setprecision(2)<<x*1.98;
              return 0;
          }
          • 0
            @ 2022-7-19 9:59:55
                if(n > 20)
                {
                    cout << fixed << setprecision(2) << n * 1.98;
                }
                else
                {
                    cout << fixed << setprecision(2) << n * 1.68;
                }
                
            
          • 1

          信息

          ID
          640
          时间
          1000ms
          内存
          16MiB
          难度
          3
          标签
          递交数
          97
          已通过
          56
          上传者