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

Re:请教大牛,我的代码什么地方错了....3X

Posted by xfxyjwf at 2006-03-19 14:24:11 on Problem 1182
In Reply To:请教大牛,我的代码什么地方错了....3X Posted by:oeym at 2006-03-19 13:09:58
if ((3 - st[X] + 3 - st[Y]) % 3 != D - 1)
改为
if((st[Y] - st[X] + 3) % 3 != D - 1)

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