- 校门外的树
- 2009-01-20 09:08:17 @
program ex;
var
l,m,i,j:longint;
a,b:array[1..100] of longint;
BEGIN
read(l,m);
for i:= 1 to m do
read(a[i],b[i]);
inc(l);
for i:= 1 to m do
for j:= a[i] to b[i] do
dec(l);
writeln(l);
END.
1 条评论
-
yangsaibin LV 7 @ 2016-12-18 18:41:18
他的树是有一些重复的
- 1