QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#503783#4765. Game Rankxiaowuc1AC ✓48ms39740kbJava82.6kb2024-08-04 01:09:392024-08-04 01:09:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 36ms
memory: 37348kb

input:

WW

output:

25

result:

ok single line: '25'

Test #2:

score: 0
Accepted
time: 34ms
memory: 38148kb

input:

WWW

output:

24

result:

ok single line: '24'

Test #3:

score: 0
Accepted
time: 35ms
memory: 39560kb

input:

WWWW

output:

23

result:

ok single line: '23'

Test #4:

score: 0
Accepted
time: 42ms
memory: 38448kb

input:

WLWLWLWL

output:

24

result:

ok single line: '24'

Test #5:

score: 0
Accepted
time: 36ms
memory: 38392kb

input:

WWWWWWWWWLLWW

output:

19

result:

ok single line: '19'

Test #6:

score: 0
Accepted
time: 41ms
memory: 36912kb

input:

WWWWWWWWWLWWL

output:

18

result:

ok single line: '18'

Test #7:

score: 0
Accepted
time: 40ms
memory: 36988kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

output:

Legend

result:

ok single line: 'Legend'

Test #8:

score: 0
Accepted
time: 29ms
memory: 39428kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

output:

1

result:

ok single line: '1'

Test #9:

score: 0
Accepted
time: 30ms
memory: 38396kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWLLLLL

output:

Legend

result:

ok single line: 'Legend'

Test #10:

score: 0
Accepted
time: 40ms
memory: 37096kb

input:

WWWWWWWWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLW

output:

19

result:

ok single line: '19'

Test #11:

score: 0
Accepted
time: 37ms
memory: 38196kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

output:

5

result:

ok single line: '5'

Test #12:

score: 0
Accepted
time: 45ms
memory: 38876kb

input:

WWWWWLWWLWLL

output:

20

result:

ok single line: '20'

Test #13:

score: 0
Accepted
time: 34ms
memory: 39740kb

input:

WLWLWLWLWLWLWLWL

output:

22

result:

ok single line: '22'

Test #14:

score: 0
Accepted
time: 26ms
memory: 38316kb

input:

WWWLLWWWLLLLWWWWLLLLLLWWWWLLLLLLLLLWWWLLLLLWWWWWW

output:

17

result:

ok single line: '17'

Test #15:

score: 0
Accepted
time: 39ms
memory: 39200kb

input:

WWWWWWWWWWWWWWLLW

output:

16

result:

ok single line: '16'

Test #16:

score: 0
Accepted
time: 40ms
memory: 39696kb

input:

L

output:

25

result:

ok single line: '25'

Test #17:

score: 0
Accepted
time: 42ms
memory: 36964kb

input:

WLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWLWL...

output:

20

result:

ok single line: '20'

Test #18:

score: 0
Accepted
time: 44ms
memory: 38548kb

input:

WWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLLWWWWWLLLLL...

output:

6

result:

ok single line: '6'

Test #19:

score: 0
Accepted
time: 38ms
memory: 37172kb

input:

LLWLLLWWWLWWLWWLLWWLWWLLLWWLLWLLLWLWLLLWLLLWWWLWLWLLLLLWWLWLWWWWLLWLLWLLLLLWLWLLWWLLLWLLLLLWLWLLLWLLWWLWWWLWLWLLLLWLWLLLLLWLWWWWLWWWWLLWLLLLLWLWLLWWWLWLWLLLWLLLWLLWLLWLWLLLLWLWWWLWLWWLWWWLLLWWWLWLLWWLWLWLWLWWLWLLLLLLLLWWWWWWLWLWWWWLLLLWWWWLLLLLLLWLWLWLLWWLLWLLLLLLLWWLLLWLLWLWWWWWWLLWLLLLWWLLLLWWLWWL...

output:

6

result:

ok single line: '6'

Test #20:

score: 0
Accepted
time: 27ms
memory: 38752kb

input:

LLWWLLWWWLLLWLWLWLLLWWWWLLWWWWWLWLLLLWLWLLLWLLLWWLWLLLLLLLWLWLWLLWLLLWLLWWWWWWWLLLWLLWWLWLLLLWLLLWWWWWWLLLLWLLLLLWLWLLLWWLLLWWWLWWLWWWLLLLWLWLWLLWLWWWLLLLWWLWLLLWWWWWWLWLLWLWLLWLLLWWWLLLWLWLWLWWWWLLWWLLLWLLLLWLWWLWLLLLLWWWWLWLWWWWLWWLWLWWLLWLWLWLLLLLLWWLLWLLLLWLLWLWLWLLWLLLLWWLLWWWLLLLLWWWWWWLWWLWLL...

output:

5

result:

ok single line: '5'

Test #21:

score: 0
Accepted
time: 40ms
memory: 37424kb

input:

WLWWLLLWWLWLLWLLLLWLLWWWLLLWWLWLWLWLLWWLWLLLLLWWWLWLLWWLLWLWLWLWWLWWLWWWLLLWWLLWLWWLLWWLLLLLWWWLLWWLLLLWLLLLLWLLLWWLWLWWWWLLWLLWLWLLLLWWLLWWLWWWLLLWLLLLLLLWWLWWWWLLWLWLLWLWLLLLLLWWLLLWLWLWLWWWLLWWLWLWLLLLLLLWWWWLLLWWLLWLLLWWWWWWWLLLWWLLWWWWWLWLWLLWLWLWWLWWLLLLWWWWLWWWWLWLLLWLLLLWWWWLLLLLLLWWLLWLLWWL...

output:

14

result:

ok single line: '14'

Test #22:

score: 0
Accepted
time: 37ms
memory: 37272kb

input:

LWWLLWLWLLLLLWWLWLLWWLWLWLWLWLWLWWWWLLLLLLLWWLLLWLWWLLLLLWWLLWWLWWWLWLWWLWWWWWLWLLWWLWLLWWWWLWWLLWLWLLWLWLWWLWWWLLWLLWWLWLLWLWWLLWWWWWLLWLWWWLLWWWLLWWLWWWLWWWWWLLLWLLLLLLLWLLWLWWWWLLLLLWLLLLLWWLWWWWWWLLWLLLLLLWLWWWWWLWLLLWWWWWLWLLLLWLWLLWWWLWLWLLLWWLLLWWWWLWLWLLWWWWLLLWWWLWLWLWLLLWLWLLLWWWLWWWWLLLLL...

output:

Legend

result:

ok single line: 'Legend'

Test #23:

score: 0
Accepted
time: 32ms
memory: 38404kb

input:

LWWWWLLLWWWWWWWWWWWLLLLWWWLLLLLLWWWWLWLLWLWWLWWWLWLLWWWLLLLWLLWWWLWWWLWWWLLLLWLWWWLLWLLLWLWWWWLWLLLLLWWLWWWWLWLWLWWLWLLWLLWLWLWWWLWLLWLLWWLWLLLLWLLWLLWWLWLLLLLLLWWWLLLWLLWLWLWLLWWWWLWWWWWWWWLWLWWWLWLWLWWLWLLWWLLWLWLLWLWLLLLWLWLLLLWLWLLWWWLLLWLWWLLLLLLLLLWLLLWWWLWWWLWWLWLWWWLLLWWWLLLLLWWWWLLLLLLWWWWL...

output:

6

result:

ok single line: '6'

Test #24:

score: 0
Accepted
time: 34ms
memory: 36924kb

input:

LLWLLLWLLWLLWLLWLLWLWLLLLLLLLLLWLWWWLLLLWLWLWWWLWWWWLLWWWWLLLLLLLLWLWWLWWLWWLLLLLLLWWLLLWWLWLLLWWLWLWWWWWWWWLWWWWLWLWWLLWLLWLWLWLWLLLWWLLWWWWLLLLWWWLLWLLWLLWLWLWWLLLWLLWLWWWLLWWLWWLLWWLLLWLWLWLWWWLWWLWLLLLLWWLLLWLLLLLWWLWLWWWLWLLLWLWLWLWLLLLLLWLLWLLWWLLLWLLWWLLLLLLLWLLWWWLLWLWWLLWLLWWLLLLLWWLWLLWLLW...

