标签:数学 人才 algorithm iostream namespace
1 1 2
1
*赤裸裸的数学题: 证明过程: 依据三角函数: 1.tan(a+b) = ( tan(a) + tan(b) ) / (1 – tan(a) * tan(b) ) 2.tan( arctan(x) ) = x arctan(1/s) = arctan(1/u)+arctan(1/v) 所以得1/s = tan( arctan(1/u)+arctan(1/v) ) = (tan(arctan(1/u)) + tan(arctan(1/v)))/(1-tan(arctan(1/u))*tan(arctan(1/v))) = (1/u + 1/v) / (1 - 1/(uv)) 所以解得 uv = 1 + us + vs v=(1+us)/(u-s) 所以v*u-s*u-s*v =u(1+us)/(u-s)-s(1+us)/(u-s)-su =1 */
#include<cstdio> #include<cstring> #include<cmath> #include<iostream> #include<algorithm> using namespace std; int main() { int T,a,b; cin>>T; while(T--) { cin>>a>>b; cout<<1<<endl; //会不会有点不可思议,但是它就是这么水。。。 } return 0; }
标签:数学 人才 algorithm iostream namespace
原文地址:http://blog.csdn.net/holyang_1013197377/article/details/40346329