扑克牌题解
2025-10-31 20:35:44
发布于:北京
0阅读
0回复
0点赞
使用set去重
#include<iostream>
#include<set>
using namespace std;
int main(){
set <string> S;
int n;
string k;
cin >> n;
for (int i = 0; i < n; i++){
cin >> k;
S.insert(k);
}
cout << 52 - S.size();
return 0;
}
这里空空如也






有帮助,赞一个