結果

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

ソースコード

diff #

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

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