結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
紙ぺーぱー
|
| 提出日時 | 2015-05-08 16:13:11 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 169 ms / 2,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 77,624 KB |
| 最終ジャッジ日時 | 2025-12-03 15:01:27 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()
紙ぺーぱー