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

是你的程序写得不好啦,算法根本就没实现,就是O(n)的嘛

Posted by frkstyc at 2005-06-14 19:59:23 on Problem 1026
In Reply To:Re:显然不是O(n)的,想一想你的total乘出来会有多大. Posted by:cpp051300448324 at 2005-06-14 19:51:26
> 应该是把100分成几块,然后每个块的个数取最小公倍数,象题目的数据就是3,2,2,1,1,1最小循环是6,但是如果达到200就很恐怖了,算了还是想其他方法

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