| ||||||||||
| 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 | |||||||||
帮我看看我这段哪里有问题,sample正确.sample2会输出black,blackint 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator