Nim博弈:https://blog.csdn.net/weixin_45758110/article/details/108562733(不懂点这儿)
#include<iostream>
#include<cstdio>
using namespace std;
int T;
const int maxn=1e3+5;
int a[maxn];
int main(){
cin>>T;
while(T--){
int n; cin>>n;
int res;
for(int i=0;i<n;i++){
cin>>a[i];
if(!i)res=a[i];
else res=res^a[i];
}
if(res) printf("Liu_B is sure to win.\n");
else printf("Liu_B is not sure to win.\n");
}
}