QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#623072#5722. Rainbow StringsDaAsianCarsten#AC ✓28ms10664kbPython3224b2024-10-09 09:59:182024-10-09 09:59:19

Judging History

你现在查看的是最新测评结果

  • [2024-10-09 09:59:19]
  • 评测
  • 测评结果:AC
  • 用时:28ms
  • 内存:10664kb
  • [2024-10-09 09:59:18]
  • 提交

answer

s = input()

D = dict()

for c in s:
    
    if c in D:
        D[c] += 1
    
    else:
        D[c] = 1

P = 11092019

ans = 1

for key in D:

    ans *= (D[key] + 1) % P
    ans = ans % P

print(ans)

詳細信息

Test #1:

score: 100
Accepted
time: 16ms
memory: 10420kb

input:

aab

output:

6

result:

ok single line: '6'

Test #2:

score: 0
Accepted
time: 13ms
memory: 10580kb

input:

icpcprogrammingcontest

output:

209952

result:

ok single line: '209952'

Test #3:

score: 0
Accepted
time: 13ms
memory: 10472kb

input:

wfbratrxyl

output:

768

result:

ok single line: '768'

Test #4:

score: 0
Accepted
time: 0ms
memory: 10484kb

input:

ffpndpjpqdcjatmmmumgainqrndlqweqxvbpbrltgydgylimfvkjheffnbmjsvggttimggjyhqidxbttxwxhijpcrvvqfwzlnvth

output:

9665205

result:

ok single line: '9665205'

Test #5:

score: 0
Accepted
time: 13ms
memory: 10488kb

input:

kbowzshszvwquuxtmwwgsqsirkpygewqjuwxhszfxnhjkmfdgnyivziiaxkktbyrxtwsvyphakswxzplyuxlhwmtrydwsbrnxmzapbvxwhicfjtdptdjugnufgtxjxlwzfaabshhuijozarfbzljfkjmljrekjluhualmwyxifjweldnfyqoedkpcxtxxzmrmbjxydnzfmwtwhmkvyijmhqalwljynfdgxqudinlcdauoxxildahtsmnaxofynhynvdykjewxjvwwugvizsahunqxmgyvbiceimowcmnqsxf...

output:

4419330

result:

ok single line: '4419330'

Test #6:

score: 0
Accepted
time: 12ms
memory: 10412kb

input:

mzbviphgquwqaedtattkslavwgsneqthflegbrkgwuaprmdrzpddumfiermzrzqxvxamhywkbxluagikgucifldyakwgqevahuygpgqmbccmylsyviddnextalmqohovwmwnrvqlzbzmrmruweaadejjmapnzaxtbkvplmigsjllkikzkmtdpsvxktzojwqgcdknjyvlzpyzslrvrmbqjlhorzbhuajwgslxypfdwgshncirkputflgdevpmdtxeealqyaiuihrvdgusoyeoaljzuvwkmdzriljtmgvmbipa...

output:

9554832

result:

ok single line: '9554832'

Test #7:

score: 0
Accepted
time: 24ms
memory: 10576kb

input:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...

output:

100001

result:

ok single line: '100001'

Test #8:

score: 0
Accepted
time: 28ms
memory: 10664kb

input:

fazovpermsbmyyihhkanlyddpistdwfvvqzkwqyjrenwafxiorgugrdbrjgtowmgchqacobrtgdpadwuptvfrsdaszyweyhqcfqhbisbjjwbpnbczcxqtpwfshxwrpizfmdkkiyanttxstwyovfdkiyhkoapywbobjnwbmlcamgugrkvxkmrqygpakncptsqzfrxmtnliswfqpjkxigdktmgzelmztjqiwslfpjtolvmkungwhdjyjxdlabwhofyzxmmxubbkeexszeylsfethtwqnhctsjwlmhhtmkanatx...

output:

9874824

result:

ok single line: '9874824'