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

V1 = V * v;

Posted by Judas at 2006-07-01 14:52:30 on Problem 2857
In Reply To:帮我看看我这段哪里有问题,sample正确.sample2会输出black,black Posted by:daringQQ at 2006-07-01 14:50:18
> int search(double H, double V, double x, double y, int c)
> {
> 	double H1, V1;
> 	H1 = H * h;
> 	V1 = V * (1 - v);
> 	if(x < H1 && y > V1 || x > H1 && y < V1) return c;
> 	if(x > H1) return search(H - H1, V - V1, x - H1, y - V1, !c);
> 	return search(H1, V1, x, y, !c);
> }

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