1 条题解

  • 1

    #include<iostream>
    #include<cstdio>
    #include<algorithm>
    #include<cmath>
    #include<set>
    #include<map>
    #include<queue>
    #include<stack>
    #include<vector>
    #include<cstring>
    #include<cstdlib>
    using namespace std;
    typedef long long ll;
    const int maxn=5000+5;
    const ll INF=0x3f3f3f3f3f3f3f3fll;
    int t,n;
    int main() {
    ios::sync_with_stdio(false);
    //freopen("校庆的娱乐.in","r",stdin);
    cin>>t;
    while(t--){
    cin>>n;
    int temp,x;
    cin>>temp;
    for(int i=2;i<=n;i++){
    cin>>x;
    temp^=x;
    }
    if(temp||n&1) cout<<"lolanv"<<endl;
    else cout<<"Wind"<<endl; //只有全是对子 才会让wind赢
    }

    return 0;
    }

  • 1

信息

ID
1160
难度
9
分类
博弈论 点击显示
标签
递交数
7
已通过
6
通过率
86%
上传者