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

求1009算法

Posted by first at 2003-11-10 22:22:31 on Problem 1009
那位兄弟说以下或者给程序我看看阿.
我就是这样想的
如果对
   第i个数据 如果前n-1个还是同一组的,后n+1个也是那么必然是0
这样对于 很多相同数据的避免一个个算,直接统计出来0的个数.其他的就只能一个个算了
是判断是不是一行的第一个 或者是最后一个 算 8个相邻的差值最大绝对值

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