4 条题解

  • 1
    @ 2023-10-22 10:48:21
    #include <iostream>
    using namespace std;
    int main()
    {
        int a,b;
        cin>>a>>b;
        double c = (double)a/b;
        printf("%.9f",c);
        return 0;
    }
    
    • 1
      @ 2023-10-4 19:27:05
      #include<iostream>
      #include<algorithm>
      #include<stack>
      #include<queue>
      #include<cmath>
      #include<cstdio>
      #include<cstring>
      #include<string>
      using namespace std;
      int main(){	
      	int r1,r2;
      	cin >> r1 >> r2;
      	printf("%.9lf",r1*1.0/r2);
      	return 0;
      } 
      
      • 0
        @ 2023-12-31 10:40:53
        #include <bits/stdc++.h>
        using namespace std;
        int main(){
        	int a,b;
        	cin>>a>>b;
        	printf("%.9f",1.0*a/b);
        	return 0;
        }
        

        其实很简单,只需要让分子除以分母就可以了

        • 0
          @ 2022-12-27 9:51:39
          #include<bits/stdc++.h>
          using namespace std;
          long long q,w,e,r,t,y,u,i,o,p,d,f,g,h,j,k,l,z,x,c,v,b,n,m;
          string s;double dd,ee;
          long long a[100000],as[100000],asd[100000];
          int main()
          {
          	cin>>dd>>ee;
          	cout<<fixed<<setprecision(9)<<dd*1.000000000000000/ee;
              return 0;
          }
          
          • 1

          信息

          ID
          6810
          时间
          1000ms
          内存
          128MiB
          难度
          1
          标签
          (无)
          递交数
          101
          已通过
          80
          上传者