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

竟然在这题上载跟头了,BS一下自己…………

Posted by summery at 2006-04-22 13:16:21 on Problem 2665
以下为错误代码,大家一起来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