| ||||||||||
| 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 | |||||||||
竟然在这题上载跟头了,BS一下自己…………以下为错误代码,大家一起来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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator