2665.cpp
来自「北京大学的一些acm代码。还有一些资料。」· C++ 代码 · 共 33 行
CPP
33 行
/*#include<cstdio>
struct begin_end
{
long int begin;
long int end;
};
int main()
{
long int length, section;
long int leftTree;
begin_end *temp;
scanf("%ld%ld", &length, §ion);
while(true)
{
if(length == 0 && section == 0)
{
break;
}
temp = new begin_end[section];
leftTree = length + 1;
for(int i = 0; i < section; i++)
{
scanf("%ld%ld", &temp[i].begin, &temp[i].end);
leftTree -= temp[i].end - temp[i].begin + 1;
}
printf("%ld\n", leftTree);
scanf("%ld%ld", &length, §ion);
}
return 0;
}*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?