結果

問題 No.2357 Guess the Function
ユーザー ああいいああいい
提出日時 2023-06-23 22:39:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 216 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 69,864 KB
平均クエリ数 2.91
最終ジャッジ日時 2024-07-01 02:23:47
合計ジャッジ時間 1,775 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
print("?",100)
y = int(input())
if y == 99:
    print("!",99,100)
    exit()
print("?",100 - y - 1)
yy = int(input())
B = yy + 1
for a in range(B):
    if (a + 100) % B == y:
        break
print("!",a,B)
0