4 条题解

  • 2
    @ 2023-10-22 10:49:24
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        double a,b;
        cin>>a>>b;
        printf("%.3f",b/a*100.0);
        cout<<"%";
        return 0;
    }
    
    • 1
      @ 2023-10-7 18:17:09
      #include<iostream>
      #include<cstdio>
      using namespace std;
      int main(){
          int a,b;
          cin >> a >> b;
          double c = b*1.0/a*100;
          printf("%.3lf%c",c,'%');
          return 0;
      }
      
      • -1
        @ 2022-12-27 9:52:06
        #include<bits/stdc++.h>
        using namespace std;
        long double 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;
        long long a[100000],as[100000],asd[100000];
        int main()
        {
        	cin>>x>>y;
        	cout<<fixed<<setprecision(3)<<y/x*1.0000*100<<"%";
            return 0;
        }
        
        • -1
          @ 2022-5-27 21:26:56
          #include<bits/stdc++.h>
          using namespace std;
          long double 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;
          long long a[100000],as[100000],asd[100000];
          int main()
          {
          	cin>>x>>y;
          	cout<<fixed<<setprecision(3)<<y/x*1.0000*100<<"%";
              return 0;
          }
          
          • 1

          信息

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