結果

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

ソースコード

diff #

print('?', 100, flush=True)
q1 = int(input())
if q1 == 99:
	print('!', 99, 100, flush=True)
	exit()
print('?', 100 - q1 - 1, flush=True)
q2 = int(input())
B = q2 + 1
for A in range(B):
	if (A + 100) % B == q1:
		print('!', A, B, flush=True)
		exit()
0