407082: GYM102697 053 Tic-Tac-Toe

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

053. Tic-Tac-Toetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Given a tic-tac-toe board, return if you can win the game in one move or not.

Input

The first line will be the side that you are on, X or O. The next three lines are the are the current board.

Output

If you can win print "Yes you can.", otherwise print "No you can't."

ExampleInput
X
XOX|
XO |
O X|
Output
Yes you can.

加入题单

上一题 下一题 算法标签: