10363 - Tic Tac Toe


Difficulty : easy

Solution Description :

Ad hoc problem

1. At first count O and count X if count O>count X then print "no" and continue.
2. Check is X win and is O win 
----if both X and O win then print "no"
----if X win and count X is not greater than count O then print "no"
----if O win and count O is not equal count X then print "no"
----otherwise print "yes"