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

记录路径二维化一维结果wa的同学可以看看

Posted by NWPU_2014302598 at 2015-07-14 23:48:41 on Problem 2488
数组储存时二维化一维,是x*h+y,就是x坐标乘y的最大长度再加y,结果我一直乘w,就是x的总长度

丧尽天良啊,害我debug一晚上

假设坐标有(x,y),且0<x<m,0<y<n;则可用sum=x*n+y来储存这个坐标,此时(sum/n,sum%n)就是这个坐标

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