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

麻烦解释下……N 是什么? 这是算什么的函数?

Posted by cpp050800448178 at 2007-05-04 12:15:16 on Problem 3219
In Reply To:Re:这题也是……比赛时2xxx ms过的……到这就改1000 ms Limit了……TLE…… 那位大大给讲讲算法? Posted by:20053565 at 2007-05-02 15:33:50
> long cal(int n)
> {
> 	if(n<2)
> 		return 0;
> 	return (n/2+cal(n/2));
> }

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