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 cheng_222 at 2008-11-30 21:44:09 on Problem 1607
In Reply To:为什莫我的错误阿 Posted by:ch_619999 at 2007-09-24 14:07:10
> 那位高人指点指点
> #include<iostream>
> #include<iomanip>
> using namespace std;
> int main()
> {
>     long long int a ;
>     
>     double b,j;
>     while(cin>>a)
>     {
>         b=0;
>         for(j=1;j<=a;j++)
>         b+=1.000/(2*j);
>         cout<<"Cards  Overhang"<<endl;
>         cout<<setw(5)<<setiosflags(ios::right)<<a<<"  "<<
>         setw(8)<<setiosflags(ios::fixed)<<setprecision(3)<<setiosflags(ios::right)
>         <<b<<endl;
>     }    
>     return 0;
> }




e  为什么有两个long ,还有你会有很多个Cards  Overhang
我也刚做,不知有没有帮助

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