#include using namespace std; using ll = long long; using P = pair; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector, greater #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a> t; rep(houren,t){ int n, x = 1, pre, res; cin >> n; vector ans(n); rep(i,2){ cout << "? "; rep(j,n-1) cout << ((j^i)&1) << " "; cout << '\n' << flush; rep(i,n){ cin >> res; if(!i) ans[i] = res; else{ if(pre!=res) ans[i] = res; } pre = res; } } cout << "! "; rep(i,n) cout << ans[i] << " "; cout << '\n' << flush; } return 0; }