11 条题解

  • 1
    @ 2024-11-8 17:41:36

    #include<bits/stdc++.h> using namespace std; int main() { double x; cin>>x; if(x<=1.0) cout<<fixed<<setprecision(1)<<1.5<<endl; else cout<<fixed<<setprecision(1)<<1.5+(x-1.0)*0.8<<endl; return 0; }

    • 1
      @ 2023-12-26 13:11:12
      #include<bits/stdc++.h> 
      using namespace std;
       int main() 
      { 
      int a; 
      cin>>a;
       if(a<=1)
       { 
      cout<<1.5;
       } 
      else
       { 
      cout<<fixed<<setprecision(1)<<1.5+0.8*(a-1);
       } 
      return 0; 
      }
      
      • 1
        @ 2023-12-25 13:06:28

        #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a<=1) { cout<<1.5; } else { cout<<fixed<<setprecision(1)<<1.5+0.8*(a-1); } return 0; }

        • 0

          #include<bits/stdc++.h> using namespace std; int main(){ double n; cin>>n; if(n<=1)cout<<1.5; else cout<<(n-1)*0.8+1.5; return 0; }

          • -1
            @ 2024-11-11 17:06:24

            #include<bits/stdc++.h> using namespace std; int main() { double a; cin>>a; a>=0; if(a<=1){cout<<1.5;} else{cout<<fixed<<setprecision(1)<<1.5+0.8*(a-1);} return 0; }

            • -1

              #include<bits/stdc++.h> using namespace std; int main() { double x,y; cin>>x; if(x<=1) { cout<<1.5; } else { y=1.5+0.8*(x-1); cout<<fixed<<setprecision(2)<<y; } return 0; }

              • -1
                @ 2024-11-9 13:07:28

                #include<bits/stdc++.h> using namespace std; int main() {int a,b; cin>>a; if (a<=1.0) {cout<<1.5<<endl; } else cout<<fixed<<setprecision(1)<<(1.5+(a-1.0)*0.8); return 0; }

                • -1
                  @ 2024-1-2 13:14:33

                  #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a<=1) { cout<<1.5;

                  }
                  else
                  {
                  cout<<fixed<<setprecision(1)<<1.5+0.8*(a-1);
                  
                  
                  }
                  return 0;
                  

                  }

                  • -1
                    @ 2023-12-27 13:39:36

                    #include<bits/stdc++.h> using namespace std; int main() {double a,b,c; cin>>a; if(a>0&&a<=1) {cout<<fixed<<setprecision(1)<<1.5; } if(a>1) {cout<<fixed<<setprecision(1)<<1.51+0.8(a-1); } return 0; }

                    • -1
                      @ 2023-12-24 17:21:38

                      #include<bits/stdc++.h> using namespace std; int main() { double x,y; cin>>x; if(x<=1) { y=1.5; } else { y=(x-1)*0.8+1.5; } cout<<y; return 0; }

                      • -2
                        @ 2024-11-9 13:27:14

                        #include<bits/stdc++.h> using namespace std; int main() { double a,b; cin>>a; b=1.5+0.8*(a-1); if(a<=1) { cout<<"1.5"; } if(a>1) { cout<<fixed<<setprecision(1)<<b<<endl; } return 0; }

                        • 1

                        信息

                        ID
                        26
                        时间
                        1000ms
                        内存
                        256MiB
                        难度
                        2
                        标签
                        递交数
                        168
                        已通过
                        107
                        上传者