QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#394504#7751. Palindrome Path_happy_WA 1ms5820kbC++142.7kb2024-04-20 15:25:072024-04-20 15:25:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2 2
11
11
1 1 2 2

output:

DRUDLUULDURD

result:

ok Valid Solution (Length = 12).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:


result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

ULDDDDRUURDDUUUUDDLDDLLUUUUDDDDRUUUURDDRUUUURDDDDUUUULLDDLDDUUUUDDRUURDDDDLU

result:

ok Valid Solution (Length = 76).

Test #5:

score: 0
Accepted
time: 1ms
memory: 5776kb

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

DDDDRRUULRUURRDDLRDDLRUUUULLLRDDDDLLUUUUDDDDRRUUUURRDDDDUUUULLDDDDRLLLUUUURLDDRLDDRRUURLUURRDDDD

result:

ok Valid Solution (Length = 96).

Test #6:

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

input:

5 3
111
100
111
001
111
4 3 3 2

output:

RDDLLRRUULLUURRLLDDRRDDLLRRUULLUURRLLDDR

result:

ok Valid Solution (Length = 40).

Test #7:

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

input:

5 4
1001
1101
1111
0011
0010
2 2 1 1

output:

UULLULDDDUUURUDDRDURDDULURDDRULUDDRUDRDDURUUUDDDLULLUU

result:

ok Valid Solution (Length = 54).

Test #8:

score: -100
Wrong Answer
time: 1ms
memory: 5820kb

input:

5 3
101
111
100
111
100
4 1 2 2

output:

RDUUULLRRUDDDLLDURRUDLLDDDURRLLUUUDR

result:

wrong answer (1,3) Not Visited