output:

7

result:

ok single line: '7'

Test #25:

score: 0
Accepted
time: 37ms
memory: 37128kb

input:

LLLWLWLLLWLLWLLLLWWLWLWWWWWLWWLLWWWLWLWWLWLWLWWWLLLWWLLLLWWLWWLWWWLLWWWLLLWLWLLLWLWWLWWWLLWLWLWLLWWWWWWLLLLWLLWLWWWWWWLWLLLWLLLLWLLWWLWLLLWLLWWLLWLLLWWLWWLLWLWWWWWLWWWWWLWWWLLLLWLLWLWWLWWLLWLLWWLLWWWWWWWLLLWWWWWLWLLWWWWLWWLWWLLWLLLWWLWLWLLLWLWLLWLLLWWWLWWWLWWWWWWWWLWLLLLLWWLWWWWWLLLWWLWLWLWLWLWWLWLL...

output:

Legend

result:

ok single line: 'Legend'

Test #26:

score: 0
Accepted
time: 48ms
memory: 36916kb

input:

LLWWLWLWWWWLLWLWWWLLWWLLWWLWLLLLWWLWLLLLLWLLLWLWLWWWLLWWLWWWWLLWLWLWLWLWLLWWLLLWLLLWWWWLWWWLLWLWWWLLLLLWLLLLWWWLWLLWLWWLWLLWWLLLLLLLWWLWWWLWWLWLLWWWWLLWLLWLWLLWWLLLWLWLLWLWWWLLWLLLWLWLWLLLLLLWLLLLWWLLLLWLWLLLWLLWLLLLWWLLWWLLLLWWWLLLLLWLLLLWWLLLLLWLWWLLLLLLLLWWWLWWLLLWWWWLLLLLWWWWLLWWLWLLLWLLLLWLLLLW...

output:

6

result:

ok single line: '6'

Test #27:

score: 0
Accepted
time: 33ms
memory: 39396kb

input:

WWLLLLWLWWLLWLWLLLWLLLWLWLWLLLLWLLWWWWWWWLLLWLWLLLWLLLWWLWWLLWWLLWLWLWWLWWWLWLLWWLWLLLLWLLWWLWLWLWLWLLLLWLLWLLWLWLWLLLLLLLLWLLWLWWWLWLLWWWWLLWLLWLLWWWLWWWLWWLLWLWLLWWWLLLWLWWLWWWWLLWLWLLWLLWLLLWLLLWWLLLWWWWWWLWLLWWWWWLLWWWWWLWWLLLLWLLLLLWWLWWLWLLLWLLLLWLLLLLLWLLWLLLLLLLLWLLLLLLWWLLLWLWLWWLWWWWWLLLWW...

output:

19

result:

ok single line: '19'

Test #28:

score: 0
Accepted
time: 29ms
memory: 37052kb

input:

WWLLWLWWWLWLWLWLLWLWLWLLLWWLWWWLWWWWWLWLLWWWLWLWLLWWWLLLWWLLLLLWLLLLWWLWWWWWWWLWWWWLWWWLLWLLWLLLWWLLWWWWWWLWLLLWLWWLWWWLLLLWWLLLLWWLWLLWWWLLWLLLWLWWLLLLLLLWWWLLWWWLLWWLLLLLWWLWLLLWWLWLLLLLLWLLLLWWLLWWLWWLWWWLLWWLWWLLLWWLLLWLWLLWLWWWWWWWLWWWLWLWWWWLLLLWLWLLLWLLWWLWLLLLLLWWLLLLLLWLLLWLWWLLLLWLWWWLLWLL...

output:

7

result:

ok single line: '7'

Test #29:

