結果

問題 No.3084 Identify f(x)
ユーザー SPD_9X2
提出日時 2025-04-04 21:48:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,852 KB
実行使用メモリ 70,512 KB
平均クエリ数 3.00
最終ジャッジ日時 2025-04-04 21:48:30
合計ジャッジ時間 1,450 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

print ("?",0,flush=True)
P = int(input())

print ("?",1,flush=True)
Q = int(input())

if P == Q:
    print ("!",0,P)
else:
    print ("!",Q-P,P)
0