結果

問題 No.105 arcの六角ボルト
ユーザー jjjj
提出日時 2016-08-10 00:22:01
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 526 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 32,384 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-04-24 23:07:20
合計ジャッジ時間 1,051 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
5,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.f90:17:33:

   17 |            write (ans,'(F18.10)'), kakudo
      |                                 1
Warning: Legacy Extension: Comma before i/o item list at (1)

ソースコード

diff #

  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)
        kakudo = DATAN2(y,x)*180.0_8/pi
        if(kakudo.gt.-0.0000001.and.kakudo.lt.(50+10**(-7))) then
           write (ans,'(F18.10)'), kakudo
           print '(a)', TRIM(ADJUSTL(ans))
        end if
     end do
  end do
end program
0