就第2个点对了 有点乱而且还不会写switch
#include<bits/stdc++.h>
using namespace std;
int main(){
int a[10];
for(int i=0;i<9;i++){
cin>>a[i];
}
for(int i=0;i<9;i++){
for(int j=0;j<9;j++){
for(int k=0;k<9;k++){
if(a[i]==3&&i%2!=0&&a[j]==5&&j%2!=0&&a[k]==7&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==1&&i%2!=0&&a[j]==5&&j%2!=0&&a[k]==9&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==1&&i%2!=0&&a[j]==2&&j%2!=0&&a[k]==3&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==4&&i%2!=0&&a[j]==5&&j%2!=0&&a[k]==6&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==7&&i%2!=0&&a[j]==8&&j%2!=0&&a[k]==9&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==1&&i%2!=0&&a[j]==4&&j%2!=0&&a[k]==7&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==2&&i%2!=0&&a[j]==5&&j%2!=0&&a[k]==8&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==3&&i%2!=0&&a[j]==6&&j%2!=0&&a[k]==9&&k%2!=0){
cout<<"xiaoa wins.";
return 0;
}
else if(a[i]==1&&i%2==0&&a[j]==5&&j%2==0&&a[k]==9&&k%2==0){
cout<<"uim wins.";
return 0;
}
else if(a[i]==1&&i%2==0&&a[j]==2&&j%2==0&&a[k]==3&&k%2==0){
cout<<"uim wins.";
return 0;
}
else if(a[i]==4&&i%2==0&&a[j]==5&&j%2==0&&a[k]==6&&k%2==0){
cout<<"uim wins.";
return 0;
}
else if(a[i]==7&&i%2==0&&a[j]==8&&j%2==0&&a[k]==9&&k%2==0){
cout<<"uim wins.";
return 0;
}
else if(a[i]==1&&i%2==0&&a[j]==4&&j%2==0&&a[k]==7&&k%2==0){
cout<<"uim wins.";
return 0;
}
else if(a[i]==2&&i%2==0&&a[j]==5&&j%2==0&&a[k]==8&&k%2==0){
cout<<"uim wins.";
return 0;
}
else if(a[i]==3&&i%2==0&&a[j]==6&&j%2==0&&a[k]==9&&k%2==0){
cout<<"uim wins.";
return 0;
}
}
}
}
cout<<"drew.";
return 0;
}