← RoseCode

ROSECODE 079

Pragma Series: Original Triangle

elasolova · TimeRace ·

The original interaction is no longer available. Any surviving program is preserved as source code.

In this problem you will be supplied with several thousands of random triangle vertice positions(in cartesian coordinates). Your task is to compute number of triangles that contain the origin.
p79.php (original interactive page unavailable) supplies the list of triangles in the form Ax,Ay,Bx,By,Cx,Cy per line.(where ABC are the vertices). When you get the answer POST to same page(p79.php) as amount=A&submit79=true. You have 1.86 secs to do so.