結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-17 22:28:29 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 77,764 KB |
| 最終ジャッジ日時 | 2025-12-03 15:50:35 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
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()