Included in Circle by atami(complex)

while 1:A,B,C,D,E,G,F,H=map(int,raw_input().split());I=1j;a=A-C+(B-D)*I;b=C-E+(D-G)*I;c=E-F+(G-H)*I;d=F-A+(H-B)*I;print'10'[(a/b*c/d).imag*(a/b).imag<0]

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

download

return top