QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394170#7751. Palindrome PathZhaoZiLongWA 0ms3884kbC++201.8kb2024-04-20 09:35:082024-04-20 09:35:08

详细

Test #1:

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

input:

2 2
11
11
1 1 2 2

output:

DRDUDDUDRD

result:

ok Valid Solution (Length = 10).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:



result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

DDUUDDDUUUDDDUUUURLLUDUDDUDDUDDLRLLRRDUDDUUDDDUUUDDDUUUULLRRRUDUDDUDDUDDDDUUDDDUUUDDDUUUUDDDUUUURLLUDDUDDUDDUDDRLLRLLDDUUDDDUUUDDDUUUUDDDUUUULLRRUDDUDDUDDDDUDDUDDURRLLUUUUDDDUUUUDDDUUUDDDUUDDLLRLLRDDUDDUDDUDDULLRUUUUDDDUUUUDDDUUUDDDUUDDDDUDDUDDUDURRRLLUUUUDDDUUUDDDUUDDUDRRLLRLDDUDDUDDUDULLRUUUUDDDUU...

result:

ok Valid Solution (Length = 308).

Test #5:

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

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

RRLLDDDDRRRLLLRRRRLLLLDUDDUUDDDUUUDDDDUUUURRRRRLLLLLDDRRRRRLLLLLDDRRRRDUDDUUDDDUUUDDDDUUUUDDRLRDDDDRLRDDUUUUDDDDUUUDDDUUDDUDRRRRDDLLLLLRRRRRDDLLLLLRRRRRUUUUDDDDUUUDDDUUDDUDLLLLRRRRLLLRRRDDDDLLRR

result:

ok Valid Solution (Length = 194).

Test #6:

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

input:

5 3
111
100
111
001
111
4 3 3 2

output:

DRLRLLLRRLRRUURLRLLUULRLRRRLLRLLDDLRRRRLDDLLRLLRRRLRLUULLRLRUURRLRRLLLRLRD

result:

ok Valid Solution (Length = 74).

Test #7:

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

input:

5 4
1001
1101
1111
0011
0010
2 2 1 1

output:

UDRUDUUDDURUUUUUDDUUDDDUUDDDLULLUUUULLULDDDUUDDDUUDDUUUUURUDDUUDURDU

result:

ok Valid Solution (Length = 68).

Test #8:

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

input:

5 3
101
111
100
111
100
4 1 2 2

output:

DULRLRRRLLRLLUUUDLRLRRUDRLLLLRDURRLRLDUUULLRLLRRRLRLUD

result:

ok Valid Solution (Length = 54).

Test #9:

score: -100
Wrong Answer
time: 0ms
memory: 3760kb

input:

5 5
01110
10110
11110
11011
11100
2 4 5 1

output:

DDDUUULLLLRRDDLLRRRDLRLDDUULLDDLLRRLLDUDDUUDDDUUUDDDDDDUUUDDDUUDDUDLLRRLLDDLLUUDDLRLDRRRLLDDRRLLLLUUUDDD

result:

wrong answer (4,2) Not Visited