score: 0
Accepted
time: 32ms
memory: 36568kb

input:

LWWWWWLLLWWLWWWLLLLWWWWWLWLWWLLWWWLWLWLWLWWLWLWWWLLWLLWLLWLLLWWWLLLLWWLLWWLWWLLLLLWWLWWLLWLWLLWWWLWLLLLLWLWLWLLWLLWLWWLWLLWLLLLWLWWLWLLWLLWLLLLLLWWLWLWLLWLLWLLLWWLWWWLWWLLLLWLWWLLWWLLWLWWLWWLLLWWLLLWWWWWWWWWWLWLWLLLWLLWLLWWLLWWWLLWLWLLLLLLWLLWWLLLWLWWLLWWLLWLLWLLWLLLWLWLLWLLLLWWLLWWLWLLWLLLWLLWLWLWL...

output:

20

result:

ok single line: '20'

Test #30:

score: 0
Accepted
time: 36ms
memory: 37160kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

output:

6

result:

ok single line: '6'

Test #31:

score: 0
Accepted
time: 31ms
memory: 38148kb

input:

W

output:

25

result:

ok single line: '25'

Test #32:

score: 0
Accepted
time: 34ms
memory: 38524kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWWWWWWWWWWWWWWW...

output:

1

result:

ok single line: '1'

Test #33:

score: 0
Accepted
time: 33ms
memory: 38396kb

input:

LLLWWLWLWLWWWLWWWLLLWWLWWLWWLWLLWWWLLLLLWLWWWWLLWLWLLWWLLWLWLWLLWWWWWLLWLLLWLLLLLLWLWLWWLLWLLWLWWLWWWWWWLLWWWLLWLLWWLWWLLLLWWLLWWWWLLLLLWWWWWWLLLLLLLWWLWLWLWLLLLWLWLWLLLWWWWLLWLLLWWWWLLWWLLLWWLLWLWLWLLWWLWLLLLWWLWLWWWWWLLLLWLLWLLWLWWWLWLWLWLLLWWWLLWWLLLWLLLLLWLWWWWWLLLWWLLWLLWWLWWLLWLLWWWLLLWWLLWWLL...

output:

15

result:

ok single line: '15'

Test #34:

score: 0
Accepted
time: 36ms
memory: 37020kb

input:

WLLWWLLLLLLLWWLWWLLLLLWWWLLWLLLLWWLLLWLLLLWWWWLLLWWWLWLLLLWLLLWWWLWWWLLLWWLWWLWWLLLLLWLWWLLWLLLLLWLWWWWLLLWWLLWLLLWLLLLLWWLLLLLLWLLWWWWLWWWWLLWLLWLLWWWLLLLWLLLLLLWLWWWWLWLLWWWWLWLLLWWWWWLLLLWWWWWWWLLLWWWLLLLLLWLWLLLLLLLLLLWWWWLLWWLLWWLWWWWWLLWWWWLLLLWLLWLWLLWLWWWWLLLLWLWLLLWLLWWWLLWLWWWWLLLLLLWLWWLL...

output:

13

result:

ok single line: '13'

Test #35:

score: 0
Accepted
time: 30ms
memory: 39004kb

input:

LWLWLLLLWWLLLWLLWWLWWWWLWLLWLWWLWLWWLLWWLLLWWLLLLWWLLWWWWWWWLLWLWLLWWLLLLLLLLLLWWWWWLWWWLLLWLLLLLLLLLWLWLLLWLWLWLWLWLLLWWWWLWLWLLWWLLLWLWLWWWLLLWLWWLLLLWWWWWWWLLLWLWWLLWLWLLWLWWLWWWLWLLLWWLLLWWLLLLLLLLLLWLWLWLLWLWLWLLWWWLWLLLLLWWWWLLLWWWLLLLWWLLWWWLLLWLWLLLWWWLLWWWLLLWLLWLWWLLWLLWWLLWWWLLWWLLLLWLLWL...

output:

12

result:

