10 条题解

  • 2
    @ 2024-10-19 21:56:48
    #include<bits/stdc++.h> 
    using namespace std; 
    int main()
    { 
     double a; 
     cin>>a; 
     if(a<=10) 
      cout<<fixed<<setprecision(2)<<a8.00; 
     else 
      cout<<fixed<<setprecision(2)<<a8.00*0.75; 
     return 0; 
    }
    
    • 2
      @ 2023-12-26 0:13:27

      #include<bits/stdc++.h> using namespace std; int main() { int n,s; cin >> n ; if(10>=n) { s=8n; float s=40.00; cout<<fixed<<setprecision(2)<<s<<endl; } else if(n>10) s=(87.5)*n;

      cout<<fixed<<setprecision(2)<<s<<endl;
      return 0;
      

      }

      • 1
        @ 2024-11-8 18:07:34

        #include<bits/stdc++.h> using namespace std; int main() { double n; cin>>n; if(n<=10.00) cout<<fixed<<setprecision(2)<<8.00n; else cout<<fixed<<setprecision(2)<<8.00n*(7.50/10.00); return 0; }

        • 1
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              int a;
              float b,c;
              cin>>a;
              b=a*8.00;
              c=a*8.00*0.75;
              printf("%.2f",(a>10?c:b));
              return 0;
          
          }
          
          • 0

            思路

            水题。

            code

            #include<bits/stdc++.h>
            using namespace std;
            int n;
            int main(){
            	cin>>n;
            	printf("%.2lf",n>10?6.0*n:8.0*n);
            }
            
            • 0

              #include<bits/stdc++.h> using namespace std; int main() { double n,y; cin>>n; if(n<=10) { cout<<fixed<<setprecision(2)<<8n; } else { y=0.758*n; cout<<fixed<<setprecision(2)<<y; } return 0; }

              • 0
                @ 2024-11-8 18:04:41

                #include<bits/stdc++.h> using namespace std; const double q=8.00; int main() { int x; double y; cin>>x; if(x<10.00) { y=xq1.00; } else { y=xq0.75; } cout<<fixed<<setprecision(2)<<y; return 0; }

                • 0
                  @ 2024-11-8 17:18:35

                  看好题目 #include<bits/stdc++.h> using namespace std; int main() { double n; cin>>n; if(n<=10) { cout<<fixed<<setprecision(2)<<n8.00; } else if(n>10) { cout<<fixed<<setprecision(2)<<n8.00*0.75; } return 0; }

                  • 0

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

                    • 0
                      @ 2023-12-27 22:56:40

                      #include<bits/stdc++.h> using namespace std; int main() {double n,a; cin>>n; if(n<10&&n>=0) {a=8n; cout<<fixed<<setprecision(2)<<a; } if(n>10) {a=8n*0.75; cout<<fixed<<setprecision(2)<<a; } return 0; }

                      • 1

                      信息

                      ID
                      23
                      时间
                      1000ms
                      内存
                      256MiB
                      难度
                      1
                      标签
                      递交数
                      152
                      已通过
                      100
                      上传者