#include <iostream> #include <string> #include <set> #include <algorithm> using namespace std; int main() { int n = 0; set<string> sset; cin >> n; string *s = new string[n]; for (int i = 0; i < n; ++i) { cin >> s[i]; sort(s[i].begin(), s[i].end()); sset.insert(s[i]); } cout << sset.size() << endl; return 0; } 这样可以不?
点赞 评论

相关推荐

合适才能收到offe...:招聘上写这些态度傲慢的就别继续招呼了,你会发现hr和面试官挺神的,本来求职艰难就可能影响一些心态了,你去这种公司面试的话,整个心态会炸的。
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务