ok single line: '12'

Test #36:

score: 0
Accepted
time: 44ms
memory: 38720kb

input:

WLWLWWWWWLLWWWLWWWWLWLWWWWLWWWLWLLLLLWLWLLWWLWLWWLWWLLLWLWLWWWLLLWLWWWLWWLLLWWLLWWWWLWWLWWWLWWWWLWLWWLWLLWLLWWWWWLLLLWWWLLWWLLWWLLLLLLWLWWWLWWWLLLWWLLWLLLWLLLWLLWLWLWWLLLWWLLWWWLWLLLLWWLLWWWWWLLLWLLWWWLLLWWWLLLWWLLWWLLWLWLLLLWWLLLLWWWWLWLWLWLWLWLWWLLLWWWLLLLLLLWLWLLLLLLLLWWLWLWWLLWLWLLWWWWLWLWLLWWLL...

output:

11

result:

ok single line: '11'

Test #37:

score: 0
Accepted
time: 47ms
memory: 38208kb

input:

LWWWLWWWWLWWWWLLLWWWLLLWWWLLWLLWLLWLLWLLLLWLLLWWLWLWWLWLWLWWWWWLLWWWWLWLWWLWWWWLLLWWWLLLWLLLLLLLWWLLLWWWLWWWLLWWLLLLLWWLLWLWLLWLWLLLLLWLWWLWWLWLWWWWWWWWLWLWLWLWLLWLLLWWWLLLLLLWWWWLLWLLWWLWWWWLWLLLLLLWWLWWLLWLLWWLWLWLWLWLLWWLLWWWWLWWLWWWWWLLWLLWWWLWWWLLWLWWWLLLWLWLWWLLLWLLLWWLLWWWWLLLLLLLWLWLLWWLWWWW...

output:

10

result:

ok single line: '10'

Test #38:

score: 0
Accepted
time: 41ms
memory: 36876kb

input:

LWWLWWWLWLWLWLWLWLLWWWWLWLWLLLWWWWWLLLWWWWLLLLLWWLWLLLLWWLWWLLLLLLWLLLWWWLLLWLLWWWWWLWWLWWWWLLLLLLWLWWWWWLWWWLLWWWLLWLWWWLWLWLLLWLWWLWWLLLWLWWLLLWWLLWWWWWLWWWLLLWLWWWWWLLLWLLWLWWWWLLWWWLWWLWWLLLWLLWWWLLWLWWWLLWWLLLWLWLLWLWLWLWLLWWLLWLLWWLWWLWLLWWLLLWWWLLLLLWLLWLWLWLWLWLLLLWLWWLLWWLWLLWLLLLLWLWWWLWLL...

output:

9

result:

ok single line: '9'

Test #39:

score: 0
Accepted
time: 40ms
memory: 37052kb

input:

WLLLLWWLLLWLWWWWWLWLWWWLLLWWWLWLLWLLWLWWWLWWWLLWLLLLWLWLLWLLWWWWWLLWWLWWLLWWWWLLLWLLLWLLWLLLWLWLWWLWWLWLLLLWLLLLWWWWLLWWLLWLLLLLLLWWWLLWWLWLLWWWLWWLWLLWLWWLWLWWLWWLWWWWLLWWLLLLLWWWWWWLWWLWLWWWWWWWWWLLWWLLLLLWWWWWWWLLWWLWWLLWWLWWWLWWWLLLWWLLLWLLWLLLLLWLLWWLWWLWWWLLLWWWLLWWWWLLLWWLLWWLLLWWLLWLLLLWLLLW...

output:

8

result:

ok single line: '8'

Test #40:

score: 0
Accepted
time: 30ms
memory: 37256kb

input:

