結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-17 22:31:54 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 77,728 KB |
| 最終ジャッジ日時 | 2025-12-03 15:50:49 |
|
ジャッジサーバーID (参考情報) |
judge4 / 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()