5 solutions

  • 1
    @ 2024-1-25 9:04:56
    #include<bits/stdc++.h>
    using namespace std;
    double a,b;
    int main(){
    	cin>>a>>b;
    	cout<<fixed<<setprecision(9)<<a/b<<"\n";
    	return 0;
    }
    
    • 1
      @ 2023-10-30 16:46:48
      #include <iostream>
      #include <cstdio>
      #include <iomanip>
      #include <cmath>
      using namespace std;
      int we[100000000];
      int main(){
      	double a , b , c;
      	cin >> a >> b;
      	c = a / (1.0 * b);
      	printf("%.9f" , c); 
      	return 0;
      }
      
      
      • 1
        @ 2023-10-29 12:00:28
        #include<iostream>
        using namespace std;
        int main()
        {
         double a,b;
         cin>>a>>b;//输入
         printf("%.9lf",a/b);//格式化输出
         return 0;//完结散花!
        }
        
        • 0
          @ 2023-11-24 21:29:53
          #include<iostream>
          #include<iomanip>
          using namespace std;
          int main(){
          	long double a,b;
          	cin>>a>>b;
          	cout<<setprecision(9)<<fixed<<a/b;
          }
          
          • 0
            @ 2023-9-16 21:19:13
            #include <iostream>
            #include <iomanip>
            using namespace std;
            double a,b;
            double n;
            int main(){
            	cin>>a>>b;
            	n=a/b;
            	cout<<fixed<<setprecision(9)<<n<<endl;
            	return 0;
            }
            
            • 1

            Information

            ID
            496
            Time
            1000ms
            Memory
            256MiB
            Difficulty
            2
            Tags
            # Submissions
            98
            Accepted
            62
            Uploaded By