朱色虫居
Pages
Home
Featured Posts
2006/10/09
10286-Trouble with a Pentagon
/*
"Trouble with a Pentagon"
Level:1.5
Date:2006/10/8
技巧: sin(108)/sin(63)*F
http://ken.duisenberg.com/potw/archive/arch98/981113sol.html
參數是弳度,
要用double,float會WA.
*/
#include
#include
#define pi 3.1415926535897932384626433832795
main(){
double input=0.0;
while(scanf("%lf",&input)==1){
printf("%.10lf\n",sin(108*pi/180.0)/sin(63*pi/180.0)*input);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment