QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#126592#1204. En-JOI-able Logo DesignDec0Dedd100 ✓108ms121060kbC++141.3kb2023-07-18 18:39:422023-07-18 18:39:45

详细

Subtask #1:

score: 30
Accepted

Test #1:

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

input:

1
OOOJ

output:

1

result:

ok single line: '1'

Test #2:

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

input:

1
JJOO

output:

1

result:

ok single line: '1'

Test #3:

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

input:

2
OJJOOJJIJIIJJOII

output:

7

result:

ok single line: '7'

Test #4:

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

input:

2
IJOIOIOJIJOJOJOI

output:

7

result:

ok single line: '7'

Test #5:

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

input:

3
IJOIIIIIIIIIIIIIIIIIJIIIIIIOIJOJIIIOIIIIIIIIJJJIIIIIJIIIIIIOIIJI

output:

36

result:

ok single line: '36'

Test #6:

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

input:

3
JJJIOIJJOOIJOJJIOIJIIOOJOOIOJJOOIJJIJIIOIIIJJOIJJIIJIJIJIOIIJJJJ

output:

33

result:

ok single line: '33'

Test #7:

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

input:

4
JIJIJJJJJIJJJJOOJJJJJOJJIJJJJJIOIJOJJIJJIJOJOJJJJJJJOJJJJJJJIOJJJOIJJOJJJOOOIJJJJJOJIOJOJIJJJOJJJJJJJJJOJJJJJJOJJJJJJJOJJJJJJJIJJJJJJJJIOJJOJJIIJJJJIJJJJJJJJIIJJJIOJJJJJJIJJIJJJIIJIJOIIJJJJJJJJJJIJIJJJOJJOJJJJOIJJJJJJJJIOOJJJIJJJOIJJJJJIJJJOJJJJOJIIJJJJJJJ

output:

154

result:

ok single line: '154'

Test #8:

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

input:

4
JIJIJIJIIIJOIIJIOJJJOIJIIJJJIOJIJJOIIOIIOJOJIOIOOOIJJJJIOJOOIJOIJIIJIIIJIIIIJOJIOJIIIOJOJJIOOJJJIJJJOJOJJIOJJJJOOOJJOJOIJOIOJJJIJJJOOOJIJIIIJIIIOIJJIIIIOJIIIOOIOJJIOJOOIIJOIOIIIOJJOIIJIOIJIIIJJOJOJOIOOOIJIJOJIIIOJOOIIIJIIOOJJIJIIIJOOJIJIIOIOJOJIOOOIIIJIJIJ

output:

148

result:

ok single line: '148'

Test #9:

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

input:

5
JOOJJJJOOOOOJOJJOJJJOOOOOJJOOOOOJOOJOJJJOJOJJOJOJOOJOJOOJJOOJJJJOOJJJJJOJOJJJJJJOJJOOJJJJJJOJJOJOJJJOOOOOOJJOJJOJJJJOOJOJJOJJJJJJJJJOJJJJJJJJOOOJJJJOJJJJOJOOOOJJJJOOJJJOJOOJOOJJJJJOJOJOJJJJOOJJJJOOJJOOJOJOJOJJJJJOJOOJJJJOOJOJJOJJJJOOJJJOJJOJJOJOOJOJJJJJOJOJJJOJJJJOOOOJOOJJOJOJJJOOOJJOJOOJJJOOJJJOO...

output:

652

result:

ok single line: '652'

Test #10:

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

input:

5
IJJJIJJOOJJIIIIIIJIJIOIIIJIIJIJIIOJJOIJJIJJJJIJIIJJIJJJIOIIIJJJIIIIIJOJJOJIIIJIJIIJOIJIJJJOJOOIIJJJIIJJIOJJIIIJJIOIIJIIOIIIJOJIIOIIIOIIIIJJIIJIIJIIJIOIOJJIIIJIJIIJIIIJIJIIJJIIJJIIJOIIOIJOIJJJJOJJOJOIIOJIIIOJIIIIJIOOOIOIJIIIIOOIJJJIJIJIIIJIJJJJIJIJJIIIJIOOJIJJIIIJIIJIOIJIIIJIJJIIIIJIOIJOIOIIJJOIIII...

