QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#402019#7751. Palindrome PathMaMengQiWA 0ms9680kbC++172.1kb2024-04-29 19:16:422024-04-29 19:16:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2 2
11
11
1 1 2 2

output:

RDLRULUULURLDR

result:

ok Valid Solution (Length = 14).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:



result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

LLURRRDDLLLDRRRDLLLRRRULLLURRRUULLLDRRRUURRRDLLLUURRRULLLURRRLLLDRRRDLLLDDRRRULL

result:

ok Valid Solution (Length = 80).

Test #5:

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

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

RRRRDDLLLLUDDDRRRRUDLLUDLLUURRUDRRUULLLLLLUUUULLLLLLUURRDURRUULLDULLDURRRRDDDULLLLDDRRRR

result:

ok Valid Solution (Length = 88).

Test #6:

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

input:

5 3
111
100
111
001
111
4 3 3 2

output:

LUURRLLDDRRDDLLRRUULLUURRLLDDRRDDLLRRUUL

result:

ok Valid Solution (Length = 40).

Test #7:

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

input:

5 4
1001
1101
1111
0011
0010
2 2 1 1

output:

ULULLURUDLDDDUURRRLDRDDDDRDLRRRUUDDDLDURULLULU

result:

wrong answer (1,4) Not Visited