Aronmy @ 2022-11-26 15:54:25
求助
using namespace std;
int main(){
int l,m,i1,i2,i0;
int s=0;
cin>>l>>m;
int t[l+1];
for(i0=0;i0<=l;++i0){
t[i0]=1;
}
int u,v;
for(i1=0;i1<m;++i1){
cin>>u>>v;
for(i2=u-1;i2<v;++i2){
t[i2]=0;
}
}
for(i0=0;i0<=l;++i0){
t[i0]=1 ? ++s : 0;
}
cout << s;
} ```
by WZWZWZWY @ 2022-11-26 16:15:09
for(i2=u-1;i2<v;++i2)
和
t[i0]=1 ? ++s : 0;
又问题
@Aronmy