UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#114680#2052. 子序列dereksodo10052ms3636kbC++1.2kb2020-07-30 18:28:262020-07-30 19:33:01

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1204kb

input:

10
baabbababa
32 84 50 72 73 80 51 16 27 38

output:

931164467

result:

ok single line: '931164467'

Test #2:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

10
aabbbabaaa
79 10 1 51 54 84 75 61 5 20

output:

199251909

result:

ok single line: '199251909'

Test #3:

score: 10
Accepted
time: 0ms
memory: 1204kb

input:

10
baabaabbaa
78 49 45 16 16 79 21 99 61 49

output:

522228342

result:

ok single line: '522228342'

Test #4:

score: 10
Accepted
time: 0ms
memory: 1232kb

input:

1000
dabdbedccdebcdbbebdcaeedebdbccdaabebdecbeebbebedecebacdcabdbeaebcbdeceaaebddceadbbaaebeedccedea...

output:

825347577

result:

ok single line: '825347577'

Test #5:

score: 10
Accepted
time: 0ms
memory: 1232kb

input:

1000
dababaebbeaedccabebabcecebebaeebeedbebbddbebccceebbdbccbedeecddabebcedadbecbadcedebbccaaeadccaa...

output:

298152289

result:

ok single line: '298152289'

Test #6:

score: 10
Accepted
time: 13ms
memory: 3636kb

input:

100000
bbgejihfhafdeacedbbgiaafecgidaeiggbbjfhiaaheaijghhbifcjcdhadcdedjdejijbeihgfjafeiaehhfigjgaig...

output:

614248473

result:

ok single line: '614248473'

Test #7:

score: 10
Accepted
time: 4ms
memory: 3636kb

input:

100000
ieefgijddfhhbgfedegdddaijafgicijgcahijggbehbbihdhfeiacjfehjjeeebeaheiadhddeafcbcehahbieeihdag...

output:

299542715

result:

ok single line: '299542715'

Test #8:

score: 10
Accepted
time: 11ms
memory: 3636kb

input:

100000
ebfabaffebgjjajbacjdjhhgbgehagjhihbjidhdcgjcbghegbabjbecjgjfcjjeijbfjdddfjeajjffabijfaggdjhcf...

output:

689835121

result:

ok single line: '689835121'

Test #9:

score: 10
Accepted
time: 11ms
memory: 3632kb

input:

100000
jifjcebdgjjjfcafdceiehfgfciechchcebbjijbdcbhhejdcieebbhfabbjghhjgfaafgbbgbcicjgcfdfbjicagcffg...

output:

448080023

result:

ok single line: '448080023'

Test #10:

score: 10
Accepted
time: 13ms
memory: 3632kb

input:

100000
agjjjcibcbcaajegcihcidbbagjgjdajajffgjjihjfjgijadgjjifcfciihchdiefihbidihcheecccbjdcagecdjhif...

output:

245353070

result:

ok single line: '245353070'