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 ybdesire at 2012-04-21 10:39:03 on Problem 2356
如果将读入的数据存入a[1], a[2],...,a[n];余数位置数组就赋初值为0即可

如果将读入的数据存入a[0], a[1],...,a[n-1];余数位置数组初值必须为-1,否则f[1]=0即可表示余数为1的出现在位置0,也可表示余数为一的没出现过,出现了双重含义

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