QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#314118#1296. Game DesignqiuzxAC ✓1ms3936kbC++171.5kb2024-01-25 12:53:162024-01-25 12:53:16

詳細信息

Test #1:

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

input:

LRULR

output:

-3 -2
4
-7 0
-5 -2
-2 1
-1 -2

result:

ok 

Test #2:

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

input:

DUD

output:

impossible

result:

ok 

Test #3:

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

input:

LRUDLRUDU

output:

impossible

result:

ok 

Test #4:

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

input:

UD

output:

0 1
1
0 3

result:

ok 

Test #5:

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

input:

UDLRUDLRUDLRUDLRUDLR

output:

-10 9
19
-21 0
-19 2
-17 4
-15 6
-13 8
-10 7
-10 11
-8 5
-8 13
-7 8
-6 3
-6 15
-5 6
-4 1
-4 17
-3 4
-2 -1
-2 19
-1 2

result:

ok 

Test #6:

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

input:

DRULDRULDRULDRULDRUL

output:

20 -19
19
3 -4
4 -37
7 -8
8 -33
11 -12
12 -29
15 -16
16 -25
20 -21
22 -15
23 -20
26 -11
27 -24
30 -7
31 -28
34 -3
35 -32
38 1
39 -36

result:

ok 

Test #7:

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

input:

DRULURDRULURDRULURD

output:

-18 19
18
-35 34
-34 37
-29 28
-28 31
-23 22
-22 25
-18 17
-16 23
-15 18
-12 11
-11 24
-10 29
-9 12
-6 5
-5 30
-4 35
-3 6
1 36

result:

ok 

Test #8:

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

input:

RLRLRLRLRLRLRLRLRLRU

output:

-1 -2
2
-3 -2
1 -2

result:

ok 

Test #9:

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

input:

DLRDLRDLRDLRDLRDLRD

output:

-12 13
18
-25 2
-23 4
-21 6
-19 8
-17 10
-15 12
-12 11
-10 9
-9 12
-8 7
-7 10
-6 5
-5 8
-4 3
-3 6
-2 1
-1 4
1 2

result:

ok 

Test #10:

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

input:

LULULULULULULULULUL

output:

19 -18
18
1 -2
2 1
3 -4
4 -1
5 -6
6 -3
7 -8
8 -5
9 -10
10 -7
11 -12
12 -9
13 -14
14 -11
15 -16
16 -13
17 -18
18 -15

result:

ok 

Test #11:

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

input:

DRDRDRDRDRURURURURUR

output:

-20 -19
19
-20 -21
-18 -23
-17 -20
-16 -25
-15 -22
-14 -27
-13 -24
-12 -29
-11 -26
-10 -7
-9 -28
-8 -5
-7 -8
-6 -3
-5 -6
-4 -1
-3 -4
-2 1
-1 -2

result:

ok 

Test #12:

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

input:

ULDRDRDRDRDRDRDRLRU

output:

-16 -17
17
-33 -32
-19 -16
-18 -21
-16 -15
-12 -23
-11 -20
-10 -25
-9 -22
-8 -27
-7 -24
-6 -29
-5 -26
-4 -31
-3 -28
-2 -33
-1 -30
1 -32

result:

ok 

Test #13:

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

input:

URDLRLULRULRULRDLRU

output:

-12 -13
17
-25 -24
-23 -4
-21 -6
-19 -8
-17 -16
-16 -7
-12 -11
-10 -17
-9 -12
-7 -16
-6 -5
-5 -8
-4 -3
-3 -6
-2 -25
-1 -4
1 -24

result:

ok 

Test #14:

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

input:

DRDRDRLULULUDRDRDRL

output:

16 15
18
5 24
6 3
6 27
7 22
8 25
9 10
10 23
16 13
18 11
19 14
20 9
21 12
23 10
28 1
29 4
30 -1
31 2
33 0

result:

ok 

Test #15:

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

input:

LR

output:

-1 0
1
-3 0

result:

ok 

Test #16:

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

input:

L

output:

1 0
0

result:

ok 

Test #17:

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

input:

R

output:

-1 0
0

result:

ok 

Test #18:

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

input:

LURDRULRLRLRLRLRLRU

output:

-7 -8
8
-15 -2
-9 -8
-8 -5
-4 -13
-3 -6
-2 -1
-1 -12
1 -2

result:

ok 

Test #19:

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

input:

D

output:

0 1
0

result:

ok 

Test #20:

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

input:

RDRUDLRDUDURDULRLUDL

output:

11 10
16
1 18
2 -1
2 21
5 6
12 7
13 10
14 5
14 15
15 8
16 3
16 17
17 6
18 1
18 19
19 16
21 18

result:

ok 

Test #21:

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

input:

U

output:

0 -1
0

result:

ok 

Test #22:

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

input:

LULRDRLULDR

output:

-9 8
10
-17 14
-16 -1
-15 4
-14 15
-13 10
-11 8
-10 11
-6 3
-5 10
-3 4

result:

ok 

Test #23:

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

input:

LRULDUDLURUDRDRLUDR

output:

