Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

ac了一道简单题,现在菜题越来越少了.

Posted by 2004huangyimin at 2007-08-16 22:37:39 on Problem 1254
			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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator