#include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int n;cin >> n; int sum = n*(1+n)/2; int prev = 0; vector a(n+1,0); for(int i = n - 1 ;2<=i;i--){ cout << "?" << " " << 1 << " " << i << endl; int tmp;cin >> tmp; a[i+1] = sum - tmp - prev; prev += a[i+1]; } cout << "?" << " " << 2 << " " << n << endl; int tmp; cin >> tmp; a[1] = sum - tmp; prev += a[1]; a[2] = sum - prev; for(int i=1;i<=n;i++){ cout << a[i] << " "; } cout << endl; }