| ||||||||||
| 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 | |||||||||
Re:不用double... long int就够啦....double时输出格式不符合....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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator