cf/mirror

Gennady and a Card Game

CF
1097A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
AS
2H 4C TH JH AD
Output
YES
Sample 2of 3
Input
2H
3D 4C AC KD AS
Output
NO
Sample 3of 3
Input
4D
AS AC AD AH 5H
Output
YES
1097A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)