結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
紙ぺーぱー
|
| 提出日時 | 2015-05-08 16:13:11 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 166 ms / 2,000 ms |
| + 1µs | |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 80,768 KB |
| 平均クエリ数 | 101.00 |
| 最終ジャッジ日時 | 2026-07-17 14:25:45 |
| 合計ジャッジ時間 | 4,799 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
import sys
l=1
r=1000000000
cnt=0
while l<r and cnt<100:
cnt+=1
m=(l+r)//2
print("? %d" % m)
sys.stdout.flush()
ans=int(input())
if ans==1:
l=m
else:
r=m
print("! %d" % l)
sys.stdout.flush()
紙ぺーぱー