摘要: #include<bits/stdc++.h> using namespace std; int main() { int a[6]={1,2,2,3,4,5}; //方法一 vector<int>b(a,a+6);//使用unique需保证已经排好序 b.erase(unique(b.begin( 阅读全文
posted @ 2025-05-18 16:44 邓佑孤 阅读(7) 评论(0) 推荐(0)