QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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)
Details
Tip: Click on the bar to expand more detailed information
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'