Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
分析在输入的过程中记录‘X’和‘O’的个数 如果 x > o (指个数) (1) x - o >=2 ,输出no (2) x - o == 1 , O肯定不能赢,因为O是后手 如果 x == o X肯定不能赢 , 因为X是先手 如果 x < o 输出no 判断赢不赢的可能只有8种,枚举一下就OK了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator