結果
問題 |
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 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