integer::T,i,j real*8,parameter::xi=1.0_8,yi=0_8,pi=3.141592653589793238,cos50=0.64278760968 real*8,allocatable::xy(:,:,:) real*8::x,y,kakudo character*20::ans read *,T allocate (xy(2,6,T)) read *,xy do i=1,T do j=1,6 x = xy(1,j,i) y = xy(2,j,i) if(ABS(x).lt.0.5000000001.and.ABS(x).gt.0.4999999999 .or. & ABS(y).lt.0.0000000001) then print '(a)',"0.000000000" goto 10 end if end do do j=1,6 x = xy(1,j,i) y = xy(2,j,i) if(x.gt.cos50.and.y.gt.0) then exit end if end do kakudo = ACOS(x)/(2*pi)*360.0_8 write (ans,'(F18.10)'), kakudo print '(a)', TRIM(ADJUSTL(ans)) 10 continue end do end program