1 条题解
-
0
#include <bits/stdc++.h> using namespace std; bool a[1010]; int main(){ int m; int n; bool ans = true; cin >> n >> m; for (int i = 0; i<m;i++){ int x; cin >> x; a[x] = true; } for (int j = 0;j<n;j++){ if (a[j] == false){ cout << j << " "; ans = false; } } if (ans){ cout << n; } return 0; }
- 1
信息
- ID
- 4453
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 9
- 标签
- (无)
- 递交数
- 12
- 已通过
- 5
- 上传者