首页 > 其他 > 详细

推公式 HDU 2552

时间:2016-12-29 22:46:49      阅读:173      评论:0      收藏:0      [点我收藏+]

T 给你2个值 求另外一个 需要推一下

tan(a+b)=(tan(a)+tan(b))/(1-tan(a)*tan(b));

等式左右取tan

tan(atan(a))=a

1/s=tan(...)=(1/u+1/v)/(1-1/(uv));

最后推出 那个式子等于1

#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<math.h>

using namespace std;

#define MAXN 105

int main()
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        double s,u;
        scanf("%lf%lf",&s,&u);
        printf("%d\n",1);
    }
    return 0;
}

 

推公式 HDU 2552

原文:http://www.cnblogs.com/cherryMJY/p/6234770.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!