QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#533630#7751. Palindrome PathgoodmanWA 0ms3688kbC++142.5kb2024-08-26 09:24:412024-08-26 09:24:41

详细

Test #1:

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

input:

2 2
11
11
1 1 2 2

output:

RDRLRDUURLLRDDRLLRUUDRLRDR

result:

ok Valid Solution (Length = 26).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:



result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

RLLDDUULRLLRRLLRRRDDDUUURLRLLRLLDDDUUUULRLLRRLLRRRRLLRLLRLLUDDLLRRLLRRRLLRRRUDDUDDRLUDDRLLRLLLLRRLLRRRLLRRRRLLDDUULLRRRDDDUUURLLRLLRLLUDDLLRRRRLLDDULLRLLRLLRUUUDDDRRRLLUUDDLLRRRRLLRRRLLRRLLLLRLLRDDULRDDUDDURRRLLRRRLLRRLLDDULLRLLRLLRRRRLLRRLLRLUUUUDDDLLRLLRLRUUUDDDRRRLLRRLLRLUUDDLLR

result:

ok Valid Solution (Length = 282).

Test #5:

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

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

RRLLRRRLLLRRRRLLLLDDRRRRDDDUUUDDDDUUUUDDDDRLRRLLRRRLLLRRRRLLLLDUDRRDUDRRDDUUDDDUUURRLLRRRLLLDDDUUUDRRRRLLLLRRRRLLLLLDDDDUUUUDDDDUUUUURRRRRLLRRRLLLRRRRLLLLDDRRRRDDDDRRRRDDLLLLRRRRLLLRRRLLRRRRRUUUUUDDDDUUUUDDDDLLLLLRRRRLLLLRRRRDUUUDDDLLLRRRLLRRUUUDDDUUDDRRDUDRRDUDLLLLRRRRLLLRRRLLRRLRDDDDUUUUDDDDUUUDDD...

result:

wrong answer (2,3) Not Visited