题解 | #小牛再战#
小牛再战
https://ac.nowcoder.com/acm/problem/15066
#include<bits/stdc++.h> using namespace std; int a[20]; int main() { int n; while(1) { cin>>n; if(n==0)break; for(int i=1;i<=n;i++) cin>>a[i]; if(n%2==1) { cout<<"Win"<<"\n"; continue; } sort(a+1,a+1+n); int res=0; for(int i=1;i<=n;i+=2) { if(a[i]!=a[i+1]) { res=1; break; } } if(res==0) cout<<"Lose"<<"\n"; else cout<<"Win"<<"\n"; } return 0; }