UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#114692#2052. 子序列dingzhe10030ms2456kbC++2.5kb2020-07-30 18:55:402020-07-30 19:33:15

answer


详细

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

Test #1:

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

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: 1196kb

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: 1192kb

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: 1204kb

input:

1000
dabdbedccdebcdbbebdcaeedebdbccdaabebdecbeebbebedecebacdcabdbeaebcbdeceaaebddceadbbaaebeedccedea...

output:

825347577

result:

ok single line: '825347577'

Test #5:

score: 10
Accepted
time: 1ms
memory: 1208kb

input:

1000
dababaebbeaedccabebabcecebebaeebeedbebbddbebccceebbdbccbedeecddabebcedadbecbadcedebbccaaeadccaa...

output:

298152289

result:

ok single line: '298152289'

Test #6:

score: 10
Accepted
time: 7ms
memory: 2452kb

input:

100000
bbgejihfhafdeacedbbgiaafecgidaeiggbbjfhiaaheaijghhbifcjcdhadcdedjdejijbeihgfjafeiaehhfigjgaig...

output:

614248473

result:

ok single line: '614248473'

Test #7:

score: 10
Accepted
time: 3ms
memory: 2456kb

input:

100000
ieefgijddfhhbgfedegdddaijafgicijgcahijggbehbbihdhfeiacjfehjjeeebeaheiadhddeafcbcehahbieeihdag...

output:

299542715

result:

ok single line: '299542715'

Test #8:

score: 10
Accepted
time: 7ms
memory: 2452kb

input:

100000
ebfabaffebgjjajbacjdjhhgbgehagjhihbjidhdcgjcbghegbabjbecjgjfcjjeijbfjdddfjeajjffabijfaggdjhcf...

output:

689835121

result:

ok single line: '689835121'

Test #9:

score: 10
Accepted
time: 6ms
memory: 2456kb

input:

100000
jifjcebdgjjjfcafdceiehfgfciechchcebbjijbdcbhhejdcieebbhfabbjghhjgfaafgbbgbcicjgcfdfbjicagcffg...

output:

448080023

result:

ok single line: '448080023'

Test #10:

score: 10
Accepted
time: 6ms
memory: 2452kb

input:

100000
agjjjcibcbcaajegcihcidbbagjgjdajajffgjjihjfjgijadgjjifcfciihchdiefihbidihcheecccbjdcagecdjhif...

output:

245353070

result:

ok single line: '245353070'