結果
問題 | No.246 質問と回答 |
ユーザー |
|
提出日時 | 2022-10-09 15:58:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 809 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 28,248 KB |
平均クエリ数 | 30.90 |
最終ジャッジ日時 | 2024-07-16 20:30:15 |
合計ジャッジ時間 | 4,270 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
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,dequefrom copy import deepcopyfrom heapq import heapify,heappop,heappushfrom bisect import bisect_left,bisect_rightfrom itertools import accumulate,product,permutations,combinations,combinations_with_replacementfrom math import gcd,ceil,floor,factorial,sqrt,pi,sin,cos,tan,radians,expimport timeimport randominf=float('inf');mod=998244353;Mod=10**9+7dydx=[(1,0),(0,1),(-1,0),(0,-1)]ok=-1;ng=10**9+1while ng-ok>1:mid=(ok+ng)//2print('?',mid)if I()==1:ok=midelse:ng=midprint('!',ok)