QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394435#7751. Palindrome PathZhangYiDeWA 0ms3780kbC++202.7kb2024-04-20 14:45:432024-04-20 14:45:45

详细

Test #1:

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

input:

2 2
11
11
1 1 2 2

output:

DRLRDURLRDDRLRUDRLRD

result:

ok Valid Solution (Length = 20).

Test #2:

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

input:

2 2
10
01
1 1 2 2

output:

-1

result:

ok No Solution.

Test #3:

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

input:

1 1
1
1 1 1 1

output:


result:

ok Valid Solution (Length = 0).

Test #4:

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

input:

5 4
1111
1111
1111
1111
1111
4 2 4 2

output:

LLRRRUDDRLRLLRLLDUDDUULRLLRRLLRRRDDDUUURLRLLRLLDDDUUUULRLLRRLLRRRRLRLLRLLUDLRLLRRLLRRRUDDRLRLLRLLUDDUDDLRLLRRLLRRRDURLRLLLLRLRUDRRRLLRRLLRLDDUDDULLRLLRLRDDURRRLLRRLLRLDULLRLLRLRRRRLLRRLLRLUUUUDDDLLRLLRLRUUUDDDRRRLLRRLLRLUUDDUDLLRLLRLRDDURRRLL

result:

ok Valid Solution (Length = 242).

Test #5:

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

input:

5 5
11111
10101
11111
10101
11111
1 4 5 5

output:

DDRLRRLLRRRLLLRRRRLLLLDDRRRRDUDRLRRLLDUDRRRLLLRRRRLLLLDUDDUUDDDUUUDDDDUUUURRDDDDDUUUURRRLLLRRRRLLLLDDRRRRDDDUUUDDDDUUUURLRDDRLRRLLRRRLLLRRRRLLLLDDRRRRRRRRDDLLLLRRRRLLLRRRLLRRLRDDRLRUUUUDDDDUUUDDDRRRRDDLLLLRRRRLLLRRRUUUUDDDDDRRUUUUDDDDUUUDDDUUDDUDLLLLRRRRLLLRRRDUDLLRRLRDUDRRRRDDLLLLRRRRLLLRRRLLRRLRDD

result:

ok Valid Solution (Length = 300).

Test #6:

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

input:

5 3
111
100
111
001
111
4 3 3 2

output:

RLRLLLRLRRUURLRLLUULRLRRRLRLLDDLRLRRDDRLRLLLRLRRUURLLRUURRLRLLLRLRDDRRLRLDDLLRLRRRLRLUULLRLRUURRLRLLLRLR

result:

ok Valid Solution (Length = 104).

Test #7:

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

input:

5 4
1001
1101
1111
0011
0010
2 2 1 1

output:

UUDDRRRUUDDDLUUDDURUUUUDUUDDLLLUUUDRLUUDDRRRUUDDDLUUDDURUUUUDUUDDLLLUUUULLLDDUUDUUUURUDDUULDDDUURRRDDUULRDUUULLLDDUUDUUUURUDDUULDDDUURRRDDUU

result:

ok Valid Solution (Length = 140).

Test #8:

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

input:

5 3
101
111
100
111
100
4 1 2 2

output:

LRRRLRLLDUUULRLRRUDRLRLLUDDDLRLRRRLRLLDUUULRRLUUUDLLRLRRRLRLDDDULLRLRDURRLRLUUUDLLRLRRRL

result:

ok Valid Solution (Length = 88).

Test #9:

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

input:

5 5
01110
10110
11110
11011
11100
2 4 5 1

output:

DLLRRRDLRLDULLLDLRDLLRRLLLRDULDDUUDDDUUUDLRLLRRDUDDUULLRRLLLRDLRLDLLRRRDLRLDULLLDLRDLLRRLLLLRRLLDRLDLLLUDLRLDRRRLLDLRLDRLLLRRLLUUDDUDRRLLRLDUUUDDDUUDDLUDRLLLRRLLDRLDLLLUDLRLDRRRLLD

result:

ok Valid Solution (Length = 180).

Test #10:

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

input:

5 3
011
111
110
111
011
3 1 2 1

output:

UUDDDLLRRUDLLRULLLRUULLRRULLRUDLLLRUUDDLLRUUDDDLLRRUDLLRULLLRUULLRRULLRUDLLLLDURLLURRLLUURLLLURLLDURRLLDDDUURLLDDUURLLLDURLLURRLLUURLLLURLLDURRLLDDDUU

result:

ok Valid Solution (Length = 150).

Test #11:

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

input:

4 5
11111
11111
11111
11111
3 2 1 3

output:

LRRLRRRLRRLLRRLLLUULRLRRLRRLRRRLRRLLRRLLLLRLRRLRRLRRRLRRLLRRLLLUUDDUUUDDDLRLRRLRRLRRRLRRLLLRRLRRLRRRLRRLLRRLLLUULRLRRLRRLRRRLLRRRLRRLRRLRLUULLLRRLLRRLRRRLRRLRRLLLRRLRRRLRRLRRLRLDDDUUUDDUULLLRRLLRRLRRRLRRLRRLRLLLLRRLLRRLRRRLRRLRRLRLUULLLRRLLRRLRRRLRRL

result:

wrong answer End Point Is (1,4), Not (er = 1, ec = 3)