823
技術社區[雲棲]
NEFU 461 遞推式轉通項公式
網址:https://acm.nefu.edu.cn/test/problemshow.php
#include <iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int main() { double a,b,u,v; int n; while(~scanf("%d%lf%lf%lf%lf",&n,&a,&b,&u,&v)) printf("%d\n",(int)(log10(1/sqrt(u*u+4*v))+(double)n*log10((u+sqrt(u*u+4*v))/2)+log10(b-a*((u-sqrt(u*u+4*v))/2))+1)); return 0; }
最後更新:2017-04-03 16:48:50
上一篇:
解決maven web項目倒入eclipse不出現Maven Dependencies 和 Java System Library的問題
下一篇:
Linux中圖形模式與文本模式切換
LAMP編譯:解決 64 CPU 位元 compiler 時 zlib 出現/usr/local/lib/libz.a(crc32.o)造成的問題 .
雲棲大會明日將有大動作,阿裏巴巴將發布物聯網嵌入式操作係統
Android研究院之ListView原理學習與優化總結
J2EE中Servlet操作cookie
ios ipa apple company 開發者賬號申請分享攻略
android中的ellipsize
SQL Server vs Oracle 簡單語法比較
Cat.0實現更低功耗、更低成本物聯網設備連接到LTE網絡
Java循環:想說愛你不容易
Windows 8怎麼了?戴爾都想拋棄你了