Included in Circle by atami(trigonometric)

with(Math)for(q=atan2;[A,B,C,D,e,F,G,H]=readline().split(' ');)print(sin(t=q(D-F,C-e)-q(B-D,A-C))*sin(t+q(H-B,G-A)-q(F-H,e-G))>0|0)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page