結果
問題 | No.3011 あ、俺こいつの役やりたい! |
ユーザー |
![]() |
提出日時 | 2025-01-25 12:50:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 72 ms / 2,000 ms |
コード長 | 932 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 74,384 KB |
平均クエリ数 | 11.61 |
最終ジャッジ日時 | 2025-01-25 22:23:15 |
合計ジャッジ時間 | 6,177 ms |
ジャッジサーバーID (参考情報) |
judge8 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 |
ソースコード
from collections import defaultdict, deque, Counter # from functools import cache # import copy from itertools import combinations, permutations, product, accumulate, groupby, chain # from more_itertools import distinct_permutations from heapq import heapify, heappop, heappush, heappushpop import math import bisect # from pprint import pprint from random import randint, shuffle, randrange # from sortedcontainers import SortedSet, SortedList, SortedDict import sys # sys.setrecursionlimit(2000000) input = lambda: sys.stdin.readline().rstrip('\n') inf = float('inf') mod1 = 10**9+7 mod2 = 998244353 def ceil_div(x, y): return -(-x//y) ################################################# def judge(x): print(x, flush=True) r = int(input()) if r == 1: exit() return False ok, ng = 1, 10**9 while(abs(ok-ng)>1): mid = (ok+ng)//2 if judge(mid): ok = mid else: ng = mid print(1)