12 条题解
- 1
信息
- ID
- 62
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 2
- 标签
- (无)
- 递交数
- 388
- 已通过
- 225
- 上传者
#include<bits/stdc++.h> using namespace std; int main() { double a,b,c; cin>>a>>b; c=b/a*100; printf("%.3lf",c); cout<<"%"; return 0; }
#include using namespace std; int main(){ double a,b,n; cin>>a>>b; n=b/(a/100); printf("%.3lf",n);cout << "%" ; return 0; }
nclude <iostream>
using namespace std;
int main(){
double a,b,n;
cin>>a>>b;
n=b/(a/100);
printf("%.3lf",n);cout << "%" ;
return 0;
}
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,n; cin>>a>>b; n=1.0b/(1.0a/100*1.0); printf("%.3lf",n);cout<<"%"; return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b; c=b/a*100; printf("%.3l.f%",c); return 0; }
#include<bits/stdc++.h>
using namespace std;
int tot,x;
int main(){
cin >> tot >> x;
cout << fixed << setprecision(3) << 100.0*x/tot << '%';
}
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b; c=b/a*100; printf("%.3lf%%",c); return 0; }
#include <iostream>
using namespace std;
int main(){
double a,b,n;
cin>>a>>b;
n=b/(a/100);
printf("%.3lf"%%",n);
return 0;
}
#include <iostream>
using namespace std;
int main(){
double a,b,n;
cin>>a>>b;
n=b/(a/100);
printf("%.3lf",n);cout << "%" ;
return 0;
}
👀️
#include <iostream>
using namespace std;
int main(){
double a,b,n;
cin>>a>>b;
n=b/(a/100);
printf("%.3lf",n);cout << "%" ;
return 0;
}
亲测,好用😄
#include <iostream>
using namespace std;
int main(){
double x,y,n;
cin>>x>>y;
n=y/(x/100);
printf("%.3lf",n);
cout << "%";
return 0;
}
为什么要把cout放在上面