msx1287 • 1年前
评论:
using namespace std; int main(){
int n,a;
cin >> n;
a = n*2+4-1;
cout << fixed << setprecision(1)<< a*100.0/(n*n) << "%";
return 0;
}
using namespace std; int main(){
int n;
cin >> n;
cout <<fixed<<setprecision (1) << (2*n+3)*100.0/(n*n)<<"%";
return 0;
}
using namespace std; int main(){
int n;
cin >> n;
cout << fixed << setprecision(1) << (2*n+3)*100.0/(n*n) << "%";
return 0;
}