結果

問題 No.2357 Guess the Function
ユーザー 遭難者遭難者
提出日時 2023-04-16 11:14:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 1,000 ms
コード長 227 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 86,568 KB
実行使用メモリ 87,380 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-08-21 05:15:11
合計ジャッジ時間 3,318 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
87,176 KB
testcase_01 AC 95 ms
87,052 KB
testcase_02 AC 97 ms
86,856 KB
testcase_03 AC 96 ms
86,952 KB
testcase_04 AC 95 ms
86,900 KB
testcase_05 AC 98 ms
87,380 KB
testcase_06 AC 95 ms
87,024 KB
testcase_07 AC 98 ms
87,300 KB
testcase_08 AC 98 ms
87,204 KB
testcase_09 AC 98 ms
87,380 KB
testcase_10 AC 96 ms
86,860 KB
権限があれば一括ダウンロードができます

ソースコード

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