Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
ac了一道简单题,现在菜题越来越少了.k1 = tan((450 - arc1)*PI/180); k2 = tan((450 - arc2)*PI/180); a = (k1*x1 - k2*x2 - y1 + y2)/(k1 - k2); b = (k1*k2*(x1 - x2) + k1*y2 - k2*y1)/(k1 - k2); cout << fixed << setprecision(4)<<a<<" "<<b<<endl; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator