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 |
我晕,这样的程序都能AC输入数据竟然都没有重叠区间 program poj2665; var l,a,b:longint; m,i:integer; begin readln(l,m); while l<>0 do begin l:=l+1; for i:=1 to m do begin readln(a,b); l:=l-b+a-1; end; writeln(l); readln(l,m); end; end. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator