UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#128645#2052. 子序列dongyinuo100102ms2488kbC++11709b2021-04-24 11:52:122021-04-24 11:52:13

answer


Details

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

Test #1:

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

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

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

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

input:

1000
dabdbedccdebcdbbebdcaeedebdbccdaabebdecbeebbebedecebacdcabdbeaebcbdeceaaebddceadbbaaebeedccedea...

output:

825347577

result:

ok single line: '825347577'

Test #5:

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

input:

1000
dababaebbeaedccabebabcecebebaeebeedbebbddbebccceebbdbccbedeecddabebcedadbecbadcedebbccaaeadccaa...

output:

298152289

result:

ok single line: '298152289'

Test #6:

score: 10
Accepted
time: 21ms
memory: 2488kb

input:

100000
bbgejihfhafdeacedbbgiaafecgidaeiggbbjfhiaaheaijghhbifcjcdhadcdedjdejijbeihgfjafeiaehhfigjgaig...

output:

614248473

result:

ok single line: '614248473'

Test #7:

score: 10
Accepted
time: 18ms
memory: 2488kb

input:

100000
ieefgijddfhhbgfedegdddaijafgicijgcahijggbehbbihdhfeiacjfehjjeeebeaheiadhddeafcbcehahbieeihdag...

output:

299542715

result:

ok single line: '299542715'

Test #8:

score: 10
Accepted
time: 21ms
memory: 2484kb

input:

100000
ebfabaffebgjjajbacjdjhhgbgehagjhihbjidhdcgjcbghegbabjbecjgjfcjjeijbfjdddfjeajjffabijfaggdjhcf...

output:

689835121

result:

ok single line: '689835121'

Test #9:

score: 10
Accepted
time: 21ms
memory: 2488kb

input:

100000
jifjcebdgjjjfcafdceiehfgfciechchcebbjijbdcbhhejdcieebbhfabbjghhjgfaafgbbgbcicjgcfdfbjicagcffg...

output:

448080023

result:

ok single line: '448080023'

Test #10:

score: 10
Accepted
time: 21ms
memory: 2488kb

input:

100000
agjjjcibcbcaajegcihcidbbagjgjdajajffgjjihjfjgijadgjjifcfciihchdiefihbidihcheecccbjdcagecdjhif...

output:

245353070

result:

ok single line: '245353070'