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:truncated是截尾取整?In Reply To:truncated是截尾取整? Posted by:ahyangyi at 2006-04-28 18:18:24 #include<stdio.h> #include<math.h> double k; _int64 m; int main() { scanf("%ld",&m); while(m!=0) { printf("%.14lf\n",floor(pow((m-1)*1.0/m,(m-2)*1.0)*100000000000000)/100000000000000); scanf("%ld",&m); } return 1; } ---------------------------------------- 强烈不明白.为什么不可以? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator