結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
tnodino
|
| 提出日時 | 2022-07-06 18:17:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 27,736 KB |
| 平均クエリ数 | 30.93 |
| 最終ジャッジ日時 | 2024-12-23 00:15:22 |
| 合計ジャッジ時間 | 4,785 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
def question(y):
print(f'? {y}')
return int(input())
def answer(y):
print(f'! {y}')
ng = 0
ok = 10**9
while ok - ng > 1:
x = (ok + ng) // 2
if question(x):
ok = x
else:
ng = x
answer(ok)
tnodino