結果

問題 No.2357 Guess the Function
ユーザー 遭難者遭難者
提出日時 2023-04-16 11:14:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 227 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 81,948 KB
実行使用メモリ 69,948 KB
平均クエリ数 2.91
最終ジャッジ日時 2024-12-14 14:04:36
合計ジャッジ時間 2,044 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(x):
    print('?', x, flush=True)
    return int(input())
def main():
    y = 100 - f(100)
    if y == 1:
        print("! 99 100")
        return
    B = f(y - 1) + 1
    A = -y % B
    print('!', A, B)
    return
main()
0