QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#396009#7751. Palindrome PathZhangYiDeWA 2ms20100kbC++143.4kb2024-04-22 09:37:252024-04-22 09:37:25

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 14108kb

input:

2 2
11
11
1 1 2 2

output:

DRUDLUDRRDULDURD

result:

ok Valid Solution (Length = 16).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:


result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

DDDRUUUULLDDDDLUUUUDDDDRUUUURRDDDDLUUUDRLLLLRDUUULDDDDRRUUUURDDDDUUUULDDDDLLUUUURDDD

result:

ok Valid Solution (Length = 84).

Test #5:

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

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

DDDDRRUUUURRDDDDLLLLRRRRUUUULLDDDDLLUUUUDDRRRRDDUUUULLDDDDLLUUUURRRRLLLLDDDDRRUUUURRDDDD

result:

ok Valid Solution (Length = 88).

Test #6:

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

input:

5 3
111
100
111
001
111
4 3 3 2

output:

RDDLLLUURRLLDDRRRUULLUURRRDDLLRRUULLLDDR

result:

ok Valid Solution (Length = 40).

Test #7:

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

input:

5 4
1001
1101
1111
0011
0010
2 2 1 1

output:

UULDLUULDDDUUURDDRURDDULLUDDRURDDRUUUDDDLUULDLUU

result:

wrong answer (1,4) Not Visited