📄 2665.cpp
字号:
/*#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -