新手必看

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop /
using namespace std;
int main(int argc, char
* argv)
{
int a,b,n,m,i,s=0,x[1100]={};
cin>>n>>m;
for(i=1;i<=n;i++)
{
cin>>a>>b;
}
for(i=a;i<=b;i++)
{
x[i]=1;
}
for(i=1;i<=n;i++)
if(x[i]!=1)
{
s++;
}
cout<<s;
return 0;
}

0 条评论

目前还没有评论...

信息

ID
1103
难度
4
分类
模拟 点击显示
标签
递交数
14290
已通过
6515
通过率
46%
被复制
50
上传者