```cpp
#include <cstdio>
char map[4][4];
int tot=0;bool flg=false;
int main(){
for(int i=0;i<3;++i){scanf("%s",map[i]);for(int j=0;j<3;++j){if(map[i][j]!='-')++tot;if(map[i][j]=='X'&&((i==0&&j==1)||(i==1&&j==0)||(i==1&&j==2)||(i==2&&j==1)))flg=true;}}
puts(flg?"xiaoa will win.":"Dont know.");printf("%d\n",tot);
}
```
by frankchenfu @ 2017-12-03 07:39:47
压代码很有意义吗?
by ElevenX @ 2017-12-03 11:26:29
压行的代码表示根本不想看
by Lpy_Now @ 2017-12-03 11:54:54
#include <cstdio>
char map[4][4];int tot=0;bool flg=false;int main(){for(int i=0;i<3;++i){scanf("%s",map[i]);for(int j=0;j<3;++j){if(map[i][j]!='-')++tot;if(map[i][j]=='X'&&((i==0&&j==1)||(i==1&&j==0)||(i==1&&j==2)||(i==2&&j==1)))flg=true;}}puts(flg?"xiaoa will win.":"Dont know.");printf("%d\n",tot);}
by VinstaG173 @ 2018-01-28 20:18:51
//cpp编译
#include <cstdio>
char map[4][4];int tot=0;bool flg=false;int main(){for(int i=0;i<3;++i){scanf("%s",map[i]);for(int j=0;j<3;++j){if(map[i][j]!='-')++tot;if(map[i][j]=='X'&&((i==0&&j==1)||(i==1&&j==0)||(i==1&&j==2)||(i==2&&j==1)))flg=true;}}puts(flg?"xiaoa will win.":"Dont know.");printf("%d\n",tot);}
by VinstaG173 @ 2018-01-28 20:19:29
fff### ########## _~~**| | |
| :----------: | :----------: |
| | |
| | |
**~~_
------------
## ### #### # ##
by zty52 @ 2018-03-15 21:42:52
#include<stdio.h>
char a[4][4];
int main()
{
int i,j,x=0;
for(i=1;i<=3;i++){
for(j=1;j<=3;j++){
scanf("%c",&a[i][j]);
if(a[i][j]!='-')x++;
}
scanf("\n");
}
if(x<=1){
printf("Dont know.\n%d",x);
return 0;
}
else{
if(a[1][1]=='X'||a[3][3]=='X'||a[1][3]=='X'||a[3][1]=='X'){
printf("Dont know.\n%d",x);
return 0;
}
else{
printf("xiaoa will win.\n%d",x);
return 0;
}
}
}
by zty52 @ 2018-03-15 22:25:56