結果

問題 No.1187 皇帝ペンギン
ユーザー tonnnura172tonnnura172
提出日時 2020-10-21 04:39:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 1,047 bytes
コンパイル時間 853 ms
コンパイル使用メモリ 10,936 KB
実行使用メモリ 25,676 KB
平均クエリ数 20.96
最終ジャッジ日時 2023-09-24 06:54:47
合計ジャッジ時間 7,654 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
25,396 KB
testcase_01 AC 53 ms
25,524 KB
testcase_02 AC 54 ms
25,604 KB
testcase_03 AC 53 ms
25,144 KB
testcase_04 AC 53 ms
25,272 KB
testcase_05 AC 53 ms
25,284 KB
testcase_06 AC 54 ms
24,940 KB
testcase_07 AC 53 ms
25,544 KB
testcase_08 AC 53 ms
25,436 KB
testcase_09 AC 52 ms
25,188 KB
testcase_10 AC 53 ms
25,168 KB
testcase_11 AC 53 ms
25,152 KB
testcase_12 AC 53 ms
25,608 KB
testcase_13 AC 52 ms
25,512 KB
testcase_14 AC 53 ms
25,076 KB
testcase_15 AC 53 ms
25,252 KB
testcase_16 AC 53 ms
24,932 KB
testcase_17 AC 54 ms
25,252 KB
testcase_18 AC 54 ms
25,256 KB
testcase_19 AC 53 ms
25,132 KB
testcase_20 AC 53 ms
25,100 KB
testcase_21 AC 53 ms
25,080 KB
testcase_22 AC 53 ms
25,060 KB
testcase_23 AC 54 ms
25,124 KB
testcase_24 AC 52 ms
25,572 KB
testcase_25 AC 53 ms
25,496 KB
testcase_26 AC 53 ms
24,944 KB
testcase_27 AC 53 ms
25,244 KB
testcase_28 AC 53 ms
24,904 KB
testcase_29 AC 53 ms
25,348 KB
testcase_30 AC 53 ms
25,676 KB
testcase_31 AC 54 ms
25,120 KB
testcase_32 AC 53 ms
25,508 KB
testcase_33 AC 53 ms
25,404 KB
testcase_34 AC 53 ms
25,328 KB
testcase_35 AC 53 ms
25,196 KB
testcase_36 AC 53 ms
24,972 KB
testcase_37 AC 54 ms
25,276 KB
testcase_38 AC 52 ms
25,668 KB
testcase_39 AC 53 ms
25,268 KB
testcase_40 AC 52 ms
24,912 KB
testcase_41 AC 53 ms
25,136 KB
testcase_42 AC 53 ms
25,628 KB
testcase_43 AC 54 ms
25,116 KB
testcase_44 AC 53 ms
25,624 KB
testcase_45 AC 53 ms
25,312 KB
testcase_46 AC 54 ms
25,576 KB
testcase_47 AC 53 ms
25,488 KB
testcase_48 AC 53 ms
25,168 KB
testcase_49 AC 53 ms
25,508 KB
testcase_50 AC 53 ms
25,440 KB
testcase_51 AC 53 ms
25,004 KB
testcase_52 AC 52 ms
25,624 KB
testcase_53 AC 54 ms
25,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby, combinations_with_replacement
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

l = -1
r = 1000

while l+1 != r:
    m = (l+r)//2
    print("? {}".format(m+1), flush=True)
    ret1 = input()
    print("? {}".format(m+2), flush=True)
    ret2 = input()
    if ret1 == "out" and ret2 == "out":
        r = m
    else:
        l = m
print("! {}".format(r))
0