結果
問題 |
No.246 質問と回答
|
ユーザー |
|
提出日時 | 2015-07-17 22:31:54 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-07-16 06:51:21 |
合計ジャッジ時間 | 3,952 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 30 |
ソースコード
import sys ans = 0 res = 1 for shif in xrange(99, -1, -1): print "? %d" % (ans | 1 << shift) sys.stdout.flush() res = int(raw_input()) if res == 1: ans |= 1 << shift print "! %d" % res sys.stdout.flush()