QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#623043 | #5722. Rainbow Strings | TheZachMan | AC ✓ | 21ms | 10572kb | Python3 | 152b | 2024-10-09 09:46:09 | 2024-10-09 09:46:12 |
Judging History
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)
Details
Tip: Click on the bar to expand more detailed information
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'