結果

問題 No.246 質問と回答
ユーザー DrDrpilotDrDrpilot
提出日時 2022-10-09 15:58:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 809 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 10,912 KB
実行使用メモリ 25,556 KB
平均クエリ数 30.90
最終ジャッジ日時 2023-09-23 20:40:15
合計ジャッジ時間 4,193 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
25,536 KB
testcase_01 AC 65 ms
25,348 KB
testcase_02 AC 65 ms
25,212 KB
testcase_03 AC 65 ms
25,128 KB
testcase_04 AC 65 ms
25,372 KB
testcase_05 AC 65 ms
24,988 KB
testcase_06 AC 64 ms
25,184 KB
testcase_07 AC 65 ms
24,996 KB
testcase_08 AC 66 ms
25,244 KB
testcase_09 AC 66 ms
25,068 KB
testcase_10 AC 66 ms
25,212 KB
testcase_11 AC 65 ms
25,112 KB
testcase_12 AC 66 ms
25,412 KB
testcase_13 AC 66 ms
25,556 KB
testcase_14 AC 65 ms
25,196 KB
testcase_15 AC 66 ms
25,052 KB
testcase_16 AC 66 ms
25,144 KB
testcase_17 AC 67 ms
25,328 KB
testcase_18 AC 67 ms
24,924 KB
testcase_19 AC 66 ms
24,924 KB
testcase_20 AC 66 ms
25,552 KB
testcase_21 AC 66 ms
25,068 KB
testcase_22 AC 65 ms
25,332 KB
testcase_23 AC 66 ms
25,496 KB
testcase_24 AC 65 ms
24,988 KB
testcase_25 AC 66 ms
25,228 KB
testcase_26 AC 66 ms
25,512 KB
testcase_27 AC 65 ms
25,180 KB
testcase_28 AC 65 ms
25,076 KB
testcase_29 AC 67 ms
25,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def I():return int(input())
def MAP():return map(int,input().split())
def MAPs():return map(str,input().split())
def LI(): return list(map(int,input().split()))
def TPL(): return tuple(map(int,input().split()))
def S():return input()
from collections import defaultdict,Counter,deque
from copy import deepcopy
from heapq import heapify,heappop,heappush
from bisect import bisect_left,bisect_right
from itertools import accumulate,product,permutations,combinations,combinations_with_replacement
from math import gcd,ceil,floor,factorial,sqrt,pi,sin,cos,tan,radians,exp
import time
import random
inf=float('inf');mod=998244353;Mod=10**9+7
dydx=[(1,0),(0,1),(-1,0),(0,-1)]

ok=-1;ng=10**9+1
while ng-ok>1:
    mid=(ok+ng)//2
    print('?',mid)
    if I()==1:
        ok=mid
    else:
        ng=mid
print('!',ok)
0