[蓝桥杯][算法提高VIP]不同单词个数统计

思路:用STL set 很容易就解决了,算是复习了一下

#include<bits/stdc++.h>

using namespace std;

int main(){
	set<string> st;
	string s;
	while(cin>>s){
		st.insert(s);
	}
	cout<<st.size();
	
} 
发布了121 篇原创文章 · 获赞 3 · 访问量 3372

猜你喜欢

转载自blog.csdn.net/qq_45585519/article/details/104193209