thanks luke!
this is what I missed.
On Sep 17, 12:51 am, Luke Pebody <[email protected]> wrote:
> If dot is positive, (say if p=(1,0,0) and v=(1,0,0)), then the center
> of mass always moves further away from where it starts, and the
> nearest point happened in the past. Thus the answer is t=0.
>
> On Wed, Sep 16, 2009 at 7:00 PM, Seedrick <[email protected]> wrote:
>
> > Someone please tell me what is the problem in my code
> > ...
> > else
> > {
> > dmin= ap-sq(dot);
> > dmin = sqrt(dmin);
> > tmin = (fabs(dot))/mod;
> > }
> > printf("Case #%d: %.8lf %.8lf\n",i+1,dmin,tmin);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---