5 条题解

  • 2
    @ 2023-7-7 13:01:27
    #include <iostream>
    #include <iomanip>
    using namespace std;
    int main()
    {
    	double n;
    	cin >> n;
    	if (n <= 15)
    	{
    		cout << fixed << setprecision(2) << n/1.5;
    	}
    	if (n > 15)
    	{
    		cout << fixed << setprecision(2) << (n + 10) / 2.5;
    	}
    	return 0;
    }
    
    • 0
      @ 2023-10-5 22:56:16
      #include <iostream>
      #include <iomanip>
      using namespace std;
      int main()
      {
          double n;
          cin >> n;
          if(n > 15)
          {
              cout << fixed << setprecision(2) << 10 + (n - 15) / 2.5;
          }
          else
          {
              cout << fixed << setprecision(2) << n / 1.5;
          }
          return 0;
      }已AC
      
      • 0
        @ 2023-4-2 19:20:41
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            double x;
            cin>>x;
            if (x<=15)//这里注意不是10
                cout<<fixed<<setprecision(2)<<x/1.5;
            else
                cout<<fixed<<setprecision(2)<<10+(x-15)/2.5;//10和15不要写反
            return 0;
        }
        
        • -1
          @ 2023-7-17 17:44:29
          #include <bits/stdc++.h>
          using namespace std;
          int main()
          {
              double a,b,c;
              cin>>a;
              b=a/1.5;
              if(b>10)
              {
                  b=10;
                  c=a-15;
                  printf("%.2f",b+c/2.5);
                  return 0;
              }
              printf("%.2f",b);
              return 0;
          }
          
          • -1
            @ 2022-11-11 20:33:20

            号没了

            #include <bits/stdc++.h>
            using namespace std;
            int main()
            {
                int n;
                cin >> n;
                if(n<=10)
                {
                    cout << fixed << setprecision(2) << n/1.5;
                }
                else
                {
                    cout << fixed << setprecision(2) << (n-15)/2.5+10;
                }
            }
            
            • 1

            信息

            ID
            53
            时间
            1000ms
            内存
            16MiB
            难度
            4
            标签
            递交数
            232
            已通过
            105
            上传者