QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#623065#5722. Rainbow StringsDaAsianCarsten#WA 15ms10544kbPython3205b2024-10-09 09:57:492024-10-09 09:57:50

Judging History

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

  • [2024-10-09 09:57:50]
  • 评测
  • 测评结果:WA
  • 用时:15ms
  • 内存:10544kb
  • [2024-10-09 09:57:49]
  • 提交

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

print(ans)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 10488kb

input:

aab

output:

6

result:

ok single line: '6'

Test #2:

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

input:

icpcprogrammingcontest

output:

209952

result:

ok single line: '209952'

Test #3:

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

input:

wfbratrxyl

output:

768

result:

ok single line: '768'

Test #4:

score: -100
Wrong Answer
time: 12ms
memory: 10368kb

input:

ffpndpjpqdcjatmmmumgainqrndlqweqxvbpbrltgydgylimfvkjheffnbmjsvggttimggjyhqidxbttxwxhijpcrvvqfwzlnvth

output:

27530294722560000

result:

wrong answer 1st lines differ - expected: '9665205', found: '27530294722560000'