12 条题解

  • 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
      @ 2025-7-4 18:41:18
      #include<iomanip>
      #include<cmath>
      #include<cstdio>
      #include<bits/stdc++.h>
      using namespace std;
      int a,b; 
      int main()
      {
      	cin>>a>>b;
      	double m=b*1.0/a;
      	cout<<fixed<<setprecision(3)<<m*100<<"%";
      	return 0;
      }
      
      
      • 1
        @ 2025-7-4 18:40:18
        #include<iomanip>
        #include<cmath>
        #include<cstdio>
        #include<bits/stdc++.h>
        using namespace std;
        int a,b; 
        int main()
        {
        	cin>>a>>b;
        	double m=b*1.0/a;
        	cout<<fixed<<setprecision(3)<<m*100<<"%";
        	return 0;
        }
        
        
        • 0
          @ 2025-7-7 15:43:46

          #include

          #include

          using namespace std;

          int main()

          {

          double n,m;
          
          cin>>n>>m;
          
          m/=n;
          
          cout<<fixed<<setprecision(3)<<m*100<<"%"<<endl;
          
          return 0;
          

          }

          • 0
            @ 2025-1-22 20:06:37
            #include<iomanip>
            #include<cmath>
            #include<cstdio>
            #include<bits/stdc++.h>
            using namespace std;
            int a,b; 
            int main()
            {
            	cin>>a>>b;
            	double m=b*1.0/a;
            	cout<<fixed<<setprecision(3)<<m*100<<"%";
            	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;
              }
              
              • -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;
                  }
                  
                  • -1
                    @ 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;
                    }
                    
                    • -5
                      @ 2022-10-17 17:31:14

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

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

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

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

                          #include #include 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
                          标签
                          递交数
                          999
                          已通过
                          481
                          上传者