#4457. Playing Cards Validation
0
Playing Cards Validation
Playing Cards Validation
题目描述
你被给定了 个字符串,每个长度为 ,由大写英文字母和数字组成。第 个字符串为 。
判断下列三个条件是否都满足。
・对于每个字符串,第一个字符是 、、、 之一。
・对于每个字符串,第二个字符是 、、、、、、、、、、、、 之一。
・所有字符串两两不同。也就是说,如果 ,则 。
输入格式
The input is given from Standard Input in the following format:
输出格式
If the three conditions are all satisfied, print ; otherwise, print .
4
H3
DA
D3
SK
Yes
5
H3
DA
CK
H3
S7
No
4
3H
AD
3D
KS
No
5
00
AA
XX
YY
ZZ
No
提示
is a string of length consisting of uppercase English letters and digits.One can verify that the three conditions are all satisfied.
Both and are , violating the third condition.
标签: AtCoder|abc277B
来源
AtCoder|abc277B