-13 12
17
-25 2
-24 -1
-24 25
-19 8
-18 19
-17 14
-16 7
-16 17
-15 12
-12 15
-11 12
-6 3
-6 21
-5 18
-4 1
-3 4
-1 2

result:

ok 

Test #24:

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

input:

LRLDRUDRU

output:

-5 -6
7
-7 -6
-6 -9
-3 -6
-2 -11
-2 -1
-1 -8
1 -10

result:

ok 

Test #25:

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

input:

RURDRDLDLDL

output:

11 10
10
1 2
2 -1
3 4
4 1
12 13
13 10
14 5
15 12
16 3
17 6

result:

ok 

Test #26:

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

input:

LD

output:

1 2
1
-1 2

result:

ok 

Test #27:

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

input:

DRDL

output:

4 3
3
4 1
6 -1
7 2

result:

ok 

Test #28:

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

input:

DRURULULDURURUL

output:

14 -13
14
5 -6
6 -23
6 -3
7 -8
8 -5
14 -15
16 -9
17 -14
18 -7
19 -10
24 -1
25 -4
26 1
27 -2

result:

ok 

Test #29:

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

input:

URLUDULD

output:

4 5
6
-1 8
1 6
2 1
2 9
4 7
7 6

result:

ok 

Test #30:

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

input:

RDRULDULRDRDUR

output:

-11 -10
13
-19 -4
-17 -6
-16 -17
-16 -3
-10 -13
-9 -10
-8 -5
-7 -12
-4 -19
-3 -4
-2 -21
-2 1
-1 -18

result:

ok 

Test #31:

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

input:

DUDLUDUDRLDRL

output:

6 5
9
1 2
2 -1
3 4
4 1
4 9
6 3
6 7
11 2
13 0

result:

ok 

Test #32:

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

input:

DLURURU

output:

-6 -7
6
-9 -8
-8 -3
-6 -9
-2 -1
-1 -4
1 -2

result:

ok 

Test #33:

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

input:

RLUDUDRDLRDLRDLURLDL

output:

13 12
17
1 22
2 -1
3 4
4 23
5 6
7 8
11 12
12 9
12 15
15 12
16 7
17 10
18 5
19 8
20 3
21 6
25 22

result:

ok 

Test #34:

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

input:

ULUDLRLULD

output:

6 7
8
-1 12
1 4
2 13
3 8
4 3
4 11
6 9
11 4

result:

ok 

Test #35:

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

input:

RDLRL

output:

impossible

result:

ok 

Test #36:

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

input:

RURDULDLRURDRU

output:

-11 -12
13
-19 -18
-17 -8
-16 -19
-10 -9
-9 -12
-8 -17
-8 -7
-7 -10
-4 -3
-3 -18
-2 -23
-1 -4
1 -22

result:

ok 

Test #37:

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

input:

RLDLU

output:

3 -4
4
-1 -6
1 -4
2 -7
5 -4

result:

ok 

Test #38:

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

input:

URDRLD

output:

4 5
5
-1 2
4 7
6 1
7 6
9 2

result:

ok 

Test #39:

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

input:

DRLDUDRLDULRURDUL

output:

10 -9
15
3 -4
5 -12
6 -15
6 -3
7 -10
8 -13
8 -5
10 -11
13 -10
15 -12
16 -1
17 -4
18 -19
18 1
19 -2

result:

ok 

Test #40:

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

input:

RDUDUDRDRUDUR

output:

-7 -6
8
-6 -9
-6 -3
-5 -6
-4 -11
-3 -8
-2 -13
-2 1
-1 -10

result:

ok 

Test #41:

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

input:

DRDRDRDRDRDRDRDRDRDR

output:

-20 19
19
-20 17
-18 15
-17 18
-16 13
-15 16
-14 11
-13 14
-12 9
-11 12
-10 7
-9 10
-8 5
-7 8
-6 3
-5 6
-4 1
-3 4
-2 -1
-1 2

result:

ok 

Test #42:

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

input:

URDLURD

output:

-6 7
6
-11 4
-10 13
-6 9
-4 3
-3 8
1 12

result:

ok 

Test #43:

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

input:

ULURDRDRLURDURDLDRLR

output:

impossible

result:

ok 

Test #44:

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

input:

ULURLDRUDUDLULRDLDUD

output:

impossible

result:

ok 

Test #45:

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

input:

ULDULRURLURDRDLURD

output:

-14 15
17
-27 4
-26 29
-21 20
-20 23
-19 18
-17 16
-16 11
-16 19
-14 17
-10 21
-9 18
-7 20
-6 5
-5 22
-4 3
-3 6
1 28

result:

ok 

Test #46:

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

input:

DRULDUDRDLURDURULDR

output:

-16 15
17
-31 28
-30 -1
-25 8
-24 25
-21 18
-20 9
-20 21
-16 13
-14 19
-13 14
-10 7
-9 10
-6 3
-6 27
-5 24
-4 29
-3 26

result:

ok 

Test #47:

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

input:

UDRLULRDRDLULR

output:

-10 -9
13
-21 0
-19 -16
-18 1
-15 -6
-13 -10
-12 -5
-10 -11
-10 -7
-7 -10
-6 -15
-5 -6
-4 -17
-3 -14

result:

ok