結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー さわーくりーむおにおん🧅
提出日時 2025-01-25 13:36:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 706 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 71,544 KB
平均クエリ数 11.50
最終ジャッジ日時 2025-01-25 22:51:40
合計ジャッジ時間 6,174 ms
ジャッジサーバーID
(参考情報)
judge11 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, Counter, deque
from itertools import groupby, accumulate, combinations, permutations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from operator import itemgetter
import math
from heapq import heapify, heappush, heappop

LMI=lambda:list(map(int, input().split()))
LMS=lambda:list(map(str, input().split()))
MI=lambda:map(int, input().split())
MS=lambda:map(str, input().split())
II=lambda:int(input())
IS=lambda:input().split()
LI=lambda:list(input())

ok, ng = 10**9, 0

while True:
		#真ん中の値を計算
    mi = (ok + ng) // 2
    print(mi)
    r=II()

    if r==1 or r==-1:
        exit()
    elif r==0:
        ok = mi
0