QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#808137#2518. Puzzle Gameucup-team878WA 2146ms3936kbC++203.4kb2024-12-10 17:20:292024-12-10 17:20:29

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3620kb

input:

3
7 3
ABADCAB
CBB
11 7
ABACCDBADAC
AADCDAC
3 2
ABA
CB

output:

ADCABAB
ABABDACCDAC
NO

result:

ok  (3 test cases)

Test #2:

score: 0
Accepted
time: 2146ms
memory: 3616kb

input:

15
7 3
ABADCAB
CBB
11 7
ABACCDBADAC
AADCDAC
3 2
ABA
CB
15 1
BAACABBCADADCAD
A
37 20
DADBDCDADBDCDADBDCDADBDCDADBDCDADBDBA
DDDDDDDDDDDDDDDDDDAA
37 19
DADBDCDADBDCDADBDCDADBDCDADBDCDADBDBA
ABCACABBBABACCBCABA
51 33
AAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCDDDDDDDDDDDDDD
AABBBBBBBBBBBBBBCCCCCCCCDDDDDDDDD
4...

output:

ADCABAB
ABABDACCDAC
NO
BAABBCACACDADAD
NO
DADBDCDADCDADBDBDBDADBDADCDCDBDCDADBA
AAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCDDDDDDDDDDDDDD
AAABABBBCCDCDCACBDADDADBCCCCCBCDBCACBBDBADAAABABDBDDBCBADAACCAADDADACDBABCADAADDDBBDABBCBCDAADDDABBCCCDCADDAAABDDACABABABBAABCCCDBBADCCAACCBCADCDDACADCDADADBBADBDBBACCA...

result:

ok  (15 test cases)

Test #3:

score: 0
Accepted
time: 3ms
memory: 3936kb

input:

15
300 294
CCBACDDAADBCDDBAAAABACCAADBADAAABABCACBCCCAABBCACCCBCABBAAABCBDAADBADAABAADACCAACDDDBBDBDDACAACDDCABACDDABABACADACBCBDACDDCDCDBDCACCCDCDABADDDBBABDBBCCBADBDAACDDCCCADDCABAAAAADBADBDACBBACDCAACABABDBDCCDABCBDDADCABDDDDDAABACACCDBDBBACADBBAAAACCCCBDCCBDDBDBBBDDDAADDBAADDCBDBAACDACCABDAACBBB...

output:

CCAAACCCACDDDCACBBCCBAAAABDBABBDBABDABCCDAADDBBADAADBACCADAABDCBABACDADDCDCAAAACCDBABCABDBACCDDBDCCBDCDCDBDBAABCDBADBADDDDDCDDCCBDDDCAABDBBAABBCDCACBABBABDDDDBBCABBBACABADDCCBACCCAADAAADADCAABCADDDDBBAAACBDADACDBDBADDDBCACABADDDCBDABDACACBACCCBAAACBBDDACBDAADABADBDACDBBAADBAADBBBACDBCCCCAACACCAAAACA...

result:

ok  (15 test cases)

Test #4:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

13
21 13
ABCDABCDABCDABCDABCDA
ABABABCDCDCDA
34 16
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCC
19 1
DCCDBCDCBADDBBCDCBC
A
19 1
CABACABCADBCCAABBAC
D
19 1
CCCCCCCCCCCCCCCCCCC
C
19 1
ACCCCCCCCCCCCCCCCCA
A
19 1
CBAABCADDAADADDDADC
C
2 1
AB
A
2 1
DD
D
2 1
AB
C
2 1
CD
C
9 8
ABDBACABA
DBABABAC
10 ...

output:

ADADABCBCBABABCDCDCDA
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
DDABBCCDCDCDCBCBDBC
CCAABBCBABACACABDAC
CCCCCCCCCCCCCCCCCCC
ACCCCCCCCCCCCCCCCCA
CBCDDDDAAABADADADAC
AB
DD
NO
CD
NO
BCADBAAADD

result:

ok  (13 test cases)

Test #5:

score: 0
Accepted
time: 52ms
memory: 3900kb

input:

14
570 554
CDDBDDDCBAADBAADADADDBDADCADDBDBACBDCAADDDADCDDCABAABBDDCCCACBCDCADBBADABCBCBDABDBCDDCACBDDCBADCDCACDBDDCBDACCCACBBDBABDCBCCCCBDCACABBCBBBCAACBDBBCBCBBDADCABCCABCDADCCCADDCDCACCBBCDDAACBDDCCDBDACCBDAACACBDCDACBCDCBCBDACCBCDDDCDDCCCCBABBACCCDCCDBCACDBBDCABABBACDABBDADBCDBDCDCDDABBCDBCBCCCA...

output:

CDDDCBAABDCDACDDDBDBDAACDACDBADCAABCBCDBABADDDDBDCAADDCAADDADBACADCDBABAABABDAABCDCABCBDCBCBDAABDBDBCDADAABDBCAABDBCDACDCAADCDDCDACDBDDDBCCDDBADADBBDAACDCACDAABBDBCADBDDBCCCDBBDACBACCBBCDBACDADCDCCBDACACABDADADDAACCCBDCDABBACBABBBBDBDCCABBCAABABDADBDDCCBDDBDBCADCCCCADBDBDCCDDDBCDADCCBDCBACBBBACDDDBC...

result:

ok  (14 test cases)

Test #6:

score: 0
Accepted
time: 0ms
memory: 3912kb

input:

15
948 930
CDDDACAADCACBBABBACBDBBDBCACCDAABCBAACDDBDBBDACCDDCACADDAADCDDCAABDCBCDDADCCBCDADDCCABABDBBBADDDBADBADADBAAAABDBCDDADBBABBACDBDBDCBDDAABCBDCCCDABBABDDDAAACDBBABAADCBBAABCADBCAACABDCBBCCCBACCCDBADBAABCADCAAAABBADBACABCDACBABBCBCDCDDBDBDABABCBABDBBBBADDACADBDBAADADDDDCABDDBDCBABDABCBADCCAAB...

output:

CDDDDDCDAAABDBBDACAABAABDBDACBBCBDDABDCDCAAACDADBACDDDDBDBADAAADDACBAABBDBADDBADBCCCCABDBBBCDDDAADCDBCBABABDBACABCDACBABBCBCDCDDBDABABBBBADDABDBDADDAABBCABDCDBBDBAAAACDABDABCBADCDDCCCDBDACBDCBDDACBACBCDDBAABAAACBAADDBDBCBCCCAABADCDAACDADABDABCDBDCAAADDAABACDBCDDDAACABBADDBBBBACBAADDDDBABCACCDBACBCBD...

result:

ok  (15 test cases)

Test #7:

score: -100
Wrong Answer
time: 159ms
memory: 3672kb

input:

15
615 597
CCDCBDBBBCCADDCABCDBAAACCDDABACDBDCCCCBBBCDBCDCCACBCBBBDADBCBCBDAAAADDABCABBDDAABABDABDBCDDBCCDACAADCCDBADCBAACCCDAAADCCDBCCAAABBBCDBBDDDCBDDBBDACADDAADAAACADDDDBACDAACDAABBDBAAAADADBABDCDDCACDACDDBBBCAACACABADDCAAABACDBCBBDDBCACABBCCACBADBDCBCDDBACCCDDBBCDABACBABDCBACABDDBBDDCDBCACDDCBAA...

output:

CDBBBDBDBDAADCDCACDBDCDBCDCBBBCACBCCCCCBBCDACBCBDCBDADADBDBBCDACADBBDADBCBDDABBADADCDDBBDACACDDBAABDBADDDCBCABDCDACCBCDCAADBDBDDBCDDCDAACDDDBBBCBAADDCBACAADADADDDAAABBABCBDCCBBDACADAAADDBBCACCBBAAAABDBCBAABADDCDABACBDBBDDCDCBAADBCCABDDBCDBAACDACADBABACCCCACDADACDADCCCABABAACBABBACBADDDDACBAADBDDDDAB...

result:

wrong answer Wrong Answer: judge finds a solution, but participant doesn't.
Judge's output: CCBBBBBDDABABAAABC
Participant's output: NO (test case 11)