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:不用double... long int就够啦....double时输出格式不符合....

Posted by wsbear at 2006-07-22 19:15:51 on Problem 2665
In Reply To:竟然在这题上载跟头了,BS一下自己………… Posted by:summery at 2006-04-22 13:16:21
> 以下为错误代码,大家一起来BS我…………
> #include<iostream>
> 
> using namespace std;
> 
> int main()
> {
>     double long  l;
>     double long  a,b;
>     int m;
>     while(cin>>l>>m)
>     {
>        if(m==0&&l==0) break;
>         l++;
>        for(int i=1; i<=m; i++)
>        {
>          cin>>a>>b;
>         
>          l = l-(b-a+1);        
>        } 
>               cout<<l<<endl;               
>     }
>     
> }

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