結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-17 22:27:01 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 77,720 KB |
| 最終ジャッジ日時 | 2025-12-03 15:50:29 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 30 |
ソースコード
import sys
ans = 1
res = 1
for cnt in xrange(11):
print ("? %d" % ans | 1 << (11 - cnt))
sys.stdout.flush()
res = int(input())
if res == 1:
ans |= 1 << (11 - cnt)
print("! %d" % res)
sys.stdout.flush()