結果

問題 No.246 質問と回答
ユーザー roiti46
提出日時 2015-07-17 22:29:39
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 25,964 KB
平均クエリ数 101.00
最終ジャッジ日時 2024-07-16 06:50:52
合計ジャッジ時間 3,951 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
ans = 1
res = 1
for cnt in xrange(100):
    print "? %d" % (ans | 1 << (100 - cnt))
    sys.stdout.flush()
    res = int(raw_input())
    if res == 1:
        ans |= 1 << (100 - cnt)

print "! %d" % res
sys.stdout.flush()
0