QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#623072 | #5722. Rainbow Strings | DaAsianCarsten# | AC ✓ | 28ms | 10664kb | Python3 | 224b | 2024-10-09 09:59:18 | 2024-10-09 09:59:19 |
Judging History
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'