output:

653

result:

ok single line: '653'

Test #11:

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

input:

1
IJJO

output:

0

result:

ok single line: '0'

Test #12:

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

input:

2
IIIJJIIJOJJIOOOI

output:

3

result:

ok single line: '3'

Test #13:

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

input:

3
JJJJJJJJJIJJJOOOOOOJOJOIOOOOOJJIIIIIOIIIIIIIIJJJJOOOIIIIIJJIIJJJ

output:

9

result:

ok single line: '9'

Test #14:

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

input:

4
IIIIIIJIIIIIIIIOIIIIIIIOIJIIIIIIIIIIIIIIIIJIIIIIIIIJIJIIJOIOJJJJIJJJJOJOOOJOOOOOOOOOOOOOJIIJIIIIIJIIIIIIJJIJOOOIIOOJJIIIJJIJJJJJJJIJJJJIJJIIJJIIJJJJJJJJOJJJJIJJJJJIJJJJJJJOJJJJJJJJJJJJIOOOOOOOOOOOOOOOOOOOJJOJIOIOOIJOIIOOOOOOOOOOJOIJOOOOJOOOOOJOJIOOIIIIIIII

output:

51

result:

ok single line: '51'

Test #15:

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

input:

5
OOOOOOOOOOOIOOOOOOJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOJOOOOOOOOOOOIOOOOOOOOJOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOOOOOIOIIIIIIIIIIIIOIIIIIIOIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJIIIIIIIIIIIIIIIIIIIIIIIIIIJIIIIIIIIIIIIIIIIIIIIIIJIIIIIIIIIIOII...

output:

45

result:

ok single line: '45'

Subtask #2:

score: 70
Accepted

Dependency #1:

100%
Accepted

Test #16:

score: 70
Accepted
time: 1ms
memory: 5840kb

input:

6
OOJOIJIJOIJIIIIJIJJIIOOOOIIJOOIJOOJOIJIJJJJOIOJOOIJIIJIJIIOJJJJJJJJOIJOIOOOJIIOOIJJIIIIOIIOIIJJOIJJIJIJOOIIIIJOJOOOOOJJIJIOIIOIIOOIJJIIOIJIOJOJIOJJJIIJIJIJOOIOIIOJJIJJIJOJIIJIJOIJJIOOJOIIJIOJOIJIJIIJOIOOOJIOOIOJOIIIJOJJOOJOIJJIJIIJOIIJOJJOOJIOIIIJIJOIOIOIOIJIJOIOJIOIIJOJOJIJIIIIOIOJOIJIOIIJOIJOIII...

output:

2664

result:

ok single line: '2664'

Test #17:

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

input:

6
JIIIIOIOOJIOOOJIIOJIIJIOIJOIIOIIJIOIIOOIIOJOOJOIOIIIJIJOIOOIOOIOOOJJOIOOOJJOJOOJOOIOOOOIOIOOIOIOIJOIIIOIJIOOIOOJOOIOOIJIIIIJOOOIOJIOOOIOOIOIIOOIOOIIOJOOOOOIIIJIOOOIOIIJIIIIOOIOOJOIOJIJOIOIIOOJIIIIOOOOIOIJOOJJOIIIJOIJIIJOOJIJIOOJIOIOJIJOIOOOJIIOJIOIIIOIIIIOJOIJJIOIOIOOOOIOIIJJIIIIOOOOIOIOOIIOOIJJOO...

output:

2638

result:

ok single line: '2638'

Test #18:

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

input:

6
OIIJJOJOJIJJIIJIOJJOJIOJIJJJIJJJOIJJIIOJJIOIJJJJIIJIJJOJIIJOOOJOJOOOJIOJIJJJOIIJOJJJJJJJOJIOJJJJOJIIJIJIJIOIIJJIJIJJOJIOJJJOJJJJOJOIOIIIJOJJJJIIJIJJJJOIJIJJIJJIJIJJJIJJIJIJOIIJOJJJOJJJIIJIJOJIIJJJJIIIJJJIIOJJIJIJJIIIJIIIJJIJJOIOJOJIIOJJJJIIOIJJOJJJIJJJJIJIIOJIIJJJOJOJJJJIIJIIIJJJJIIJJOJJOOOIJIIJJJ...

output:

2655

result:

ok single line: '2655'

Test #19:

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

input:

6
OOJJJJJIOJJJJJOJOJJJJJJJJJJJJJJJJJOJJJJJJJOJOJJJJJJJOJJJOJJJJJJJOJOOJJJOJJJJJJJJJOOOJJJOJJJJJJOOJJIJJOOJJJJJOOJJJJOOJOJOOJJJJJJJJJJJJJJJJJJJJOJOJJJJOJJJJJOJJJJJJJJJJJOJJJJJJOJJOJJJOJJJJJJJJJJJOJJJJJJJJJJJOJJJJJJJJJJJJJOJJJOJJJJJJJJJOJJJJJJOJJOOJIJJJJJOJJOJJJJJJJJJOJJJJJJJJIOJJJJJJOJJJOOJJJJJOOOJJJ...

output:

2672

result:

ok single line: '2672'

Test #20:

score: 0
Accepted
time: 4ms
memory: 6884kb

input:

7
OOOIOJJJIJIIIOJIIOIJOIOIIJOJOOOOOJOIOJIIOJJJOIJOIIIJJOJOJIIIOJOJJOOIIIOJIOOJOJIIOIOIJOJIOOJJOOIOIIOIJOIOJIOIOOJJOIJOOIIOIIIOIIIIIOJOJIJOIIJIOIIJJIJIIJIJIIIIIOJOJOIOOJIOJJIOIJJIJJOJOOOIIOOJIOIJIIIOOIIOOJIOJOJJJJOJJIIOJJIOJIJJOJIOIJJOOIOJOIIJOJJIIOOJIIJJIIOJJJOJOJJJOJJOOOIJJOJJOIJJOOOOJOJJOIJJIJOOJJ...

output:

10766

result:

ok single line: '10766'

Test #21:

score: 0
Accepted
time: 4ms
memory: 8924kb

input:

7
IIJOJOIJIJJJIOJIJIIIIJIJIJOJIJOJJOJJIIOOOIOOOOJJIOIIIOOIJJJJJIOIJJIJIIOJJOJIOJOJJOJJOIOOIIJIIIOOJIJJIOOIIOJIOIJIIIOJIJJJJJIJJIIJJJIJOJOIOOJIJIJJOJJIJIIIIOJJOOIJIJJOJJJIIIOJJJIJIJIJIJJJIIJJJJJOJOIJOJOIJIOIOOJIIIIJJIJOIJOJIJOJJJOJJOJIOJJIIJIJIJIOOJJOOOIOOIOOIIIJJOJOIIOIJIIIIIJIIOIJIOJIIJIIOJIOJIJIOI...

output:

10762

result:

ok single line: '10762'

Test #22:

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

input:

7
IIJJJJIIIIIIJIIJIIIJIIIJIIIIIIIJIIJIIIIJJIJJJJIIJJIJIIJJIJJJJJIIIIJJJJJJIJIJIJJIIJJJJJJJIIJJIIJJIIJIJJIJIIJIIJJJIIIIIJJIJJIJJIJJJIIJIJJJIIJJIIIJJJJJIJIIIJIJJIIJIIIIJIIIIIJJIIIIJJIIIIJIIIJIJIJIJIJJJJIJJJJIIJJIIJIIJIIJJIIJJJJIIIIJIJIIJJJJJJIIIJIJJIJIJJJJIIIIJJJJJIIJJJIJIJIJIIIJJJIIJIIIIJJIIJJIJIIJII...

output:

10777

result:

ok single line: '10777'

Test #23:

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

input:

7
IIIOOIIOOOIOIIOIIOIIIOIJJIIOJJIOOOOIOOIIIIOOOIIOIOIIOOOOIJIJIJJOJJIIIOIOOIOOIIIOJOIIIOIOOIIIIOIJIOIOIIIIJOOJOIIIOOOJOOIIOIIIOJOIOOJIOIIJOIIIIIJOIOIIOIIIOIIJJOIOJJIOIOOIIIIIIOIOIJIOIIOIIOOOIIIIJOIJIIIIIOJIOIOJIIIIIIJOOJOOIJIJIIJIOIOIOIOIIIIOIIOJJIIOIOIIJOIOIOJIIIOOJIIOIIIIIOOIOOOIIJIIIIOJIOIIOIIOII...

output:

10767

result:

ok single line: '10767'

Test #24:

score: 0
Accepted
time: 5ms
memory: 11332kb

input:

8
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO...

output:

43690

result:

ok single line: '43690'

Test #25:

score: 0
Accepted
time: 5ms
memory: 11380kb

input:

8
IJOOJJOIJIJJOOOIJIOOJOJOJJOJJOJIJJOIIOIIIOOOOOOOJOIJOIJOIIIOOJOOIIIOJIOJIOIOIIOJIOIIOIIIJJJJJIIOOIIJOIOJOOOIIOJOOOOJIOIJIIJOIIJJIOJOJOOJJOJJJOIJIOJOOJJIJOJIJJJJJOOIIOIJIOOJIJOJIOJJOIOOOJJJJJIIOIOOIOOJIOJOIJOJOJOJOJIOIIOOIIJOOIJOOJJOIIJOOIIOJIOOIIJJOJIIJIIIOOOIJJIJIJOOIJJIOOIJOOIIJIJJOJOJOIJJOOJIOI...

output:

43361

result:

ok single line: '43361'

Test #26:

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

input:

8
IOJOIIOOIIOOOOIIOIIOIIIOJIIOJOIJIOJOOIIOIIIIIOJIIJIIOIOJOIIOOOIIIOOIJIIIIOIIJOIJIOIOIJOJJJIOIIOIJIIOIOJIIIJOIOIIOOIOOIIIIJOOOJJIOOJOIIIJOIOIJOJOIJIJOIOOJIIOIOIOIOOOIIOIOOOOIOOJOIIOOIOIJJIJIJJIJIOJIOIOIIIOOOOOJOOOOIJIIOOOOIIOIIJJIIOJJOIIOJIJOIOOIIJOOOOJOIOOOIIIIOOJIJOIIIOOOIIIOOJIIOOJJIIJIIIIOJIIOJ...

output:

43417

result:

ok single line: '43417'

Test #27:

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

input:

8
OOOIIOOOOOIIIOIIOIIIOOIJIIIOJOOIOIIOIOJIOIOIIJJIOIIJIJOIOIIOIJIOIJIOIIIIOOOOIIOOIIOOIIIIIJIOOOOIIIIOIIOIIIIIOIIIOOIOJIIOOIIOJIIIIOIOIIIIIOIIIOOIOIIIOOIOIOIJOOOOJJIIIOOIIIOIIOOOIIIIOIIIOIIIOIOIOIIIOJIIIIOIIIIIIIOIIIJIOIOIIOIIOIOOIIJIIJIIIIOOIIIIIIIOOIOOJJOIIOIIOIJOOIIIJOIOIOJIIJIOOJIIIOIJJOIOOJIJIO...

output:

43367

result:

ok single line: '43367'

Test #28:

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

input:

9
OJIIOIJIOOOOJJOJOIJJIOOJOIJOJOIJIOJOJJJIIOIOIJIOOOIIJIJOOOJIJIJOOOIIJOOJOJIJIOIJIOJJJJOOOIJOJOJOIJOIJJOIOOOJOOOIIIJJJJIJJIIJIJJIJOJIJIIJJOJOOIJIOIIJOJJOJJOOOJOJJIIIJJJIIIOOOJOJIIOIIIOOIOOOOOIOJIJJIJJJOJOIIJIOJJOOIJOJJIJIJIJIIJOOIOOJIIIIIIOJIJJJJOIOJJJJJIOOOOIOIOIIJOJJIOOIOJIOIJIJIIIOJOJIJJJOIIJOJI...

