結果

問題 No.2357 Guess the Function
ユーザー 遭難者
提出日時 2023-05-09 20:50:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 70,272 KB
平均クエリ数 2.91
最終ジャッジ日時 2024-12-14 14:05:53
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

print("?", 100)
y = int(input())
if y == 99:
    A, B = 99, 100
else:
    print("?", 99 - y)
    B = int(input()) + 1
    A = (y - 100) % B
print("!", A, B)
assert 0 <= A < B <= 100
0