Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

分析

Posted by kanovy at 2009-06-19 11:04:26 on Problem 2361
在输入的过程中记录‘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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator