Problem3031--【Div4】语言基础-Latin Square

3031: 【Div4】语言基础-Latin Square

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

名词解释:Latin Square
一个3*3的字符矩阵,由A B C三种字母组成,每一行、每一列A、B、C三个字母都出现恰好一次。
现在,给你一个3*3的字符矩阵,已知它原本是一个 Latin Square,但现在其中一个位置上的字符被替换成了 ? 号,请找出原先被替换掉的字符。

Sample Input Copy

ABC
C?B
BCA

Sample Output Copy

A

Source/Category