QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#402035#7751. Palindrome PathZhaoZiLongWA 3ms9660kbC++172.2kb2024-04-29 19:35:572024-04-29 19:35:57

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 9620kb

input:

2 2
11
11
1 1 2 2

output:

RDLRULLUULLURLDR

result:

ok Valid Solution (Length = 16).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:



result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

LLURRRDDLLLDRRRDLLLRRRULLLURRRUULLLDRRRRLUULRRRRDLLLUURRRULLLURRRLLLDRRRDLLLDDRRRULL

result:

ok Valid Solution (Length = 84).

Test #5:

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

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: 9600kb

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: 9540kb

input:

5 4
1001
1101
1111
0011
0010
2 2 1 1

output:

ULULLURUDLDDDUURRRLDRDDRRDDRDLRRRUUDDDLDURULLULU

result:

wrong answer (1,4) Not Visited