結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー Prala
提出日時 2025-01-25 13:27:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 619 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 82,640 KB
実行使用メモリ 74,444 KB
平均クエリ数 12.61
最終ジャッジ日時 2025-01-25 22:47:54
合計ジャッジ時間 5,912 ms
ジャッジサーバーID
(参考情報)
judge11 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def ST(): return pin().rstrip()
def IN(): return int(pin())
def IM(): return map(int, pin().split())
def IL(): return list(map(int, pin().split()))
def SR(n:int): return [pin().rstrip() for _ in range(n)]
def IMatrix(n:int): return [IL() for _ in range(n)]

##-----------------
import random
import math
import bisect
import itertools
from collections import defaultdict, deque
#from sortedcontainers import SortedList
##-----------------

r = 10**9+1
l = 0
for i in range(30):
	c = (r+l)//2
	print(c, flush=True)
	try:
		R = int(input())
	except Exception:
		exit()
	if R:
		l = c
	else:
		r = c+1
print(l)
0