SP13303 OVOXO - Tic-tac-toe 3
Description
Bored to death working at the Byteland Office...your colleagues have resorted to game of crosses Xs and naughtd Os or Tic-tac-toe. One of them keeps on losing and is tired of the jokes. He plans to have an Android app in his phone to help him out. He is your good friend and seeks your assistance. "Treat at ANC is guaranteed", he says.
He also is very frugal when it comes to memory usage. So please don't write a long if else chain...cause you have to do the task within 999 bytes
Input Format
An integer T - the number of test cases. (T
Output Format
For each test case print "WON" if it is a sure shot winning position. Else print "CONTINUE". Then output the game after having made your move. If more than one move are equally good try playing the move on the first empty spot.