字符串哈希
P3370 【模板】字符串哈希 - 洛谷

package cn.edu.xjtu.daily.April.day_4_10;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
/**
 * https://www.luogu.com.cn/problem/P3370
 */
public class Main {
    public static void main(String[] args) {
        Set<String> set = new HashSet<>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        for (int i = 0; i < N; i++) {
            set.add(sc.next());
        }
        System.out.println(set.size());
        
    }
}