LLWWWLLWLWWWLWLWLWWLWWLWWLLWWWLWLWLLWWWWWWWWWWWLLLWWWLWWWWLWWWLWLLWLLWLLLWWWLLLWWLLLWLLLWLWWLLLWWLWLLWWWWWWLLLWWLLWLLWWLLWLLLWLLLWLLWLLWWWWLLWWWWWWLLWLLWWWWLWWWLLLWWLWWWWWLWWLWLWLLLWLLWWLWLLWLLLLLWWWWWWLWLWLLWLWWWWLWLLLWWLLWLLWWWLWLLLLLLLWLWWWWLWWWWWLLLLLWWWWLWLWWLLWWWWWWLWLWWLWWWLLWLLLWLLLLWLLWWWLL...

output:

4

result:

ok single line: '4'

Test #41:

score: 0
Accepted
time: 42ms
memory: 38652kb

input:

LLWWWWWWLLWLWLWLWLWLWWLWWWWLLWLWLLWLWWLLLWLWLWLWWWWWWWLLLLLLWLLLLLWWLWWLWLLLLLWLLWLWWWLWLLWLLLLLLLWLLWWWLWLWWLLWWLLWLWLLLLLWWLLWLLLWWWWWLWLWWWLLLWLWLLLWLWWWLWWLLWLLLLLLWLWLLLWWWWLLLLWLWWWWLLLWLLLLWWLLWWLLLLLWWLWLWLWWLWWLLLWWWLLWLWWLLWLWWWWLWLLWLLWWWLLWLWLLWWLLLLWWLLLWLWWLWLWWWLLWWLWWWWWWLLLLWWWWWWLL...

output:

3

result:

ok single line: '3'

Test #42:

score: 0
Accepted
time: 36ms
memory: 36952kb

input:

WWLWWWWLWLWWWWWWWWWWWWLWWWWWLLWLWLLLWLLWLWLLLLLWLLWLWLWLWWLLWLLWWLWLWLLWWWWWWLLLWWWWWLLLWLWLLLLWWLLWWLLWWWWLLWLWLWLWWLLLLLWWLWLWWLLLLLWWLLLWLLLWLLLLWWLWLLWWLLWLLWWLLWWWWLWLWWLLLLWLLWWWLLLLLWLWLWWLWWWWWLLLWWWWWWWLWWLWWLLWWLWWWLWWWLLWLWWWLWWWWWWLWWLWWLLWLLWWLLWWLWLWLWLLWLLWLLLLWWLLLLLLWLWLLWWWLLWWWLLW...

output:

2

result:

ok single line: '2'

Test #43:

score: 0
Accepted
time: 29ms
memory: 37100kb

input:

WLWWLWWWLWLLLWLWLLLWWWWWLLWWLWWLWLLWLLWLLWWLLWLWLLWWWLWWLWWWLLLWWLWWWLWLLWWWWWLLWWWWWLLLWLLWWLWWLLLLWWLLLWLWLWLLLWWWLWWLWLWLWLWLWWWWWWWWLWWLLWLWLLLWLLLLWLWWWWWWWWWLWWWWWWLLLLLWWLLWLWWWLWLLLLLWLLWWWWWLWLLWLWLLLWLLWLLWWWWWLLWLWLWWWWWWLWWLLLWLLWWWWLWLWWLWLWLLWLWWWLLLLWWWLWWLLLLLLWWWWLWLWLWWWWLLWLWWWLLW...

output:

Legend

result:

ok single line: 'Legend'

Test #44:

score: 0
Accepted
time: 39ms
memory: 37076kb

input:

WLWWWLWLWLLWWWWLLWLLWWWWWWWWLLLLLLLLLWWLLWLWWWLLWWWLWLLLWLLLWLWWLLWWLWLLLLWLWWLWLLWLWLLWWWLLLLLWWLWWWLWWWLWWWWWLLWWWWWLWLLWLWLWLLLWLWLLLLLLWLWWWLLLLWLWLWWWWLWLWLLWWWLLWLLLLWWLWLLLWWWLWLWWWWWLWLWWLWLLWWLLWWLLWLWWWLWLLWLLLLWWLWWLLLWWWLWWLLLLWWWLWWLLLLWLLWWLLWLWLWLLWWLWLLWWWLWLWWLWWLWWLLLWLLLLLLLLWWLLW...

