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 huicpc39 at 2010-03-01 12:16:06 on Problem 2663 and last updated at 2010-03-01 12:16:40
In Reply To:直接套公式就过了...... Posted by:LJW at 2009-06-08 08:03:37
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