CF383E.Vowels

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Iahubina is tired of so many complicated languages, so she decided to invent a new, simple language. She already made a dictionary consisting of nn 3-words. A 3-word is a sequence of exactly 33 lowercase letters of the first 24 letters of the English alphabet ( aa to xx ). She decided that some of the letters are vowels, and all the others are consonants. The whole language is based on a simple rule: any word that contains at least one vowel is correct.

Iahubina forgot which letters are the vowels, and wants to find some possible correct sets of vowels. She asks Iahub questions. In each question, she will give Iahub a set of letters considered vowels (in this question). For each question she wants to know how many words of the dictionary are correct, considering the given set of vowels.

Iahubina wants to know the xorxor of the squared answers to all the possible questions. There are 2242^{24} different questions, they are all subsets of the set of the first 24 letters of the English alphabet. Help Iahub find that number.

输入格式

The first line contains one integer, nn (1<=n<=104)(1<=n<=10^{4}) . Each of the next nn lines contains a 3-word consisting of 33 lowercase letters. There will be no two identical 3-words.

输出格式

Print one number, the xorxor of the squared answers to the queries.

输入输出样例

  • 输入#1

    5
    abc
    aaa
    ada
    bcd
    def
    

    输出#1

    0
    
首页