結果

問題 No.246 質問と回答
ユーザー jj
提出日時 2016-08-29 14:05:51
言語 Fortran
(gFortran 14.2.0)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 1,559 ms
コンパイル使用メモリ 30,848 KB
実行使用メモリ 25,220 KB
平均クエリ数 30.90
最終ジャッジ日時 2024-07-16 20:05:35
合計ジャッジ時間 4,625 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 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