Title:
solution:
TMD, () is not a palindrome, (( is a palindrome,
so the legal bracket sequence must not meet the conditions.
When n=0, it outputs 1 and otherwise outputs 0.
There is enough underworld.
code:
#include <bits/stdc++.h>
using namespace std;
void solve(){
int n;cin>>n;
if(!n)cout<<1<<endl;
else cout<<0<<endl;
}
signed main(){
int T;cin>>T;
while(T--){
solve();
}
return 0;
}