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:求教各位高手指点迷津,我的代码(有注释)总是wa,给点测试数据也行啊

Posted by jmh617 at 2008-07-30 16:23:32 on Problem 1182 and last updated at 2008-07-30 16:24:46
In Reply To:求教各位高手指点迷津,我的代码(有注释)总是wa,给点测试数据也行啊 Posted by:silverdog at 2006-06-01 19:49:36
你把关系表示的很好(0, 1,2)
那样的话,计算两个点的关系的时候,每次不用一一考虑了,只要(r1 + r2) % 3就行!
你的程序呢, 我看好像在merge的时候有错误。

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