【待补】华中农业大学第五届程序设计大赛 F Escape from the Darkness [解析几何]【数学】
2017-05-26 21:39
399 查看
题目链接:http://acm.hzau.edu.cn/problem.php?id=1204
————————————————————————————————————————
1204: Escape from the Darkness
Time Limit: 1 Sec Memory Limit: 1280 MB
Submit: 99 Solved: 3
[Submit][Status][Web Board]
Description
Xiao Ming, a high school student, learnt blackbody radiation from the physics class. The black body on the book is indicated approximately by black body cavity as below:
from the small hole if total reflection occurs on the surface of the cavity.
Assuming in the two-dimensional coordinates, the center of the oval is at origin, and the vertexes of it is respectively (a, 0), (-a, 0), (0, b), (0, -b). There is a small hole at (a/2,sqrt(3)*b/2) (whose areas can be ignored). A beam of light (whose diameter can be ignored) shoot into the oval through the small hole. The direction of the light is (-1, 0). Assuming the light totally mirror reflects on the surface of the oval, the question is how many times can the light reflect before shooting out through the small hole. (If a point is away from the small hole less than 0.01, we think light shoot out from that point.)
Input
The first line is a positive integer T (1 <= T <= 55) which indicates the numbers of the test cases. Then flowing next T lines, there are two positive integer a, b (1 <= b<= a<= 10) in each line as a group of cases.
Output
The output of each case is one line with a positive integer which indicates the times of reflects.
Sample Input
1
1 1
Sample Output
5
HINT
The path of the light in the sample is looked as the picture shows. The light reflected five times.
————————————————————————————————————————
题目大意:
好像很难啊 ,占坑待补。
————————————————————————————————————————
1204: Escape from the Darkness
Time Limit: 1 Sec Memory Limit: 1280 MB
Submit: 99 Solved: 3
[Submit][Status][Web Board]
Description
Xiao Ming, a high school student, learnt blackbody radiation from the physics class. The black body on the book is indicated approximately by black body cavity as below:
from the small hole if total reflection occurs on the surface of the cavity.
Assuming in the two-dimensional coordinates, the center of the oval is at origin, and the vertexes of it is respectively (a, 0), (-a, 0), (0, b), (0, -b). There is a small hole at (a/2,sqrt(3)*b/2) (whose areas can be ignored). A beam of light (whose diameter can be ignored) shoot into the oval through the small hole. The direction of the light is (-1, 0). Assuming the light totally mirror reflects on the surface of the oval, the question is how many times can the light reflect before shooting out through the small hole. (If a point is away from the small hole less than 0.01, we think light shoot out from that point.)
Input
The first line is a positive integer T (1 <= T <= 55) which indicates the numbers of the test cases. Then flowing next T lines, there are two positive integer a, b (1 <= b<= a<= 10) in each line as a group of cases.
Output
The output of each case is one line with a positive integer which indicates the times of reflects.
Sample Input
1
1 1
Sample Output
5
HINT
The path of the light in the sample is looked as the picture shows. The light reflected five times.
————————————————————————————————————————
题目大意:
好像很难啊 ,占坑待补。
相关文章推荐
- 【待补】华中农业大学第五届程序设计大赛 B Choosy in Food [高斯消元]【数学】
- 华中农业大学第五届程序设计大赛 D GCD [fibonacci+矩阵乘法]【数学】
- 华中农业大学第五届程序设计大赛 (7/12)
- 华中农业大学第五届程序设计大赛网络同步赛-L
- 华中农业大学第五届程序设计大赛 I Candies [线段树]【数据结构】
- 华中农业大学第五届程序设计大赛网络同步赛-A
- 华中农业大学第五届程序设计大赛 C Friends [树形dp]【动态规划】
- 华中农业大学第五届程序设计大赛 J Color Circle
- 华中农业大学第五届程序设计大赛 E One Stroke [枚举]【思维】
- 华中农业大学第五届程序设计大赛网络同步赛 H MathematicalGame
- 华中农业大学第五届程序设计大赛网络同步赛解题报告2(转)
- 华中农业大学第五届程序设计大赛网络同步赛-G
- 华中农业大学第五届程序设计大赛 G Sequence Number [树上二分]【数据结构】
- 华中农业大学第五届程序设计大赛网络同步赛-D
- 华中农业大学第五届程序设计大赛网络同步赛-K
- 华中农业大学第五届程序设计大赛网络同步赛解题报告(转)
- 华中农业大学第五届程序设计大赛 A Little Red Riding Hood [BIT优化dp]【动态规划】
- 华中农业大学第五届程序设计大赛 【10/12】个人训练总结
- 华中农业大学第五届程序设计大赛 H MathematicalGame [01字典树]【字典树】
- hzau 1204 Escape from the Darkness