题解分享
题解分享简介
甲流! - 题解
```
#include<iostream>
#include<iomanip>
using namespace std;
int main(){
int q,s;
cin>>q>>s;
double l=static_cast<double>(s)/q*100;
cout<<fixed<<setprecision(3)<<l<<"%"<<endl;
}
```
0
0
0
4
甲流! - 题解
```
#include <bits/stdc++.h>
using namespace std;
int main()
{
double a,b,c;
cin >> a >> b;
c = b / a * 100; //扩大100倍
cout << fixed << setprecision(3) << c << "%" << endl;
return 0;
}
```
0
0
0
3
甲流! - 题解
include
include
using namespace std;
int main()
{
int q,s;
cin>>q>>s;
m=s/q100;
cout<<m<<"%"<<endl;
return 0;
}
0
0
0
1
甲流! - 题解
include
int main(){
float i,j;
float k=0;
scanf("%f %f",&i,&j);
k=j100/i;
printf("%.3f",k);
printf("%%");
return 0;
}
0
0
0
3



