A - 回文括号计数
这个题目有点迷惑性
当 n > 0 的时候
当该序列时括号序列的时候那么就意味着一定不是回文序列。
#include<iostream>
using namespace std;
int main(){
int t ; cin >> t;
int n ;
while(cin >> n){
if(n == 0) puts("1");
else puts("0");
}
} 
这个题目有点迷惑性
当 n > 0 的时候
当该序列时括号序列的时候那么就意味着一定不是回文序列。
#include<iostream>
using namespace std;
int main(){
int t ; cin >> t;
int n ;
while(cin >> n){
if(n == 0) puts("1");
else puts("0");
}
}