結果
問題 |
No.3011 あ、俺こいつの役やりたい!
|
ユーザー |
![]() |
提出日時 | 2025-01-25 13:33:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 710 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 82,096 KB |
実行使用メモリ | 74,068 KB |
平均クエリ数 | 15.36 |
最終ジャッジ日時 | 2025-01-25 22:51:06 |
合計ジャッジ時間 | 6,596 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 14 |
ソースコード
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) // 3 * 2 print(mi) r=II() if r==1 or r==-1: exit() elif r==0: ok = mi