竞赛
考级
#include<bits/stdc++.h> using namespace std; int main(){ double r,pl = 3.14159; scanf("%lf",&r); printf("%.4lf",r * 2); cout << " "; printf("%.4lf",r * 2 * pl); cout << " "; printf("%.4lf",r * r * pl); return 0; }
暗區突圍随风0351
题解 用高精度
嫌疑を避ける ~~
垃圾代码,不喜勿喷
海边的草履虫
海螺
高原上の万叶.com
#include<iostream> using namespace std; int main(){ double a; cin>>a; double b=a2; double PI=3.14159; double c=a2PI; double d=aa*PI; printf("%.4lf",b); cout<<" "; printf("%.4lf",c); cout<<" "; printf("%.4lf",d); return 0; }
周哲
Andes99
r=input() r=float(r) d='%.4f' % (r*2) c=float(d)*3.14159 c='%.4f' % c s=(r**2)*3.14159 s='%.4f' % s print(d,c,s)
151****9879
#include<bits/stdc++.h> using namespace std; int main(){ const double pi=3.14159; double r; cin>>r; printf("%.4f",r2); cout<<" "; printf("%.4f",r2pi); cout<<" "; printf("%.4f",rr*pi); return 0; }
牢大牌闪光damn
www
#include <bits/stdc++.h> using namespace std; int main() { double r; double PI=3.14159; cin>>r; double ansr=r2; double ansz=r2PI; double ansc=rr*PI; printf("%.4f %.4f %.4f",ansr,ansz,ansc); }
战神老六
正在减肥的吃货
潜龙暗虎
#include<bits/stdc++.h> using namespace std; int main(){ double r,PI=3.14159; cin>>r; printf("%.4f %.4f %.4f",2r,2rPI,rr*PI); return 0; }
死神链锁
zsy
#include <iostream> using namespace std; int main(){ double r,r2,lon,b,PI = 3.14159; cin>>r; r2 = r2; lon = r2 * PI; b = rr*PI; printf("%.4lf %.4lf %.4lf",r2,lon,b); return 0; }
130****5887
#include<iostream> #include<cstdio> using namespace std; int main(){ double r, d = 0, c = 0, s = 0; double PI = 3.14159; cin >> r; d = r * 2; c = r * 2 *PI; s = r * r * PI; printf("%.4f", d); cout << " "; printf("%.4f", c); cout << " "; printf("%.4f", s); return 0; }
AC
6.
#include<iostream> using namespace std; int main(){ double r; cin>>r; printf("%.4f",r2); cout<<" "; printf("%.4f",r23.14159); cout<<" "; printf("%.4f",rr*3.14159); return 0; }
复制战神
耐高总冠军 张文杰
共49条