結果

問題 No.2357 Guess the Function
コンテスト
ユーザー detteiuu
提出日時 2026-05-05 01:02:52
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 214 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 197 ms
コンパイル使用メモリ 85,096 KB
実行使用メモリ 73,632 KB
平均クエリ数 2.91
最終ジャッジ日時 2026-05-05 01:02:59
合計ジャッジ時間 2,440 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def question(x):
    print("?", x)
    return int(input())

def answer(A, B):
    print("!", A, B)

a = question(100)
if a == 99:
    exit(answer(99, 100))
b = question(100-a-1)

B = b+1
A = (a-100)%B

answer(A, B)
0