uva 10286 Trouble with a Pentagon
来源:互联网 发布:oracle导入数据库 编辑:程序博客网 时间:2024/06/05 22:46
题意:求正五边形的内接正方形边长
给出正五边形边长
分析:y = sinY / sinX * x
#include <iostream>#include <cstdio>#include <algorithm>#include <cmath>using namespace std;const double pi = acos(-1);int main(){ double temp = sin(pi*108/180)/sin(pi*63/180); double x,y; while(~scanf("%lf",&x)) { y = temp * x; printf("%.10lf\n",y); } return 0;}
0 0
- UVa 10286 - Trouble with a Pentagon
- UVA, 10286 Trouble with a Pentagon
- uva 10286 Trouble with a Pentagon
- uva_10286_Trouble with a Pentagon
- Having trouble with a BeagleBoard GPIO interrupt pin
- The Trouble With Multicore
- The Trouble With Girls
- "The Trouble with Checked Exceptions A Conversation with Anders Hejlsberg, Part II" 阅读笔记
- Trouble is a friend
- Trouble is a friend
- trouble is a friend
- The Trouble with Checked Exceptions
- UVA 10217: A Dinner with Schwarzenegger!!!
- UVA 10217 A Dinner with Schwarzenegger!!!
- Trouble shooting:login failed for user 'sa' ,the user is not associated with a trusted SQL Server
- Trouble with expressions in Jasper Reports
- The Trouble With Multicore-David Patterson
- Java - Get Started with Trouble Shooting
- Hive 查询优化总结
- 关于日志分类的一些思考
- [转] maven-compiler-plugin 插件版本信息错误提示的解决方法
- 访问外部存储中的数据库文件,使用CursorAdapter显示在ListView组件上
- 2015 北京区域赛 Today Is a Rainy Day(暴搜)
- uva 10286 Trouble with a Pentagon
- python中if __name__ == '__main__': 的解析
- 编程练习3 1010
- hdoj2099整除的尾数(数学)
- 实习记录(一)
- JamesMusic浅读--------6,补全欢迎界面,音乐文件数据库
- hibernate+struts2学生信息管理系统简单整合
- java线程操作 sleep wait start wait 等
- poj1163The Triangle(DP)