网络安全业务竞赛 时间:2021-12-03 17:10:57 【文件属性】: 文件名称:网络安全业务竞赛 文件大小:1.03MB 文件格式:DOC 更新时间:2021-12-03 17:10:57 网络安全 竞赛题目#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define CLR(a) memset(a, 0, sizeof(a)) using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair pii; typedef pair pll; typedef pair psi; typedef pair pss; const double PI = 3.14159265358979323846264338327; const double E = exp(1); const double eps = 1e-6; const int INF = 0x3f3f3f3f; const int maxn = 1e6 + 5; const int MOD = 1e9 + 7; int main() { int n; cin >> n; vector v; int num; for (int i = 0; i < n; i++) { scanf("%d", #); v.push_back(num); } cin >> n; for (int i = 0; i < n; i++) { scanf("%d", #); v.erase(v.begin() + num - 1); } vector ::iterator it; for (it = v.begin(); it != v.end(); it++) { if (it != v.begin()) printf(" "); cout << *it; } cout << endl; } --------------------- 作者:Dup4 来源:CSDN 原文:https://blog.csdn.net/dup4plz/article/details/79666083 版权声明:本文为博主原创文章,转载请附上博文链接!#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define CLR(a) memset(a, 0, sizeof(a)) using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair pii; typedef pair pll; typedef pair psi; typedef pair pss; const double PI = 3.14159265358979323846264338327; const double E = exp(1); const double eps = 1e-6; const int INF = 0x3f3f3f3f; const int maxn = 1e6 + 5; const int MOD = 1e9 + 7; int main() { int n; cin >> n; vector v; int num; for (int i = 0; i < n; i++) { scanf("%d", #); v.push_back(num); } cin >> n; for (int i = 0; i < n; i++) { scanf("%d", #); v.erase(v.begin() + num - 1); } vector ::iterator it; for (it = v.begin(); it != v.end(); it++) { if (it != v.begin()) printf(" "); cout << *it; } cout << endl; } --------------------- 作者:Dup4 来源:CSDN 原文:https://blog.csdn.net/dup4plz/article/details/79666083 版权声明:本文为博主原创文章,转载请附上博文链接! 立即下载