Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:直接套公式就过了......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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator