算法·理论map+setset st;//排序+去重#include unordered_set ust;//去重不排序#include<unordered_set> multiset mst;//排序不去重 无头文件 int x; cin>>x; st.insert(x);//插入 st.erase(…