結果
問題 | No.105 arcの六角ボルト |
ユーザー |
![]() |
提出日時 | 2016-08-10 00:13:28 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 766 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 33,024 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 08:34:30 |
合計ジャッジ時間 | 639 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
コンパイルメッセージ
Main.f90:30:27: 30 | write (ans,'(F18.10)'), kakudo | 1 Warning: Legacy Extension: Comma before i/o item list at (1)
ソースコード
integer::T,i,jreal*8,parameter::xi=1.0_8,yi=0_8,pi=3.141592653589793238,cos50=0.64278760968real*8,allocatable::xy(:,:,:)real*8::x,y,kakudocharacter*20::ansread *,Tallocate (xy(2,6,T))read *,xydo i=1,Tdo j=1,6x = 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) thenprint '(a)',"0.000000000"goto 10end ifend dodo j=1,6x = xy(1,j,i)y = xy(2,j,i)if(x.gt.cos50.and.y.gt.0) thenexitend ifend dokakudo = ACOS(x)/(2*pi)*360.0_8write (ans,'(F18.10)'), kakudoprint '(a)', TRIM(ADJUSTL(ans))10 continueend doend program