#include<iostream>
#include<set>
#include<cstdio>
#include<string.h>
using namespace std;
set<string> st;
string read(){
	char c;
	string ans="";
	while(1){
		scanf("%c",&c);
		if(c>='a'&&c<='z'){
			ans+=c;
			break;
		}
	}
	while(1){
		scanf("%c",&c);
		if(c>='a'&&c<='z'){
			ans+=c;
		}
		else break;
	}
	return ans;
}
int n;
int main(){
	scanf("%d" ,&n);
	while(n--){
		string str;
		str=read();
		st.insert(str);
	}
	printf("%d",st.size());
}

求调

2 comments

  • 1

Information

ID
180
Time
1000ms
Memory
256MiB
Difficulty
3
Tags
# Submissions
3341
Accepted
440
Uploaded By