#include using namespace std; int main(){ int f0,f1; int x = 0; cout << "? " << x << endl;// endlによって改行とflushを同時に行う cin >> f0;// ジャッジから対応するRを受け取り、f0に代入 x = 1; cout << "? " << x << endl; cin >> f1; int a = f1 - f0, b = f0;// 求めたいa,bを計算 cout << "! " << a << " " << b << endl;// 答えを出力 return 0; }