#include #include using namespace std; int main() { int a[3][3] = { 0 }; string s[3]; bool cunzai[27] = { 0 }, win[27][27] = { 0 }; int dui[10] = { 0 }; int chang = 0; for (int i = 0; i < 3; i++) { cin >> s[i]; for (int j = 0; j < 3; j++) { int now = s[i][j] - 'A' + 1; a[i][j] = now; if (cunzai[now] != 1) { cunzai[now] = 1; dui[++chang] = now; } } } // for(int i=0;i<3;i++){ // for(int j=0;j<3;j++){ // cout<