| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 119638 | 张裕铭 | 校门外的树 | C++ | Wrong Answer | 1 MS | 312 KB | 275 | 2025-05-18 09:55:52 |
#include<bits/stdc++.h> using namespace std; int main() { int a[10001]={0},l,m,ks,js,count=0; cin>>l>>m; for(int i=0;i<m;i++){ cin>>ks>>js; for(int j=ks;j<=js;j++) a[j]=1; } for(int i=0;i<=m;i++) if(a[i]==0) count++; cout<<count; return 0; }
------Input------
10000 10 123 134 890 1231 1321 3123 3333 4444 9999 10000 8888 9988 4555 4666 5000 6000 8007 8887 6777 8000
------Answer-----
2411
------Your output-----
11