UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#3385#35. stringlzoilixy100134ms64080kbC++3.7kb2018-09-11 14:17:382018-09-11 14:17:38

answer


详细

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

Test #1:

score: 5
Accepted
time: 0ms
memory: 16932kb

input:

3 3
AD DD
BBC DCB
AB CD

output:

12

result:

ok single line: '12'

Test #2:

score: 5
Accepted
time: 0ms
memory: 16928kb

input:

3 5
DC AD
ACB DBC
C C
DBC DCC
CCD AAC

output:

24

result:

ok single line: '24'

Test #3:

score: 5
Accepted
time: 0ms
memory: 19000kb

input:

5 5
B A
CD CA
CB AC
BAADA DADBC
BAACC BDACC

output:

220

result:

ok single line: '220'

Test #4:

score: 5
Accepted
time: 0ms
memory: 19004kb

input:

5 7
AD DD
AAAA BBCD
BDCD DCCA
CAA CBD
CABAC BDCAD
BBB DBA
BAAA ADCB

output:

230

result:

ok single line: '230'

Test #5:

score: 5
Accepted
time: 0ms
memory: 21084kb

input:

7 7
B A
BABAB DADBD
CD DC
BB AC
BAC CBA
B B
ACCDA DDDDA

output:

1715

result:

ok single line: '1715'

Test #6:

score: 5
Accepted
time: 0ms
memory: 21060kb

input:

7 10
CADD CACC
CDCCCCC BDBCBCC
ADA ABB
CC DA
BBA ADC
CC DA
DCDCC CDBBC
AAAAADA BCCACDB
B B
CDADDBC B...

output:

7448

result:

ok single line: '7448'

Test #7:

score: 5
Accepted
time: 0ms
memory: 23216kb

input:

10 10
DBADCCACCC CDAACCDBBC
AAABA AADAB
DDDDDBA DCDBDBD
AACBBCBB ADCDAAAA
ACDBCAC CDAABAD
A B
BA BC
...

output:

418440

result:

ok single line: '418440'

Test #8:

score: 5
Accepted
time: 0ms
memory: 23132kb

input:

10 20
AAAADABA ACBDBACB
DACCA DCADB
DDBDDAC ABDABAA
CCDCCBBCCB DADDAADDDA
BBBCCC BBCBBC
AADBAACDDD A...

output:

1047553

result:

ok single line: '1047553'

Test #9:

score: 5
Accepted
time: 0ms
memory: 23144kb

input:

10 25
BBDBBBDCB BCDBCCCBB
BBABCBBCC ADDAADDDA
ABAAAAAA ABDDDBDB
ABCBC CAACC
ABCAADDAD DDCCCCCAC
DCAD...

output:

1045137

result:

ok single line: '1045137'

Test #10:

score: 5
Accepted
time: 0ms
memory: 21080kb

input:

10 30
ADBCCDD DDDCBAD
A C
ADBAAAC CAABBBB
BCC BAA
CC BC
AA CC
DABC ADBA
B C
ABACD BCADD
AA AC
C B
CA...

output:

1048576

result:

ok single line: '1048576'

Test #11:

score: 5
Accepted
time: 3ms
memory: 31596kb

input:

20 30
DDDCDCA CDABBDD
ACDBDDAADD ACCAACABBD
AAAAAACABDBAAA CDCDBDBDBDCBBC
BBCCBBBBBCBBBC BBCAADCCCBA...

output:

1096657343850

result:

ok single line: '1096657343850'

Test #12:

score: 5
Accepted
time: 4ms
memory: 40168kb

input:

30 30
BBACCCBDCBBDADACABACA AADDBBBBBBAAABBACAAAB
DDDDDDDDC AAABAADDC
ACABDACACD BAADCBCDDD
DCBCDACC...

output:

1152910035924486131

result:

ok single line: '1152910035924486131'

Test #13:

score: 5
Accepted
time: 4ms
memory: 40140kb

input:

30 40
CCCCABC CBADACD
D A
CCCACCDAAAACCABCCAA ACCBBAACBBABBBBBCCB
CCCDCBCC ACDACBDB
DBDDBBDBBDCBADBA...

output:

1152921305708520947

result:

ok single line: '1152921305708520947'

Test #14:

score: 5
Accepted
time: 4ms
memory: 40204kb

input:

30 45
ABAAADAAAADAAAAAABAAADBAAAAAD DADDDBDAADADDDDDDDBDDDBDDDDBB
DBCCBDBCCDCCACCBBABADCCCCC BABDBAD...

output:

1152918445732407439

result:

ok single line: '1152918445732407439'

Test #15:

score: 5
Accepted
time: 4ms
memory: 40128kb

input:

30 50
DBBBBCBBACA BCDBADABBDA
CDCCDCDBBDCDACADDABDCCAB DBAABADDCBAABAAAAACABDAA
AADBBDCDCAACBACBBADA...

output:

1152921170475437617

result:

ok single line: '1152921170475437617'

Test #16:

score: 5
Accepted
time: 6ms
memory: 40140kb

input:

30 65
AC DB
DACDDCCACBBDDBCDDBCCBACBBABDC AAABAAAABAAAAAABAAAACABAADBAA
CCCDCCCCBCCDCCCCCCCCBCC DADC...

output:

1152920938608732580

result:

ok single line: '1152920938608732580'

Test #17:

score: 5
Accepted
time: 20ms
memory: 62044kb

input:

50 80
BBCABDBCDDDDDBAACBCDDDACDCBABBDBBBDBAAD DBBBBBBDBBBDBBDBBBBBBBDBCBDDDBBDBDDDCDD
BBBBDBDBADBADB...

output:

1267650600228228275596772752103

result:

ok single line: '1267650600228228275596772752103'

Test #18:

score: 5
Accepted
time: 31ms
memory: 62028kb

input:

50 90
AACCDCCACCAAAACDCCBCACAACCCAACABAAAACAABB AAAAACCAAACCCCAAAABADBCAACAAADBACBCDAACBA
DBDDDADBDD...

output:

1267650600227823922352011846601

result:

ok single line: '1267650600227823922352011846601'

Test #19:

score: 5
Accepted
time: 27ms
memory: 64080kb

input:

50 95
DCCB DDCB
DACACCCCCCBCCCACCDACCCACABCCCCCCCCCCACCCC BABBBDBCBBBBABDBBBBBBBBBBBBBBDBCBCCBBBBCD
...

output:

1267650600227976924242875861854

result:

ok single line: '1267650600227976924242875861854'

Test #20:

score: 5
Accepted
time: 31ms
memory: 64040kb

input:

50 100
DBBDBBBDDBCAAADBDBABAAABABBDABBBACABABB DBABDABCDACABDDBBCDBBBBDDAACADBBDDADDDC
ABBBBBBBBBABA...

output:

1267650600228226150206782979308

result:

ok single line: '1267650600228226150206782979308'