結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
koyopro
|
| 提出日時 | 2015-09-20 21:25:53 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 81,152 KB |
| 実行使用メモリ | 81,536 KB |
| 平均クエリ数 | 8.00 |
| 最終ジャッジ日時 | 2026-07-17 21:50:45 |
| 合計ジャッジ時間 | 4,806 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
# -*- coding: utf-8 -*-
import sys
top = 10 ** 2
bottom = 1
while True:
mid = (top + bottom) / 2
print "? %d" % mid
sys.stdout.flush()
res = int(input())
if res == 1:
bottom = mid
else:
top = mid
if bottom + 1 >= top:
break
print "! %d" % (bottom)
sys.stdout.flush()
koyopro