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.
InputThe first line will be the side that you are on, X or O. The next three lines are the are the current board.
OutputIf you can win print "Yes you can.", otherwise print "No you can't."
ExampleInputX XOX| XO | O X|Output
Yes you can.