結果

問題 No.2357 Guess the Function
ユーザー ShirotsumeShirotsume
提出日時 2023-06-23 22:47:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 563 bytes
コンパイル時間 862 ms
コンパイル使用メモリ 86,692 KB
実行使用メモリ 90,884 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-13 17:53:07
合計ジャッジ時間 3,176 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
90,884 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 140 ms
90,848 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

print('?', 100, flush=True)
x = ii()
if 100 - x - 1 == 0:
    b = 100
    a = 99
    print('!', a, b, flush=True)
    exit()
else:
    print('?', 100 - x - 1, flush=True)
    y = ii()
    b = y + 1

    for a in range(0, b):
        if (100 + a) % b == y:
            print('!', a, b, flush=True)
            exit()
0