結果

問題 No.246 質問と回答
ユーザー jj
提出日時 2016-08-28 21:10:25
言語 Fortran
(gFortran 14.2.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 30,720 KB
実行使用メモリ 25,604 KB
平均クエリ数 30.90
最終ジャッジ日時 2024-07-16 10:56:47
合計ジャッジ時間 3,636 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

program main
  implicit none
  integer*8::N,i
  integer*8::lower=1,mid,upper=10**9
  do i=1,101
     mid = (lower+upper)/2_8

     print '("? ",i0)',mid
     read *,N
     if(N.eq.1) then
        lower=mid
     else
        upper=mid
     end if
     if(upper.le.lower+1) exit
  end do
  print '("!",i0)',lower
end program main
0