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 xuhaoran510 at 2011-04-12 17:14:05 on Problem 2133 and last updated at 2011-04-12 17:14:45
如果初始card中就有目标状态,那么:如目标状态为0,则输出1,否则输出2
附数据一组,你能通过吗?
2 1
01
10
答案:
1
00
解释:00和10与目标状态差距均为1,但00更小。之所以要一步是因为 (10)2 xor (10)2= 00

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