output:

174326

result:

ok single line: '174326'

Test #29:

score: 0
Accepted
time: 13ms
memory: 35640kb

input:

9
IIJOJOIOJIIOIJIJJJJJJIJIJJJIOJIIOJIIJOJOIOOIIJJJIIOIJIJIJIIJJIIIIJOOIOOJIJOOJIOOIOJJJIJJIJJOJIOOIIJOJJJOIOJIJOJIJOOJJIJIJIJOJJIOIJOOJIIIJJOIIJIJJIIJIOJIJIIIOIIJJJIJJIJIIJIJIIIJOIIIIJIJJIIJOJJJJIIIIJJOJJIJOOIIJIJIJIIIIJIIJOJIJJJJJJOJJIJJIOJIJJOIIOOIIJJJJOJIIJIOIOJIIIJJIJIJIIOJIJJIOOIIOJIIIOOOOOIIII...

output:

174037

result:

ok single line: '174037'

Test #30:

score: 0
Accepted
time: 15ms
memory: 35120kb

input:

9
OOOOOOOOOOOOOJOOOOIOOOOOOOOOOOOOOOOOOOOIOOOOOOOJOOOOOIOOOOOOOOIIOOJOOOOJOOOOOOOOJOIOOOOOOOOOOOIOOOIOOOOOIOOOOOOJOOIIOIOOOOIOOOIOJOOOOOJOIOOOOOOOJIOJOIJIOOJOOOOOIIOOOOOOOOOOOOOOOIOOIOIJOOOIOIOOOOOOOOOOIIOOJOIOOOOOOOOIOOOOIOOOOOOOIOOIOOOOOOOOOOOIOOOJIIJOOOOOOOOOIOIIJOOOOOOOOOJOOOOOOOOOOOOJIOIOJOOOOO...

output:

174244

result:

ok single line: '174244'

Test #31:

score: 0
Accepted
time: 12ms
memory: 36156kb

input:

9
OOOOOOOOIOOIOIIIOOIIOOIOOIOIOJOOOOOOOOIJOIIIOIOOIOIIOIIOIOIJOOJOIOIIJOJOJIOJJIOOOIOIOJJOOOIOOOOOIIOOIOOOJJIOJIIIOOOOIIOOIJJIOIOJOJOOOOOOOOIIJOOOIOOIJOIOJJIJJJOOOOOOJJOOOOOJIOOJOOOIJOOIOIIIOOOOIIOOIIOOIOJOOJJOOIOIIOIOOJJIOIOOOIIIJJOJOIOJIJOOIIJOOOOOJJJIOOOOOIJIOOIOIOJOIIJOOIOOOIOOIIOOOJOOOOOOOIIOJO...

output:

174075

result:

ok single line: '174075'

Test #32:

score: 0
Accepted
time: 92ms
memory: 115532kb

input:

10
JIOIOJIOIJJJOOJJIJOIJOIOIIOOJIJIIIOIOOIOJOIJIOOJOOIJIIOIIOOIJOOOIJOIOIOJOJIOIJOIOOJIIOJJOIJIOJJIOOJOJOOOOJJJIIIOOJIIIOOIIIJIJIJIOOJIOIJOJIJIJJJOOOIIIJOIIIOOIOOOJOIOIJOJOIIIOIJIIOJOOOOIOOJJIIOIJOOOIOIOOOJIOIOJJOOOJIOOIIIIJIIOJIOJJOJOIIOJJJJIJJOOIIOIOJJIOJIOIOOOJJIJOJOOIOJOOIJOIIOOJIOJJIIJOIIJJJIIO...

output:

698099

result:

ok single line: '698099'

Test #33:

score: 0
Accepted
time: 108ms
memory: 116368kb

input:

