QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#546390#8687. Toy Train Tracksucup-team1005AC ✓3ms3824kbC++202.1kb2024-09-04 00:24:512024-09-04 00:24:51

详细

Test #1:

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

input:

0 4

output:

LLLL

result:

ok correct, length = 4

Test #2:

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

input:

1 4

output:

LLLL

result:

ok correct, length = 4

Test #3:

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

input:

2 4

output:

SLLSLL

result:

ok correct, length = 6

Test #4:

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

input:

3 4

output:

SLLSLL

result:

ok correct, length = 6

Test #5:

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

input:

4 4

output:

SSLLSSLL

result:

ok correct, length = 8

Test #6:

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

input:

0 5

output:

LLLL

result:

ok correct, length = 4

Test #7:

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

input:

0 6

output:

LLLL

result:

ok correct, length = 4

Test #8:

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

input:

0 7

output:

LLLL

result:

ok correct, length = 4

Test #9:

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

input:

0 8

output:

LLLL

result:

ok correct, length = 4

Test #10:

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

input:

0 9

output:

LLLL

result:

ok correct, length = 4

Test #11:

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

input:

0 10

output:

LLLL

result:

ok correct, length = 4

Test #12:

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

input:

0 11

output:

LLLL

result:

ok correct, length = 4

Test #13:

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

input:

0 12

output:

LRLLRLLRLLRL

result:

ok correct, length = 12

Test #14:

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

input:

0 13

output:

LRLLRLLRLLRL

result:

ok correct, length = 12

Test #15:

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

input:

0 14

output:

LRLLRLLRLLRL

result:

ok correct, length = 12

Test #16:

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

input:

0 15

output:

LRLLRLLRLLRL

result:

ok correct, length = 12

Test #17:

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

input:

0 16

output:

LRLRLLRLLRLRLLRL

result:

ok correct, length = 16

Test #18:

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

input:

0 17

output:

LRLRLLRLLRLRLLRL

result:

ok correct, length = 16

Test #19:

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

input:

0 18

output:

LRLRLLRLLRLRLLRL

result:

ok correct, length = 16

Test #20:

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

input:

0 19

output:

LRLRLLRLLRLRLLRL

result:

ok correct, length = 16

Test #21:

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

input:

0 20

output:

LRLRLRLLRLLRLRLRLLRL

result:

ok correct, length = 20

Test #22:

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

input:

0 21

output:

LRLRLRLLRLLRLRLRLLRL

result:

ok correct, length = 20

Test #23:

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

input:

0 22

output:

LRLRLRLLRLLRLRLRLLRL

result:

ok correct, length = 20

Test #24:

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

input:

0 23

output:

LRLRLRLLRLLRLRLRLLRL

result:

ok correct, length = 20

Test #25:

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

input:

0 24

output:

LRLRLRLRLLRLLRLRLRLRLLRL

result:

ok correct, length = 24

Test #26:

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

input:

0 25

output:

LRLRLRLRLLRLLRLRLRLRLLRL

result:

ok correct, length = 24

Test #27:

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

input:

0 26

output:

LRLRLRLRLLRLLRLRLRLRLLRL

result:

ok correct, length = 24

Test #28:

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

input:

0 27

output:

LRLRLRLRLLRLLRLRLRLRLLRL

result:

ok correct, length = 24

Test #29:

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

input:

0 28

output:

LRLRLRLRLRLLRLLRLRLRLRLRLLRL

result:

ok correct, length = 28

Test #30:

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

input:

0 29

output:

LRLRLRLRLRLLRLLRLRLRLRLRLLRL

result:

ok correct, length = 28

Test #31:

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

input:

0 30

output:

LRLRLRLRLRLLRLLRLRLRLRLRLLRL

result:

ok correct, length = 28

Test #32:

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

input:

5 5

output:

SSLLSSLL

result:

ok correct, length = 8

Test #33:

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

input:

6 6

output:

SSLLSSRLLSLS

result:

ok correct, length = 12

Test #34:

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

input:

7 7

output:

SSLLSSRLLSLS

result:

ok correct, length = 12

Test #35:

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

input:

8 8

output:

SSSSSLLRLSSSLRLL

result:

ok correct, length = 16

Test #36:

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

input:

9 9

output:

SSSSSLLRLSSSLRLL

result:

ok correct, length = 16

Test #37:

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

input:

10 10

output:

SSSSLLSSSSRLRLLSLRLS

result:

ok correct, length = 20

Test #38:

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

input:

11 11

output:

SSSSLLSSSSRLRLLSLRLS

result:

ok correct, length = 20

Test #39:

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

input:

12 12

output:

LRLLRLLRSSSSSSLLSSSSSSRL

result:

ok correct, length = 24

Test #40:

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

input:

13 13

output:

LRLLRLLRSSSSSSLLSSSSSSRL

result:

ok correct, length = 24

Test #41:

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

input:

14 14

output:

SSSSSSLLSSSSSSRRLLRLLRLSLRLS

result:

ok correct, length = 28

Test #42:

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

input:

15 15

output:

SSSSSSLLSSSSSSRRLLRLLRLSLRLS

result:

ok correct, length = 28

Test #43:

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

input:

16 16

output:

LRLRLLRLLRLRSSSSSSSSLLSSSSSSSSRL

result:

ok correct, length = 32

Test #44:

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

input:

17 17

output:

LRLRLLRLLRLRSSSSSSSSLLSSSSSSSSRL

result:

ok correct, length = 32

Test #45:

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

input:

18 18

output:

SSSSSSSSLLSSSSSSSSRRLRLLRLLRLRLSLRLS

result:

ok correct, length = 36

Test #46:

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

input:

19 19

output:

SSSSSSSSLLSSSSSSSSRRLRLLRLLRLRLSLRLS

result:

ok correct, length = 36

Test #47:

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

input:

20 20

output:

LRLRLRLLRLLRLRLRSSSSSSSSSSLLSSSSSSSSSSRL

result:

ok correct, length = 40

Test #48:

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

input:

21 21

output:

LRLRLRLLRLLRLRLRSSSSSSSSSSLLSSSSSSSSSSRL

result:

ok correct, length = 40

Test #49:

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

input:

22 22

output:

SSSSSSSSSSLLSSSSSSSSSSRRLRLRLLRLLRLRLRLSLRLS

result:

ok correct, length = 44

Test #50:

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

input:

23 23

output:

SSSSSSSSSSLLSSSSSSSSSSRRLRLRLLRLLRLRLRLSLRLS

result:

ok correct, length = 44

Test #51:

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

input:

24 24

output:

LRLRLRLRLLRLLRLRLRLRSSSSSSSSSSSSLLSSSSSSSSSSSSRL

result:

ok correct, length = 48

Test #52:

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

input:

25 25

output:

LRLRLRLRLLRLLRLRLRLRSSSSSSSSSSSSLLSSSSSSSSSSSSRL

result:

ok correct, length = 48

Test #53:

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

input:

26 26

output:

SSSSSSSSSSSSLLSSSSSSSSSSSSRRLRLRLRLLRLLRLRLRLRLSLRLS

result:

ok correct, length = 52

Test #54:

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

input:

27 27

output:

SSSSSSSSSSSSLLSSSSSSSSSSSSRRLRLRLRLLRLLRLRLRLRLSLRLS

result:

ok correct, length = 52

Test #55:

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

input:

28 28

output:

LRLRLRLRLRLLRLLRLRLRLRLRSSSSSSSSSSSSSSLLSSSSSSSSSSSSSSRL

result:

ok correct, length = 56

Test #56:

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

input:

29 29

output:

LRLRLRLRLRLLRLLRLRLRLRLRSSSSSSSSSSSSSSLLSSSSSSSSSSSSSSRL

result:

ok correct, length = 56

Test #57:

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

input:

30 30

output:

SSSSSSSSSSSSSSLLSSSSSSSSSSSSSSRRLRLRLRLRLLRLLRLRLRLRLRLSLRLS

result:

ok correct, length = 60

Test #58:

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

input:

100 100

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLLRLLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSLLSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSRL

result:

ok correct, length = 200

Test #59:

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

input:

1000 1000

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR...

result:

ok correct, length = 2000

Test #60:

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

input:

10000 10000

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR...

result:

ok correct, length = 20000

Test #61:

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

input:

100000 100000

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR...

result:

ok correct, length = 200000

Test #62:

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

input:

91457 90232

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR...

result:

ok correct, length = 181688

Test #63:

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

input:

60881 94085

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR...

result:

ok correct, length = 154964

Test #64:

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

input:

699 59775

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 60472

Test #65:

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

input:

44185 9850

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 54034

Test #66:

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

input:

71274 9113

output:

LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR...

result:

ok correct, length = 80386

Test #67:

score: 0
Accepted
time: 2ms
memory: 3764kb

input:

75200 46503

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 121702

Test #68:

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

input:

64785 60434

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 125218

Test #69:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

56295 49335

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 105628

Test #70:

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

input:

71249 6102

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 77350

Test #71:

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

input:

96197 92978

output:

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS...

result:

ok correct, length = 189174

Test #72:

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

input:

2 10

output:

LLRLRLLSLRLS

result:

ok correct, length = 12

Test #73:

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

input:

2 6

output:

LLRLLSLS

result:

ok correct, length = 8

Extra Test:

score: 0
Extra Test Passed