結果
| 問題 | 
                            No.105 arcの六角ボルト
                             | 
                    
| コンテスト | |
| ユーザー | 
                             jj
                         | 
                    
| 提出日時 | 2016-08-10 00:05:59 | 
| 言語 | Fortran  (gFortran 14.2.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 697 bytes | 
| コンパイル時間 | 572 ms | 
| コンパイル使用メモリ | 32,768 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-07 08:34:25 | 
| 合計ジャッジ時間 | 1,134 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
コンパイルメッセージ
Main.f90:26:27:
   26 |      write (ans,'(G18.10)'), kakudo
      |                           1
Warning: Legacy Extension: Comma before i/o item list at (1)
            
            ソースコード
  integer::T,i,j
  real*8,parameter::xi=1.0_8,yi=0_8,pi=3.141592653589793238
  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
     kakudo = MOD(ACOS(ABS(x))/(2*pi)*360.0_8,60.0_8)
     if(kakudo.gt.50.0_8) then
        kakudo = 60.0_8-kakudo
     end if
     write (ans,'(G18.10)'), kakudo
     print '(a)', TRIM(ADJUSTL(ans))
10   continue
  end do
end program
            
            
            
        
            
jj