QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#623043#5722. Rainbow StringsTheZachManAC ✓21ms10572kbPython3152b2024-10-09 09:46:092024-10-09 09:46:12

Judging History

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

  • [2024-10-09 09:46:12]
  • 评测
  • 测评结果:AC
  • 用时:21ms
  • 内存:10572kb
  • [2024-10-09 09:46:09]
  • 提交

answer

s = input()

d = {}

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

o=1
for k in d:
  o *= d[k] + 1
  o %= 11092019

print(o)

詳細信息

Test #1:

score: 100
Accepted
time: 15ms
memory: 10512kb

input:

aab

output:

6

result:

ok single line: '6'

Test #2:

score: 0
Accepted
time: 15ms
memory: 10456kb

input:

icpcprogrammingcontest

output:

209952

result:

ok single line: '209952'

Test #3:

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

input:

wfbratrxyl

output:

768

result:

ok single line: '768'

Test #4:

score: 0
Accepted
time: 15ms
memory: 10424kb

input:

ffpndpjpqdcjatmmmumgainqrndlqweqxvbpbrltgydgylimfvkjheffnbmjsvggttimggjyhqidxbttxwxhijpcrvvqfwzlnvth

output:

9665205

result:

ok single line: '9665205'

Test #5:

score: 0
Accepted
time: 7ms
memory: 10572kb

input:

kbowzshszvwquuxtmwwgsqsirkpygewqjuwxhszfxnhjkmfdgnyivziiaxkktbyrxtwsvyphakswxzplyuxlhwmtrydwsbrnxmzapbvxwhicfjtdptdjugnufgtxjxlwzfaabshhuijozarfbzljfkjmljrekjluhualmwyxifjweldnfyqoedkpcxtxxzmrmbjxydnzfmwtwhmkvyijmhqalwljynfdgxqudinlcdauoxxildahtsmnaxofynhynvdykjewxjvwwugvizsahunqxmgyvbiceimowcmnqsxf...

output:

4419330

result:

ok single line: '4419330'

Test #6:

score: 0
Accepted
time: 16ms
memory: 10468kb

input:

mzbviphgquwqaedtattkslavwgsneqthflegbrkgwuaprmdrzpddumfiermzrzqxvxamhywkbxluagikgucifldyakwgqevahuygpgqmbccmylsyviddnextalmqohovwmwnrvqlzbzmrmruweaadejjmapnzaxtbkvplmigsjllkikzkmtdpsvxktzojwqgcdknjyvlzpyzslrvrmbqjlhorzbhuajwgslxypfdwgshncirkputflgdevpmdtxeealqyaiuihrvdgusoyeoaljzuvwkmdzriljtmgvmbipa...

output:

9554832

result:

ok single line: '9554832'

Test #7:

score: 0
Accepted
time: 21ms
memory: 10556kb

input:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...

output:

100001

result:

ok single line: '100001'

Test #8:

score: 0
Accepted
time: 21ms
memory: 10572kb

input:

fazovpermsbmyyihhkanlyddpistdwfvvqzkwqyjrenwafxiorgugrdbrjgtowmgchqacobrtgdpadwuptvfrsdaszyweyhqcfqhbisbjjwbpnbczcxqtpwfshxwrpizfmdkkiyanttxstwyovfdkiyhkoapywbobjnwbmlcamgugrkvxkmrqygpakncptsqzfrxmtnliswfqpjkxigdktmgzelmztjqiwslfpjtolvmkungwhdjyjxdlabwhofyzxmmxubbkeexszeylsfethtwqnhctsjwlmhhtmkanatx...

output:

9874824

result:

ok single line: '9874824'