8 solutions
- 1
Information
- ID
- 497
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 3
- Tags
- # Submissions
- 179
- Accepted
- 101
- Uploaded By
#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;
}
#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;
}
#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;
}
#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;
}
#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;
}
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<fixed<<setprecision(3)<<b/a*100<<"%"; return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<fixed<<setprecision(3)<<b/a*100<<"%"; return 0; }
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.