結果
問題 | No.3011 あ、俺こいつの役やりたい! |
ユーザー |
![]() |
提出日時 | 2025-01-25 12:42:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 923 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 82,612 KB |
実行使用メモリ | 74,440 KB |
平均クエリ数 | 11.55 |
最終ジャッジ日時 | 2025-01-25 22:18:31 |
合計ジャッジ時間 | 5,626 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 WA * 3 |
ソースコード
from collections import defaultdict, deque, Counter# from functools import cache# import copyfrom itertools import combinations, permutations, product, accumulate, groupby, chain# from more_itertools import distinct_permutationsfrom heapq import heapify, heappop, heappush, heappushpopimport mathimport bisect# from pprint import pprintfrom random import randint, shuffle, randrange# from sortedcontainers import SortedSet, SortedList, SortedDictimport sys# sys.setrecursionlimit(2000000)input = lambda: sys.stdin.readline().rstrip('\n')inf = float('inf')mod1 = 10**9+7mod2 = 998244353def ceil_div(x, y): return -(-x//y)#################################################def judge(x):print(x, flush=True)r = int(input())if r == 1:exit()return Falseok, ng = 1, 10**9while(abs(ok-ng)>1):mid = (ok+ng)//2if judge(mid):ok = midelse:ng = mid