output:

1

result:

ok single line: '1'

Test #45:

score: 0
Accepted
time: 43ms
memory: 38140kb

input:

LWLLLWWWLLWWLLWWWWWWWWLLLWWWLLWWLWLWWWWLLLLLWWWLLLLLWLLLLWLLWLWLLWWWWWWLLWWLLWLWWLLWLLLLLLLLWWLLLLWLLWWWWLWWWLWWWLLWWLLWLWLLWWWLLLLLLLWWWWLLWLWWLLLWWWLLLLWLLWLWWLLLWWLLWWWWLLLWLWLWLLLWLWWLLWLWWWLLWLLWWWLLLWWLLLWLLLWLWWWWLLLLLWLWWWLLWLLLWLLLWWWLWLWLLWLLWLWWWLWWLLLLWWLLWWLLWWWLLLWWWLLLWWLLWWLLLLWWWLLW...

output:

16

result:

ok single line: '16'

Test #46:

score: 0
Accepted
time: 39ms
memory: 37844kb

input:

WWWWWWWLLLWWWLLLWWLLWWWWWWLWWWLLLWLWLWLWWLLLLLWLLLWLWWLLLLLLWWLWWLWWWWWWLLLLWLLWWWLLLLWLWLLWLWWWLWLWLLLLWLLWLWWLLWLWLWLLWLLWLWLWWLWWWLWWLWWLLWLLLWWWWLLLLWWLLWLLWWWLLWLLLWWWLLLLLWWLWWWLLLWLWLLWLWLWWLWWWLLLLWWLWLWWLLWLLWWLLLWWLWWWLLLWLLWWLLLLLLWLWWLLLLLLWWWWLLWLLWLWWWLWWWWLLLLWLLWWLLWWWLLWLLWLLWLLWWWL...

output:

17

result:

ok single line: '17'

Test #47:

score: 0
Accepted
time: 34ms
memory: 36880kb

input:

LLWLLWWLLWLWWWWLLWWLWLWLLLWLWWWWLLWLWWLLLLLLLWLWWLLWLLLLLLLLLLWWLWLLLWLLWLWLWWLLLWLLLWWWWWWLLWLWWLLWLLWWLWWLLLLWWLLWLLLWLWLWLLLWLWLLWLWWWWLLLWWLLLWLWLLWWLWLLLLWLLWWLLWLWWLWWWLLLLLWLWLLWLWLLWWWWLWWLLWWLWWWLLLWWWLLLLLWLWLLLWLWLWWWLWWWLLLWWLLWLWLLWLWWWLLLLWLLLLLLWLLLWWWLLLWWWLLWLLWLLWLLLWLLLLLLLWWLWLWL...

output:

18

result:

ok single line: '18'

Test #48:

score: 0
Accepted
time: 27ms
memory: 39120kb

input:

WWLWWWLLWLLWWLWWLWLLLWWWLWLLWWLWLLWWLLLLWWLWWLLLWLLLWLLLWLWLLWLWWWWWLLLLLLWLWWLWLWWWLLLLLWWLLLWLWWLLWWWLWLWLWLLWLWLWLLLWLWLWLWWWWLLLWLWLLLLLLWWLLLWLWLWWLLWWLWWWWLLWLLLLWLLLWWWLLLWLWWLLWLWWLLLLLLLWLLLLLLWLLLLWWWWLLLLWWWWLLLWLLLLLLWWLWWLLWLLWLLLWLLLWWWWWLLLWWLLLLWWLWWWLLLLWLWLLWWLWWWLLLLWWLWLWLLWLLWWL...

output:

19

result:

ok single line: '19'

Test #49:

score: 0
Accepted
time: 41ms
memory: 36544kb

input:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW...

output:

Legend

result:

ok single line: 'Legend'

Test #50:

score: 0
Accepted
time: 47ms
memory: 38648kb

input:

LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...

output:

25

result:

ok single line: '25'