文章

124

粉丝

0

获赞

142

访问

9.1k

头像
字符串哈希 题解:
P1603
发布于2026年1月31日 15:45
阅读数 84

#include<bits/stdc++.h>
using namespace std;
	
int main(){
    int n;
    cin>>n;
    set<string> s;
    while(n--){
        string str;
        cin>>str;
        s.insert(str);
    }
    cout<<s.size()<<endl;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发