| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121594 | 周辰彦 | 校门外的树 | C++ | Accepted | 2 MS | 312 KB | 275 | 2025-06-07 17:13:28 |
#include<bits/stdc++.h> using namespace std; int main() { int a[10001]={0},l,m,st,en,s=0; cin>>l>>m; for(int i=0;i<m;i++) { cin>>st>>en; for(int j=st;j<=en;j++) a[j]=1; } for(int i=0;i<=l;i++) { if(a[i]==0) s++; } cout<<s; return 0; }