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

Re:直接套公式就过了......

Posted by angeldust at 2012-03-04 10:57:41 on Problem 2663 and last updated at 2012-03-04 10:59:32
In Reply To:Re:直接套公式就过了...... Posted by:huicpc39 at 2010-03-01 12:16:06
> if(n&1)printf("0\n");
> else printf("%d\n",(int)(0.7886751345948128822545743*pow(3.7320508075688772935274463415,n/2.)+1));
强,看到这个才想起,确实可以用二阶特征方程算通项的···
全部都还给老师了···

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