QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#732662#7751. Palindrome Pathucup-team4217#WA 1ms5836kbC++203.6kb2024-11-10 15:27:532024-11-10 15:27:53

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 5524kb

input:

2 2
11
11
1 1 2 2

output:

DUURDDUUUUDDRUUD

result:

ok Valid Solution (Length = 16).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:



result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

DDUULLRRLLRRRUDDUDDUDDUDDRLDDDUUUUDDDUUUUDDDUUUUDDRLLUDDUDDRLLDDDUUUUDDDUUUUDDDUUUDDUUUDDUDDUDDUDDLRDDDUUUUDDDUUUULLRRUDDUDDLLRRRDDDUUUUDDDUUUUDDDUUUDDUURLRLLUDDDDULLRLRUUDDUUUDDDUUUUDDDUUUUDDDRRRLLDDUDDURRLLUUUUDDDUUUUDDDRLDDUDDUDDUDDUUUDDUUUDDDUUUUDDDUUUUDDDLLRDDUDDULLRDDUUUUDDDUUUUDDDUUUUDDDLRDDU...

result:

ok Valid Solution (Length = 322).

Test #5:

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

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

RDDDDUUUUUDDDDUUUUDDDUUUDDUURLRRLLDDRRRLLDDRRRLLLRRRRLLLLDDDDUUUUUDDDDUUUUDDDUUUDDUURRRRRLLLLDDRRRRRLLLLDDRRDDDDUUUUUDDDDUUUUDDDUUUDDUURRRRUUDDUUUDDDUUUUDDDDUUUUUDDDDRRDDLLLLRRRRRDDLLLLRRRRRUUDDUUUDDDUUUUDDDDUUUUUDDDDLLLLRRRRLLLRRRDDLLRRRDDLLRRLRUUDDUUUDDDUUUUDDDDUUUUUDDDDR

result:

ok Valid Solution (Length = 274).

Test #6:

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

input:

5 3
111
100
111
001
111
4 3 3 2

output:

URLRLLLRLRRDDRLRLLDDLRLRRRLRLLUULRRLUULLRLRRRLRLDDLLRLRDDRRLRLLLRLRU

result:

wrong answer End Point Is (5,2), Not (er = 3, ec = 2)