8月19号CCPC——The Designer(未解答)
来源:互联网 发布:c语言主函数作用 编辑:程序博客网 时间:2024/06/06 00:39
Problem DescriptionNowadays, little haha got a problem from his teacher.His teacher wants to design a big logo for the campus with some circles tangent with each other. And now, here comes the problem. The teacher want to draw the logo on a big plane. You could see the example of the graph in the Figure1At first, haha's teacher gives him two big circles, which are tangent with each other. And, then, he wants to add more small circles in the area where is outside of the small circle, but on the other hand, inside the bigger one (you may understand this easily if you look carefully at the Figure1. Each small circles are added by the following principles.* you should add the small circles in the order like Figure1.* every time you add a small circle, you should make sure that it is tangented with the other circles (2 or 3 circles) like Figure1. The teacher wants to know the total amount of pigment he would use when he creates his master piece.haha doesn't know how to answer the question, so he comes to you.TaskThe teacher would give you the number of small circles he want to add in the figure. You are supposed to write a program to calculate the total area of all the small circles. InputThe first line contains a integer t(1≤t≤1200), which means the number of the test cases. For each test case, the first line insist of two integers R1 and R2 separated by a space (1≤R≤100), which are the radius of the two big circles. You could assume that the two circles are internally tangented. The second line have a simple integer N (1≤N≤10 000 000), which is the number of small circles the teacher want to add. OutputFor each test case: Contains a number in a single line, which shows the total area of the small circles. You should out put your answer with exactly 5 digits after the decimal point (NO SPJ). Sample Input25 414 51 Sample Output3.141593.14159
这道题的大体意思就是给你两个圆的半径,画出相切圆,在两个圆间还会有间隙,在这个间隙里,求得1个2个3个...圆的面积。
欢迎大神提供思路和答案。
阅读全文
0 0
- 8月19号CCPC——The Designer(未解答)
- 8月19号CCPC——CaoHaha's staff(未解答)
- 8月19号CCPC——Graph Of Zhuper(未解答)
- 8月19号CCPC——The Karting(未解决)
- 8月19号CCPC——Palindrome Function(未解决)
- 8月19日CCPC——Vertex Cover(未解决)
- 8月19日CCPC——Party(未解决)
- 8月19日CCPC——A Secret(未解决)
- 8月19日CCPC——Friend-Graph
- 2017 CCPC网络赛 1009 The Designer(未完待续)
- HDU 6158 The Designer 笛卡尔定理+韦达定理 2017ccpc网络赛
- The Designer
- 《game design workshop》阅读笔记(一)——Game Design Basics——The Role of the Game Designer
- 2015ccpc——H
- 2015ccpc——G
- 集训第二十天(2017/8/19)CCPC打酱油
- 2015年CCPC D题 Pick The Sticks(DP)
- ccpc Pick The Sticks(dp特殊处理)
- 007
- MySQL数据库的热备份和冷备份的优缺点
- Android 异步加载图片,使用LruCache和SD卡或手机缓存,效果非常的流畅
- 【OPNET小问题】统计量显示收发数据数量不匹配以及如何导出统计量数据
- Android Service与Activity之间通信的几种方式
- 8月19号CCPC——The Designer(未解答)
- spring中@param和mybatis中@param使用区别
- 《Windows程序设计》读书笔二十一 动态链接库
- Android开源库集锦
- 问题2
- SQL Server 配置管理器无法启动
- java基础学习总结——对象转型
- Select2下拉框总结
- python类和对象(7)