文章目录 一、卡牌 二、独立元素(sort set) 一、卡牌 #include<iostream> #include<algorithm> using namespace std; int main(){ int n,q,tmp;