10
OIOJOOIOIOJJJOOIIOJOJJOOOJJOIJIIJJOIIIJIIJOOJJOIJOIJIOIIJIJOIIIIIOIIOOIOOOOJOOJOIOJOIJIIIJIOIJJJIIIOOIIJOJOJIOOJIJJJIOOJIOJOJIJOJJJOJOOJOOIOOIIOIIOJJIIJIJOJOJOOJIIJOIOIOIOIOJJOIOJIOIJIOIIOIIJJJJOJOIJIIIOOIIIOOOOJOJJIJIOOJIJJOIJIOIJOIOOIOJOOIOIIOIJJOJJJOJIOJIJOOOJOOJOOOIIOJJOOOJIOOIIIJIIJJJOOJOIOO...

output:

698050

result:

ok single line: '698050'

Test #34:

score: 0
Accepted
time: 73ms
memory: 119588kb

input:

10
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ...

output:

699050

result:

ok single line: '699050'

Test #35:

score: 0
Accepted
time: 67ms
memory: 117384kb

input:

10
IIOIIIIIIIIIIOIIIIIIIIIOOIOOOIOIIIIIOIIIIIOIIIIOOIIIOIIIIOIIIIIIIIOIOIIIOOOIIOIIIOIIIIIOIIOIOOIIIIIIIIIIIIIOIIIIIIIIIOIIIOIIIIIOOIOIIIOIIIIIIIIIIIIIOIIOIOIIIIIOIIIIIIIIIIIIIOIIIOIIOIOIOOIIIIIIIIIIIIIIIIIIIIIOOOIIOIIIIIIOIIIOIIIOIIIIIIIIIIOIIOIIIOOIOOIIIIIIIIOIOIOOIIOIIIIOOIOOOIIOIIIOIIIIIIIIIOIOI...

output:

698124

result:

ok single line: '698124'

Test #36:

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

input:

6
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO...

output:

9

result:

ok single line: '9'

Test #37:

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

input:

6
OOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOIIIIIIIIIIIIIIIIIIIIIIIIIOIIOIIIIIIIIIIIIIOIIIIIIIIIIIIIIIIIIIIIIIIOIIIIIIIIIIIIIIIIIIIIIIIIIIIOIIIOIIIOIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJIIIIIIIIIIIOIIJIIIIIIIIIOIIIIIIIIIIIIIOIIIIIIIIIIIIOIIIIIIJI...

output:

255

result:

ok single line: '255'

Test #38:

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

input:

7
OOJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO...

output:

33

result:

ok single line: '33'

Test #39:

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

input:

7
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJOJJJJJJJOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOIOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOJOOOOOOOOOOJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO...

output:

718

result:

ok single line: '718'

Test #40:

score: 0
Accepted
time: 4ms
memory: 11324kb

input:

8
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO...

output:

1253

result:

ok single line: '1253'

Test #41:

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

input:

8
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ...

output:

262

result:

ok single line: '262'

Test #42:

score: 0
Accepted
time: 22ms
memory: 36808kb

input:

9
JJJJJIJJJJJJJJJJJJJJJJJJJJOJJJJJOJJJJOJJJJJJJJJJJJJJJJJJJJJJJJJJJOJJIJJIJJIJIJJJJJJJJJIJJJJJJJJJJJJJJJJJOJJJJJJJJIJJJJJJJJJJJJJJJJJJIJJJJJJJJJOJJJJJJJJJJOJJJJJJJJIJJJJJJJJJJJJJJJJJOJJOJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJOJ...

output:

18481

result:

ok single line: '18481'

Test #43:

score: 0
Accepted
time: 9ms
memory: 36304kb

input:

9
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

9

result:

ok single line: '9'

Test #44:

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

input:

10
JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ...

output:

0

result:

ok single line: '0'

Test #45:

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

input:

10
OOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOOOOOOOIOOOIOOOOOIOOOOOOOOOOOOOOIOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOIOOOOIOOOOOOOOOJOOOOOOOOJOOOOOOOOOOJOOOOOOIOOOOOOOOOOOOOOOOOJOOOOOOOOOOOOOOOOOOIOOOOOIOOOOOOOOOJOOOOOJOOOOOOOOOOOOOOOOOOOOOOOOJOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOIOJOOOOOOOOOOO...

output:

91671

result:

ok single line: '91671'

Extra Test:

score: 0
Extra Test Passed