省流:300->260 乐。
Poker:
我考场上寻思着会不会有人写成了 joker.in joker.out,结果真的有 joker
Sol
EZ problem,拿 set 搞一下就行了(虽然我赛事没想到,用了 map)
Code
#include <bits/stdc++.h>
using namespace std;
set<string> st;
int main(){
freopen("joker.in","r",stdin);
freopen("joker.out","w",stdout);
int n;
cin>>n;
for(int i=1;i<=n;i++){
string s;
cin>>s;
st.insert(s);
}
cout<<52-st.size()<<endl;
return 0;
}
Explore:
Sol
another EZ problem,直接按照题目说的模拟就行了。记得多测清空。
Code
#include <bits/stdc++.h>