8 条题解

  • 2
    @ 2023-8-7 20:03:51
    #include<bits/stdc++.h>
    #include<cstring>
    #include<queue>
    #include<set>
    #include<stack>
    #include<vector>
    #include<map>
    #define ll long long
    using namespace std;
    const int N=1e5+10;
    const int M=2023;
    const int inf=0x3f3f3f3f;
    double n,m;
    int main()
    {
    	cin>>n>>m;
    	char c='%';
    	printf("%.3f%c",(m/n)*100,c);
    	return 0;
    }
    
    
    • 1
      @ 2023-6-14 19:20:33
      #include <iostream>
      #include <stdio.h>
      #include <iomanip>
      #include <math.h>
      using namespace std;
      const int N = 1e6 + 10;
      const int INF = 0x3f3f3f3f;
      int main()
      {
      	float a , b;
      	cin >> a >> b;
      	a = b / a;
      	cout << fixed << setprecision(3) << a * 100 << "%";
      	return 0;
      }
      
      • 1
        @ 2022-10-30 17:08:29
        #include <bits/stdc++.h>
        
        using namespace std;
        
        int main(void)
        {
            float s;
            float d;
        
            float h;
        
            cin >> s >> d;
        
            h = d / s * 100;
        
            cout << fixed << setprecision(3) << h << '%';
        
            return 0;
        }
        
        • 0
          @ 2023-6-10 11:12:26
          #include<stdio.h>
          int main()
          {
              double a,b;
              scanf("%lf%lf",&a,&b);
              printf("%.3lf",b/a*100);
              printf("%%");
              return 0;
          }
          
          • 0
            @ 2022-1-21 23:10:23
            #include <iostream>
            #include <iomanip>
            using namespace std;
            int main(){
                double n,m;
                cin>>n>>m;
                m/=n;
                cout<<fixed<<setprecision(3)<<m*100<<"%"<<endl;
                return 0;
            }
            
            • -3
              @ 2022-10-17 17:31:14

              #include <iostream> #include <iomanip> using namespace std; int main(){ double n,m; cin>>n>>m; m/=n; cout<<fixd<<setprecision(3)<<m*100<<"%"<<endl; return 0; }

              • -4
                @ 2022-7-3 17:50:53

                #include <stdio.h> #include<math.h> #include <iostream> using namespace std; int main() { double a,b; cin>>a>>b; b/=a; printf("%.3f",b*100); cout<<"%"; }

                • -4
                  @ 2022-2-8 10:46:55

                  #include <iostream> #include <iomanip> using namespace std; int main(){ double n,m; cin>>n>>m; m/=n; cout<<fixed<<setprecision(3)<<m*100<<"%"<<endl; return 0; }

                  • 1

                  信息

                  ID
                  829
                  时间
                  1000ms
                  内存
                  128MiB
                  难度
                  4
                  标签
                  递交数
                  863
                  已通过
                  401
                  上传者