{"problem":{"name":"053. Tic-Tac-Toe","description":{"content":"Given a tic-tac-toe board, return if you can win the game in one move or not. The first line will be the side that you are on, X or O. The next three lines are the are the current board. If you can ","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269053"},"statements":[{"statement_type":"Markdown","content":"Given a tic-tac-toe board, return if you can win the game in one move or not.\n\nThe first line will be the side that you are on, X or O. The next three lines are the are the current board.\n\nIf you can win print \"Yes you can.\", otherwise print \"No you can't.\"\n\n## Input\n\nThe first line will be the side that you are on, X or O. The next three lines are the are the current board.\n\n## Output\n\nIf you can win print \"Yes you can.\", otherwise print \"No you can't.\"\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ s \\in \\{X, O\\} $ be the current player's symbol.  \nLet $ B \\in \\{X, O, \\cdot\\}^{3 \\times 3} $ be the tic-tac-toe board, where $ \\cdot $ denotes an empty cell.\n\n**Constraints**  \n- $ B $ contains exactly $ s $ and $ \\cdot $ (opponent’s symbol may be present, but only $ s $ is to be placed in empty cells).  \n- The board is in a valid intermediate state (no game-over condition already satisfied for either player).\n\n**Objective**  \nDetermine if there exists an empty cell $ (i, j) $ such that placing $ s $ at $ (i, j) $ results in $ s $ occupying an entire row, column, or diagonal.  \nFormally, output \"Yes you can.\" if  \n$$\n\\exists (i,j) \\in \\{0,1,2\\}^2 \\text{ s.t. } B[i][j] = \\cdot \\text{ and } s \\text{ wins after placing at } (i,j),\n$$  \notherwise output \"No you can't.\"","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269053","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}