8 solutions

  • 3
    @ 2023-9-16 21:23:16
    #include <iostream>
    #include <iomanip>
    using namespace std;
    double a,b;
    double n;
    int main(){
    	cin>>a>>b;
    	cout<<fixed<<setprecision(3)<<b/a*100<<"%"<<endl;
    	return 0;
    }
    
    • 1
      @ 2024-1-25 9:07:08
      #include<bits/stdc++.h>
      using namespace std;
      double a,b;
      int main(){
      	cin>>a>>b;
      	double k=b/a;
      	cout<<fixed<<setprecision(3)<<k*100<<"%"<<"\n";
      	return 0;
      }
      
      • 1
        @ 2023-10-30 16:47:09
        #include <iostream>
        #include <cstdio>
        #include <iomanip>
        #include <cmath>
        using namespace std;
        int we[100000000];
        int main(){
        	double a , b , c;
        	cin >> a >> b;
        	c = b / (1.0 * a) * 100;
        	printf("%.3f" , c);
        	cout << "%" << endl; 
        	return 0;
        }
        
        • 1
          @ 2023-9-17 11:39:53
          #include <bits/stdc++.h>
          using namespace std;
          int main(int argc, char **argv){
          	int a,b;
          	cin >> a >> b;
          	printf("%.3f%%",1.0 * b / a * 100);
          	return 0;
          }
          
          • 0
            @ 2024-7-8 20:14:40
            #include<iostream>
            #include<iomanip> 
            using namespace std;
            int main() {
            	double a,b,c,d;
            	cin>>a>>b;
            	c=b/a;
            	d=100*c;
            	cout<<fixed<<setprecision(3)<<d<<"%";
            	return 0;
            }
            
            • 0
              @ 2023-11-24 21:30:09
              #include <iostream>
              #include <iomanip>
              using namespace std;
              double a,b;
              double n;
              int main(){
              	cin>>a>>b;
              	cout<<fixed<<setprecision(3)<<b/a*100<<"%"<<endl;
              	return 0;
              }
              
              • -1
                @ 2023-9-16 14:03:12
                
                

                #include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<fixed<<setprecision(3)<<b/a*100<<"%"; return 0; }

                
                
                • -1
                  @ 2023-9-16 14:03:04
                  
                  

                  #include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<fixed<<setprecision(3)<<b/a*100<<"%"; return 0; }

                  
                  
                  • 1

                  Information

                  ID
                  497
                  Time
                  1000ms
                  Memory
                  256MiB
                  Difficulty
                  3
                  Tags
                  # Submissions
                  179
                  Accepted
                  101
                  Uploaded By