Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93612 | 张曦 | 校门外的树 | C++ | Wrong Answer | 1 MS | 312 KB | 424 | 2024-10-18 17:16:18 |
#include <bits/stdc++.h> using namespace std; int main() { int L, M; cin >> L >> M; int a[L + 1]; for(int y = 0;y<=L;y++) a[y] += 1; for(int i = 0; i < M; ++i) { int l, r; cin >> l >> r; //地铁站 for(int g = l;g<=r;g++) a[g] = 0; } int n = 0; for(int y = 0;y<=L;y++) n += a[y]; cout<<n; 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-----
586913675