19 条题解

  • 4
    @ 2023-3-29 17:02:58
    #include<bits/stdc++.h> 
    using namespace std;
    int main()
    {
    	double a,c;
    	cin>>a;
    	c=5.0/9*(a-32);
    	cout<<fixed<<setprecision(3)<<c<<endl;
    	return 0;	
    }
    
  • 1
    @ 2023-2-20 13:37:02

    #include<bits/stdc++.h> using namespace std; int main(){ long double a,b; cin>>a; b=(5.0/9)*(a-32); cout<<fixed<<setprecision(3)<<b<< endl; return 0; }

    • 0
      @ 2023-6-2 13:36:03
      #include<bits/stdc++.h> 
      using namespace std;
      int main()
      {
      	double a,c;
      	cin>>a;
      	c=5.0/9*(a-32);
      	cout<<fixed<<setprecision(3)<<c<<endl;
      	return 0;	
      }
      
      • 0
        @ 2023-6-2 13:32:37
        #include<bits/stdc++.h> 
        using namespace std;
        int main()
        {
        	double a,c;
        	cin>>a;
        	c=5.0/9*(a-32);
        	cout<<fixed<<setprecision(3)<<c<<endl;
        	return 0;	
        
        • 0
          @ 2023-5-15 17:14:35

          #include<bits/stdc++.h> using namespace std; int main() { double a,c; ing yddla wee//这里不是对的

          cin>>a; c=5.0/9*(a-32); cout<<fixed<<setprecision(3)<<c<<endl; return 0; }

          • 0
            @ 2023-3-23 12:56:49

            应该 没问题 吧!!!

            • 0
              @ 2023-3-23 12:54:48
              #include <bits/stdc++.h>
              
              using namespace std;
              
              int main(){
                  double f,c;
                  cin>>f;
                  c=5.0/9*(f-32);  
                  printf("%.3lf",c);
                  return 0;
              }
              
              • 0
                @ 2023-3-16 17:34:53
                #include <bits/stdc++.h>
                
                using namespace std;
                
                int main(){
                    double f,c;
                    cin>>f;
                    c=5.0/9*(f-32);  
                    printf("%.3lf",c);
                    return 0;
                }
                
                • 0
                  @ 2023-3-8 12:40:47

                  #include<iostream> using namespace std; int main(){ double f,c; cin>>f; c=5.0/9.0*(f-32); printf("%.3f",c); return 0; }

                  • 0
                    @ 2023-3-8 12:40:28

                    #include<iostream> using namespace std; int main(){ double f,c; cin>>f; c=5.0/9.0*(f-32); printf("%.3f",c); return 0; }

                    • 0
                      @ 2022-12-18 11:30:23

                      这公式有问题

                      • 0
                        @ 2022-12-18 11:30:01

                        #include<bits/stdc++.h> using namespace std; int main() { int f; double c; cin>>f; c=c=5.0/9*(f-32); printf("%.3lf",c); return 0; }

                        • 0
                          @ 2022-8-13 20:02:08
                          #include <bits/stdc++.h>
                          
                          using namespace std;
                          
                          int main(){
                              double f,c;
                              cin>>f;
                              c=5.0/9*(f-32);//这公式有一点小  问题😕 
                              printf("%.3lf",c);
                              return 0;
                          }
                          

                          这不用说了吧!

                          • -1
                            @ 2023-5-6 16:36:49
                            #include <bits/stdc++.h>
                            
                            using namespace std;
                            
                            int main(){
                                double f,c;
                                cin>>f;
                                c=5.0/9*(f-32);  
                                printf("%.3lf",c);
                                return 0;
                            }
                            
                            • -1

                              sbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbssbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbsbssbsbbsbssbbsbsbbsssbbsbsbsbsbsbsbsbssbsbsbsbsbsbsbsbsbsbsbsbsbsbssbsbsbsbsbsbsbsbsbsbsbsbssbsbsbsbsbsbssbbsbsbsbsbsbsbsbsbsbsbssbsbsbsbsbsbsbssbssbsbsbsbsbsbsbsbsbsbsbsbsbsbs

                              • -1
                                @ 2023-3-28 17:17:31

                                #include <bits/stdc++.h>

                                using namespace std;

                                int main(){ double f,c; cin>>f; c=5.0/9*(f-32); printf("%.3lf",c); return 0; }

                                • -2
                                  @ 2022-9-29 15:56:29

                                  #include <bits/stdc++.h> using namespace std;

                                  int main() { int a; float f; cin>>f; printf("%.3f",1.05/9(f-32)); return 0; }

                                  • -3
                                    @ 2023-2-20 13:36:27

                                    #include<bits/stdc++.h> using namespace std; int main(){ long double a,b; cin>>a; b=(5.0/9)*(a-32); cout<<fixed<<setprecision(3)<<b<< endl; return 0; }

                                    • -3
                                      @ 2022-5-28 15:17:48
                                      using namespace std;
                                      int main(){
                                      	long double a,b;
                                      	cin>>a;
                                      	b=(5.0/9)*(a-32);//为保证输出是浮点数,公式中的5可以写为5.0
                                      	cout<<fixed<<setprecision(3)<<b<< endl;
                                      	return 0;
                                      }
                                      

                                      不知道怎么搞得,之前的代码总是输出零,其实这个公式有点问题啊

                                      • 1

                                      信息

                                      ID
                                      17
                                      时间
                                      1000ms
                                      内存
                                      256MiB
                                      难度
                                      5
                                      标签
                                      递交数
                                      613
                                      已通过
                                      242
                                      上传者