Gennady and a Card Game
1097A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
AS2H 4C TH JH AD
Output
YES
Sample 2of 3
Input
2H3D 4C AC KD AS
Output
NO
Sample 3of 3
Input
4DAS AC AD AH 5H
Output
YES
58%
1097A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)