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 |
这都会错?!!怎么可能啊?!!#include <stdio.h> void main() { float xinxi[100000],sum=0; long i,shu[1000],n; for (i=1;i<100000;i++) { sum+=1.000000/(2*i); xinxi[i]=sum; } n=0; while (scanf("%ld",&shu[n])!=-1) n++; printf("Cards Overhang\n"); for (i=0;i<n;i++) printf("%5ld%10.3f\n",shu[i],xinxi[shu[i]]); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator