![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
#include<map> #include<iostream> #include<string> using namespace std; int main() { string s; cin >> s; map <string,int> Map; Map[s] = 1; printf("%d",Map[s]); }
#include<map> #include<iostream> #include<string> using namespace std; int main() { string s; cin >> s; map <string,int> Map; Map[s] = 1; printf("%d",Map[s]); }
转载于:https://www.cnblogs.com/Milkor/p/4416113.html