QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#768228#8773. Magic BeanpokorfanclubAC ✓0ms3780kbC++202.2kb2024-11-21 03:26:302024-11-21 03:26:30

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

gggooooooo
rrrggggggg
ooorrrrrrr

output:

27
g7
c2
g1
c1
o2
r9
c1
r1
c2
o8
c2
g1
c1
o2
r9
c1
r1
c2
o8
c2
g1
c1
o2
r9
c1
r1
c2

result:

ok correct

Test #2:

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

input:

ggooooooog
rrrggggggg
ooorrrrrrr

output:

28
o3
g7
c2
g1
c1
o2
r9
c1
r1
c2
o6
c2
g1
c1
o2
r9
c1
r1
c2
o8
c2
g1
c1
o2
r9
c1
r1
c2

result:

ok correct

Test #3:

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

input:

roorgroror
ogogoogggo
rgrrogrggr

output:

49
o2
r5
c1
r1
c2
o6
g9
c2
g1
c1
o4
r2
c1
r1
c2
o2
g8
c2
g1
c1
o3
r2
c1
r1
c2
o2
g7
c2
g1
c1
o5
r1
c1
r1
c2
o2
g8
c2
g1
c1
r2
c1
r1
c2
o2
g4
c2
g1
c1

result:

ok correct

Test #4:

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

input:

rooogggroo
grorroorrr
grgggorgog

output:

55
o2
r4
c1
r1
c2
o3
r7
c1
r1
c2
o1
g7
c2
g1
c1
o1
g7
c2
g1
c1
o8
g8
c2
g1
c1
r1
g9
c1
g1
c2
r1
g8
c1
g1
c2
r8
g7
c1
g1
c2
r7
g7
c1
g1
c2
r9
g8
c1
g1
c2
r9
g9
c1
g1
c2

result:

ok correct

Test #5:

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

input:

rgroogggro
googoggrro
rorgorrgro

output:

43
o2
r8
c1
r1
c2
o1
r7
c1
r1
c2
o7
r3
c1
r1
c2
g8
c2
g1
c1
o7
g9
c2
g1
c1
o9
g8
c2
g1
c1
o8
g2
c2
g1
c1
g1
c1
g1
c2
r4
g9
c1
g1
c2

result:

ok correct

Test #6:

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

input:

grrrgoggor
rorooogoor
rgogorrggg

output:

64
o1
r7
c1
r1
c2
o1
r8
c1
r1
c2
o9
g8
c2
g1
c1
o7
g8
c2
g1
c1
o8
g9
c2
g1
c1
o9
g8
c2
g1
c1
r8
g3
c1
g1
c2
r9
g9
c1
g1
c2
r9
g9
c1
g1
c2
o4
r4
c1
r1
c2
o2
g1
c2
g1
c1
o5
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #7:

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

input:

ggorororgo
rrrooogogg
rgrgggorro

output:

49
o9
r3
c1
r1
c2
o8
r7
c1
r1
c2
o7
g6
c2
g1
c1
o8
g9
c2
g1
c1
o8
g9
c2
g1
c1
g2
c1
g1
c2
r7
g9
c1
g1
c2
r9
g9
c1
g1
c2
o3
r6
c1
r1
c2
o2
g2
c2
g1
c1

result:

ok correct

Test #8:

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

input:

rggrgorrro
gooorogrog
rroogroggg

output:

59
o2
r7
c1
r1
c2
o1
r9
c1
r1
c2
o1
r5
c1
r1
c2
o7
g8
c2
g1
c1
o9
g9
c2
g1
c1
o8
g9
c2
g1
c1
r2
g9
c1
g1
c2
r9
g3
c1
g1
c2
o7
r2
c1
r1
c2
o2
g9
c2
g1
c1
r3
c1
r1
c2
o2
g1
c2
g1
c1

result:

ok correct

Test #9:

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

input:

oorgoogror
ggggoroorr
grgrrrogog

output:

42
r3
c1
r1
c2
o5
r8
c1
r1
c2
g5
c2
g1
c1
o4
g8
c2
g1
c1
r2
g7
c1
g1
c2
g8
c1
g1
c2
r8
g3
c1
g1
c2
o4
r4
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #10:

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

input:

rorrorogoo
ogrogoorgr
gggggrrgro

output:

52
o2
c1
r1
c2
o3
g9
c2
g1
c1
r2
g8
c1
g1
c2
r1
g3
c1
g1
c2
r8
g8
c1
g1
c2
o4
r3
c1
r1
c2
o2
g7
c2
g1
c1
o5
c1
r1
c2
o2
g4
c2
g1
c1
r1
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #11:

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

input:

goorrogrrr
orgggoogoo
rrggrrgoog

output:

54
o9
r2
c1
r1
c2
o9
r9
c1
r1
c2
o8
g9
c2
g1
c1
o6
g4
c2
g1
c1
r2
g4
c1
g1
c2
o3
r1
c1
r1
c2
o2
g4
c2
g1
c1
o5
c1
r1
c2
o2
g8
c2
g1
c1
o8
r4
c1
r1
c2
o2
g7
c2
g1
c1

result:

ok correct

Test #12:

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

input:

ooorgorrgo
ggggogrroo
rgggrroror

output:

39
o9
r3
c1
r1
c2
o7
r8
c1
r1
c2
o1
g5
c2
g1
c1
o7
g5
c2
g1
c1
r8
g2
c1
g1
c2
r9
g9
c1
g1
c2
r6
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #13:

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

input:

ogrogrogrg
ogrogrogrr
ogrogrogro

output:

53
r9
c1
r1
c2
o7
r7
c1
r1
c2
o7
r5
c1
r1
c2
g9
c2
g1
c1
o9
g7
c2
g1
c1
o7
g5
c2
g1
c1
r2
g8
c1
g1
c2
r6
g9
c1
g1
c2
r7
g5
c1
g1
c2
o7
g7
c2
g1
c1
o2
r1
c1
r1
c2

result:

ok correct

Test #14:

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

input:

oogoogrrro
ggoroogrrg
grrororggg

output:

43
o6
r6
c1
r1
c2
o9
r8
c1
r1
c2
g7
c2
g1
c1
o5
g8
c2
g1
c1
g5
c1
g1
c2
r8
g9
c1
g1
c2
r9
g4
c1
g1
c2
o4
r6
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #15:

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

input:

rroogooroo
rgrgrrgggr
rooogrgogg

output:

45
o2
r8
c1
r1
c2
o9
r9
c1
r1
c2
o4
r9
c1
r1
c2
r2
g9
c1
g1
c2
r1
g8
c1
g1
c2
r1
g7
c1
g1
c2
r3
g8
c1
g1
c2
o3
g4
c2
g1
c1
o2
r5
c1
r1
c2

result:

ok correct

Test #16:

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

input:

ogrggorrrg
gggroororo
orgroogogr

output:

53
r9
c1
r1
c2
o6
r5
c1
r1
c2
o9
r9
c1
r1
c2
o9
r8
c1
r1
c2
o1
g5
c2
g1
c1
o8
g9
c2
g1
c1
o7
g8
c2
g1
c1
o9
g5
c2
g1
c1
g5
c1
g1
c2
r6
g9
c1
g1
c2
r7
g5
c1
g1
c2

result:

ok correct

Test #17:

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

input:

grgogrrggo
ooogororgg
rorrggoorr

output:

48
o1
r8
c1
r1
c2
o6
r4
c1
r1
c2
o9
r9
c1
r1
c2
g9
c2
g1
c1
o9
g9
c2
g1
c1
o9
g9
c2
g1
c1
o7
g5
c2
g1
c1
o9
g8
c2
g1
c1
r5
g9
c1
g1
c2
r8
c1
g1
c2

result:

ok correct

Test #18:

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

input:

rorrogrorg
rrogrrggrg
ooooogggog

output:

59
o2
r9
c1
r1
c2
o1
r9
c1
r1
c2
o7
r9
c1
r1
c2
o9
r9
c1
r1
c2
o7
r5
c1
r1
c2
g7
c2
g1
c1
r2
g8
c1
g1
c2
r9
g9
c1
g1
c2
r9
g4
c1
g1
c2
r7
g8
c1
g1
c2
o4
g9
c2
g1
c1
o2
r7
c1
r1
c2

result:

ok correct

Test #19:

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

input:

gogrggrorr
ggorrrrogr
gooooooggr

output:

65
o9
r8
c1
r1
c2
o7
r9
c1
r1
c2
o8
r9
c1
r1
c2
o9
r9
c1
r1
c2
o1
g7
c2
g1
c1
o8
g4
c2
g1
c1
r6
g8
c1
g1
c2
r9
g5
c1
g1
c2
r8
g9
c1
g1
c2
o5
g5
c2
g1
c1
o2
r8
c1
r1
c2
o9
g3
c2
g1
c1
o2
r1
c1
r1
c2

result:

ok correct

Test #20:

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

input:

rrorrggooo
oogggggroo
gggrrorrro

output:

43
o2
r4
c1
r1
c2
o9
r5
c1
r1
c2
o6
g9
c2
g1
c1
o9
g9
c2
g1
c1
r2
g2
c1
g1
c2
r5
c1
r1
c2
o2
g9
c2
g1
c1
o8
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #21:

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

input:

goggrgorgr
orrgogggrg
orooroorro

output:

53
o8
r9
c1
r1
c2
o7
r8
c1
r1
c2
o8
r9
c1
r1
c2
g9
c2
g1
c1
o9
g5
c2
g1
c1
o4
g2
c2
g1
c1
o2
r5
c1
r1
c2
o9
c2
g1
c1
o2
r9
c1
r1
c2
o8
g1
c2
g1
c1
o2
r5
c1
r1
c2

result:

ok correct

Test #22:

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

input:

grgoogrorg
gorgrorrog
grooogorrg

output:

55
o1
r7
c1
r1
c2
o5
r9
c1
r1
c2
o8
r9
c1
r1
c2
o1
g8
c2
g1
c1
o7
g5
c2
g1
c1
o9
g7
c2
g1
c1
r2
g5
c1
g1
c2
r1
g8
c1
g1
c2
r1
g7
c1
g1
c2
o9
g8
c2
g1
c1
o2
r1
c1
r1
c2

result:

ok correct

Test #23:

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

input:

rogorggogr
roogrrogro
groorgrgog

output:

53
o2
r7
c1
r1
c2
r9
c1
r1
c2
o6
r3
c1
r1
c2
o1
g8
c2
g1
c1
o8
g9
c2
g1
c1
o9
g4
c2
g1
c1
o6
g7
c2
g1
c1
r2
g8
c1
g1
c2
g7
c1
g1
c2
r9
g5
c1
g1
c2
r6
g8
c1
g1
c2

result:

ok correct

Test #24:

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

input:

oorgoorgoo
rorgggrorg
rggrggroor

output:

39
r2
c1
r1
c2
o6
r9
c1
r1
c2
o9
g8
c2
g1
c1
o4
g3
c2
g1
c1
r8
g9
c1
g1
c2
r9
g8
c1
g1
c2
r8
g7
c1
g1
c2
r9
g3
c1
g1
c2

result:

ok correct

Test #25:

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

input:

grrrgogogg
grrrrggggo
ororoorooo

output:

57
o1
r9
c1
r1
c2
o9
r8
c1
r1
c2
o9
r7
c1
r1
c2
o1
c2
g1
c1
o4
g4
c2
g1
c1
o2
r8
c1
r1
c2
o3
c2
g1
c1
o2
r7
c1
r1
c2
o4
g1
c2
g1
c1
o2
r8
c1
r1
c2
o9
c2
g1
c1
o2
r9
c1
r1
c2

result:

ok correct

Test #26:

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

input:

orgoogroog
rroroogggr
rrgrggoorg

output:

44
o1
r3
c1
r1
c2
o5
r9
c1
r1
c2
g7
c2
g1
c1
o6
g8
c2
g1
c1
o8
g9
c2
g1
c1
r1
g3
c1
g1
c2
r1
g9
c1
g1
c2
r1
g9
c1
g1
c2
r3
g9
c1
g1
c2

result:

ok correct

Test #27:

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

input:

ggrorgogrg
rogrgororr
oroooogrgg

output:

63
r9
c1
r1
c2
o8
r8
c1
r1
c2
o6
r9
c1
r1
c2
g8
c2
g1
c1
o9
g5
c2
g1
c1
o8
g8
c2
g1
c1
r7
g9
c1
g1
c2
r8
g8
c1
g1
c2
r9
g7
c1
g1
c2
o6
g3
c2
g1
c1
o2
r8
c1
r1
c2
o9
g3
c2
g1
c1
o2
r5
c1
r1
c2

result:

ok correct

Test #28:

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

input:

rrogrrgrog
orgrgorgrg
oggrooogoo

output:

60
o2
r9
c1
r1
c2
o9
r5
c1
r1
c2
o7
r9
c1
r1
c2
o9
r9
c1
r1
c2
o8
r5
c1
r1
c2
o1
g9
c2
g1
c1
o9
g4
c2
g1
c1
r1
g9
c1
g1
c2
r9
g8
c1
g1
c2
r6
g5
c1
g1
c2
o6
g8
c2
g1
c1
o2
r1
c1
r1
c2

result:

ok correct

Test #29:

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

input:

ggoogrrogr
rggoorgooo
ogrrrorgrg

output:

48
o7
r9
c1
r1
c2
o9
r4
c1
r1
c2
g6
c2
g1
c1
o8
g9
c2
g1
c1
o8
g5
c2
g1
c1
o9
g9
c2
g1
c1
r1
g8
c1
g1
c2
r7
g4
c1
g1
c2
r6
c1
r1
c2
o2
g5
c2
g1
c1

result:

ok correct

Test #30:

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

input:

oogoororrr
rrogggrggg
roogggroro

output:

39
o7
r8
c1
r1
c2
o8
r9
c1
r1
c2
o9
r3
c1
r1
c2
o9
r8
c1
r1
c2
o7
g7
c2
g1
c1
g5
c1
g1
c2
r8
g5
c1
g1
c2
r7
g9
c1
g1
c2

result:

ok correct

Test #31:

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

input:

rggrggorgo
orooorgrgo
goorgorgrr

output:

55
o2
r8
c1
r1
c2
o7
r9
c1
r1
c2
o6
r5
c1
r1
c2
o1
g9
c2
g1
c1
o1
g8
c2
g1
c1
o1
g9
c2
g1
c1
o1
g8
c2
g1
c1
o4
g2
c2
g1
c1
r1
g9
c1
g1
c2
r6
g4
c1
g1
c2
r8
g7
c1
g1
c2

result:

ok correct

Test #32:

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

input:

rgrrgogroo
gggrgrroor
rooggoroog

output:

53
o2
r8
c1
r1
c2
o8
r9
c1
r1
c2
o9
r5
c1
r1
c2
o6
r8
c1
r1
c2
g2
c2
g1
c1
o4
g9
c2
g1
c1
g9
c1
g1
c2
r7
g3
c1
g1
c2
r9
g8
c1
g1
c2
o9
g9
c2
g1
c1
o2
r2
c1
r1
c2

result:

ok correct

Test #33:

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

input:

goororrggo
ororoorgrg
grgogrgorg

output:

55
o9
r6
c1
r1
c2
o8
r5
c1
r1
c2
o8
g9
c2
g1
c1
o9
g8
c2
g1
c1
o8
g7
c2
g1
c1
r1
g7
c1
g1
c2
r9
g7
c1
g1
c2
r7
g7
c1
g1
c2
r9
g8
c1
g1
c2
o1
r5
c1
r1
c2
o2
g5
c2
g1
c1

result:

ok correct

Test #34:

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

input:

ooroogroro
ggrgrrogrg
grgroorogg

output:

38
r5
c1
r1
c2
o6
r9
c1
r1
c2
o8
r8
c1
r1
c2
o1
g3
c2
g1
c1
g8
c1
g1
c2
r8
g4
c1
g1
c2
r9
g8
c1
g1
c2
r8
g9
c1
g1
c2

result:

ok correct

Test #35:

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

input:

grgrogoggo
rrroogorrg
rrrgoogogo

output:

58
o1
r5
c1
r1
c2
o8
r9
c1
r1
c2
o1
g6
c2
g1
c1
o9
g9
c2
g1
c1
o8
g8
c2
g1
c1
r2
g7
c1
g1
c2
g8
c1
g1
c2
r6
g7
c1
g1
c2
o7
g7
c2
g1
c1
o2
r6
c1
r1
c2
o8
c2
g1
c1
o2
r3
c1
r1
c2

result:

ok correct

Test #36:

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

input:

oggoogrrro
ggoorggrgr
ogoorrrgor

output:

44
o6
r9
c1
r1
c2
o9
r8
c1
r1
c2
o9
r9
c1
r1
c2
g7
c2
g1
c1
o7
g9
c2
g1
c1
r6
g9
c1
g1
c2
r7
g4
c1
g1
c2
o9
g8
c2
g1
c1
o2
r8
c1
r1
c2

result:

ok correct

Test #37:

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

input:

ogrggoroog
ggrroorgoo
orrrorgggr

output:

44
r9
c1
r1
c2
o6
r5
c1
r1
c2
o1
g5
c2
g1
c1
o1
g9
c2
g1
c1
o1
g5
c2
g1
c1
o4
g9
c2
g1
c1
r1
g5
c1
g1
c2
r9
g9
c1
g1
c2
r8
g9
c1
g1
c2

result:

ok correct

Test #38:

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

input:

rgrrgrrggo
rgogorgooo
rgrogogoro

output:

59
o2
r6
c1
r1
c2
o8
r8
c1
r1
c2
o9
r7
c1
r1
c2
o8
r7
c1
r1
c2
o1
g7
c2
g1
c1
o9
g8
c2
g1
c1
o8
g5
c2
g1
c1
o8
g9
c2
g1
c1
g8
c1
g1
c2
r7
g4
c1
g1
c2
o1
r6
c1
r1
c2
o2
g5
c2
g1
c1

result:

ok correct

Test #39:

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

input:

oroorrgroo
gorogoogog
rgggrrrggr

output:

47
o6
g8
c2
g1
c1
r1
g9
c1
g1
c2
o5
c1
r1
c2
o2
g9
c2
g1
c1
o3
c1
r1
c2
o2
g5
c2
g1
c1
o6
r3
c1
r1
c2
o2
g9
c2
g1
c1
o9
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #40:

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

input:

oogrrggrgr
rorogrrggo
rggooogoor

output:

60
o9
r6
c1
r1
c2
o9
r9
c1
r1
c2
o7
r9
c1
r1
c2
o8
r5
c1
r1
c2
o1
g8
c2
g1
c1
o1
g8
c2
g1
c1
o8
g2
c2
g1
c1
r8
g9
c1
g1
c2
r9
g9
c1
g1
c2
r9
g4
c1
g1
c2
o5
g8
c2
g1
c1
o2
r3
c1
r1
c2

result:

ok correct

Test #41:

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

input:

grgroroggo
ooggrrogog
gorrgrrroo

output:

45
o1
r8
c1
r1
c2
o8
r2
c1
r1
c2
o8
r9
c1
r1
c2
o1
g9
c2
g1
c1
o1
g9
c2
g1
c1
o6
g3
c2
g1
c1
o9
g8
c2
g1
c1
r2
g2
c1
g1
c2
r5
g9
c1
g1
c2

result:

ok correct

Test #42:

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

input:

rroogoggrr
orrggggorg
oooorrggor

output:

50
o2
r9
c1
r1
c2
o1
r9
c1
r1
c2
o9
r9
c1
r1
c2
o9
r9
c1
r1
c2
o1
g9
c2
g1
c1
o6
g2
c2
g1
c1
r6
g9
c1
g1
c2
r9
g8
c1
g1
c2
o8
g7
c2
g1
c1
o2
r6
c1
r1
c2

result:

ok correct

Test #43:

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

input:

ogororrggo
oogoggrorg
oogrgrgrrr

output:

44
o9
r9
c1
r1
c2
o8
r9
c1
r1
c2
o8
g9
c2
g1
c1
o9
g9
c2
g1
c1
o6
g8
c2
g1
c1
r2
g4
c1
g1
c2
r6
g8
c1
g1
c2
o4
r5
c1
r1
c2
o2
c2
g1
c1

result:

ok correct

Test #44:

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

input:

grgogroooo
rggrorgrro
rogoggrrog

output:

48
o1
r8
c1
r1
c2
o6
r8
c1
r1
c2
g5
c2
g1
c1
o4
g4
c2
g1
c1
r2
g9
c1
g1
c2
g5
c1
g1
c2
r8
g9
c1
g1
c2
r5
g8
c1
g1
c2
o9
g5
c2
g1
c1
o2
r7
c1
r1
c2

result:

ok correct

Test #45:

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

input:

rrrrorrgor
roroggrgog
ggoogogogo

output:

62
o2
r7
c1
r1
c2
r9
c1
r1
c2
o9
r8
c1
r1
c2
o9
r5
c1
r1
c2
o9
r8
c1
r1
c2
o6
g8
c2
g1
c1
r2
g9
c1
g1
c2
g4
c1
g1
c2
r8
g5
c1
g1
c2
r2
c1
r1
c2
o2
g9
c2
g1
c1
o8
r2
c1
r1
c2
o2
g2
c2
g1
c1

result:

ok correct

Test #46:

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

input:

rogoorgorr
ororooogrr
rgggggorgg

output:

64
o2
r3
c1
r1
c2
o8
g9
c2
g1
c1
o6
g8
c2
g1
c1
r1
g9
c1
g1
c2
r1
g2
c1
g1
c2
r1
g9
c1
g1
c2
r1
g9
c1
g1
c2
o5
c1
r1
c2
o2
g5
c2
g1
c1
o3
r2
c1
r1
c2
o2
g7
c2
g1
c1
o4
r5
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #47:

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

input:

grgororogr
orgooorggr
grrgorgoog

output:

55
o1
r5
c1
r1
c2
o1
r7
c1
r1
c2
o6
r8
c1
r1
c2
o1
g9
c2
g1
c1
o1
g7
c2
g1
c1
o3
g8
c2
g1
c1
r2
g7
c1
g1
c2
r1
g5
c1
g1
c2
r7
g9
c1
g1
c2
o3
r3
c1
r1
c2
o2
g5
c2
g1
c1

result:

ok correct

Test #48:

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

input:

gogogrooor
ggogrrgror
orgrrogrgo

output:

45
o7
r9
c1
r1
c2
o6
r4
c1
r1
c2
o9
g7
c2
g1
c1
o8
g3
c2
g1
c1
r2
g9
c1
g1
c2
r8
g4
c1
g1
c2
r6
g9
c1
g1
c2
o7
g5
c2
g1
c1
o2
r8
c1
r1
c2

result:

ok correct

Test #49:

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

input:

roogrroorg
oogggogogg
rggrroorrr

output:

39
o2
r4
c1
r1
c2
o1
r9
c1
r1
c2
o9
g9
c2
g1
c1
o7
g9
c2
g1
c1
o8
r2
c1
r1
c2
o2
g4
c2
g1
c1
o8
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #50:

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

input:

grgorggoor
rrgrrrggrg
oorooggooo

output:

64
o1
r9
c1
r1
c2
o1
r9
c1
r1
c2
o6
r8
c1
r1
c2
r8
g9
c1
g1
c2
r9
g9
c1
g1
c2
o3
g1
c2
g1
c1
o2
r8
c1
r1
c2
o3
g2
c2
g1
c1
o2
r8
c1
r1
c2
o8
c2
g1
c1
o2
r9
c1
r1
c2
o9
g3
c2
g1
c1
o2
r8
c1
r1
c2

result:

ok correct

Test #51:

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

input:

goorrgogor
gorogogorg
rrgorgrrog

output:

44
o9
r6
c1
r1
c2
o9
r4
c1
r1
c2
o9
g8
c2
g1
c1
o8
g8
c2
g1
c1
o7
g7
c2
g1
c1
r2
g5
c1
g1
c2
r6
g7
c1
g1
c2
r5
c1
r1
c2
o2
g3
c2
g1
c1

result:

ok correct

Test #52:

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

input:

rgoogoroog
rogrorrogg
rogrgoggrr

output:

45
o2
r8
c1
r1
c2
o4
r5
c1
r1
c2
o1
g8
c2
g1
c1
o5
g7
c2
g1
c1
o9
g5
c2
g1
c1
r2
g7
c1
g1
c2
r1
g7
c1
g1
c2
r8
g7
c1
g1
c2
r5
g8
c1
g1
c2

result:

ok correct

Test #53:

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

input:

roggororro
roggogggro
oogrgrrgro

output:

43
o2
r9
c1
r1
c2
o1
r9
c1
r1
c2
o1
c1
r1
c2
o6
g8
c2
g1
c1
o9
g7
c2
g1
c1
r2
g4
c1
g1
c2
r1
g8
c1
g1
c2
o8
r1
c1
r1
c2
o2
c2
g1
c1

result:

ok correct

Test #54:

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

input:

oogggrgorg
grgrorroog
grogororor

output:

54
o7
r7
c1
r1
c2
o7
r8
c1
r1
c2
o1
g5
c2
g1
c1
o1
g7
c2
g1
c1
o1
g8
c2
g1
c1
r5
g5
c1
g1
c2
r8
g8
c1
g1
c2
o3
g7
c2
g1
c1
o2
r4
c1
r1
c2
g1
c2
g1
c1
o2
r5
c1
r1
c2

result:

ok correct

Test #55:

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

input:

rggorrrgor
gogroroggg
rgoororoog

output:

49
o2
r7
c1
r1
c2
r9
c1
r1
c2
o6
r8
c1
r1
c2
o9
r5
c1
r1
c2
o9
r9
c1
r1
c2
o1
g8
c2
g1
c1
o8
g7
c2
g1
c1
o6
g7
c2
g1
c1
r2
g2
c1
g1
c2
r6
g8
c1
g1
c2

result:

ok correct

Test #56:

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

input:

goorggggor
grgroororo
ogorgorrgr

output:

54
o9
r9
c1
r1
c2
o4
r8
c1
r1
c2
o1
g5
c2
g1
c1
o1
g9
c2
g1
c1
o1
g8
c2
g1
c1
o1
g5
c2
g1
c1
g8
c1
g1
c2
r5
g7
c1
g1
c2
r8
g8
c1
g1
c2
o5
g5
c2
g1
c1
o2
r2
c1
r1
c2

result:

ok correct

Test #57:

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

input:

rrooorgoog
grgrrooggr
grrgoroggo

output:

45
o2
r5
c1
r1
c2
o9
r8
c1
r1
c2
o6
r5
c1
r1
c2
o9
g4
c2
g1
c1
o5
g9
c2
g1
c1
r2
g5
c1
g1
c2
r1
g8
c1
g1
c2
r5
g7
c1
g1
c2
r8
g8
c1
g1
c2

result:

ok correct

Test #58:

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

input:

rgrgrrroog
ggggoroorr
oooggogorr

output:

55
o2
r9
c1
r1
c2
o8
r9
c1
r1
c2
o8
r9
c1
r1
c2
o9
r4
c1
r1
c2
o9
r8
c1
r1
c2
o1
g5
c2
g1
c1
o9
g8
c2
g1
c1
o5
g9
c2
g1
c1
r8
g8
c1
g1
c2
r6
g7
c1
g1
c2
r9
g3
c1
g1
c2

result:

ok correct

Test #59:

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

input:

rgogrgrgoo
rrrgrooroo
ooggorggrg

output:

60
o2
r9
c1
r1
c2
o6
r9
c1
r1
c2
o8
r5
c1
r1
c2
o1
g4
c2
g1
c1
o9
g9
c2
g1
c1
o9
g8
c2
g1
c1
o6
g7
c2
g1
c1
r1
g8
c1
g1
c2
r9
g9
c1
g1
c2
r7
g8
c1
g1
c2
r9
g5
c1
g1
c2
r9
g9
c1
g1
c2

result:

ok correct

Test #60:

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

input:

grorrrgrgo
roggroogor
rgogrggooo

output:

59
o1
r7
c1
r1
c2
o8
r4
c1
r1
c2
o9
r9
c1
r1
c2
o9
r9
c1
r1
c2
o1
g8
c2
g1
c1
o8
g5
c2
g1
c1
o8
g9
c2
g1
c1
r8
g5
c1
g1
c2
r9
g9
c1
g1
c2
r8
g5
c1
g1
c2
r5
c1
r1
c2
o2
g7
c2
g1
c1

result:

ok correct

Test #61:

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

input:

orggoggorg
rgogrggooo
rrrrrgrooo

output:

45
o1
r2
c1
r1
c2
o3
r9
c1
r1
c2
o1
g7
c2
g1
c1
o1
g4
c2
g1
c1
o6
g9
c2
g1
c1
o8
g9
c2
g1
c1
r4
g9
c1
g1
c2
o9
g3
c2
g1
c1
o2
r5
c1
r1
c2

result:

ok correct

Test #62:

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

input:

googgrrror
rogoggorro
rooorgrggg

output:

54
o7
r8
c1
r1
c2
o9
r9
c1
r1
c2
o9
r9
c1
r1
c2
o1
g8
c2
g1
c1
o9
g8
c2
g1
c1
o7
g5
c2
g1
c1
r8
g9
c1
g1
c2
r8
g9
c1
g1
c2
r9
g5
c1
g1
c2
r6
c1
r1
c2
o2
g3
c2
g1
c1

result:

ok correct

Test #63:

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

input:

oogrorgogr
ggrrgooooo
orgrgggrrr

output:

48
o9
r9
c1
r1
c2
g4
c2
g1
c1
o7
g9
c2
g1
c1
o8
g9
c2
g1
c1
r1
g2
c1
g1
c2
r7
g9
c1
g1
c2
o9
r5
c1
r1
c2
o2
g8
c2
g1
c1
o9
c1
r1
c2
o2
g3
c2
g1
c1

result:

ok correct

Test #64:

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

input:

googggroog
rorroggoro
rrrorrgogg

output:

49
o6
r6
c1
r1
c2
o1
g8
c2
g1
c1
o1
g7
c2
g1
c1
o8
g5
c2
g1
c1
o7
g8
c2
g1
c1
g9
c1
g1
c2
r7
g8
c1
g1
c2
r9
g7
c1
g1
c2
o9
g3
c2
g1
c1
o2
r7
c1
r1
c2

result:

ok correct

Test #65:

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

input:

rrgogrrror
rogoogrgog
ooggrrggoo

output:

57
o2
r9
c1
r1
c2
r9
c1
r1
c2
o9
r1
c1
r1
c2
o6
r9
c1
r1
c2
g8
c2
g1
c1
o3
g8
c2
g1
c1
r2
g5
c1
g1
c2
r1
g5
c1
g1
c2
o5
r5
c1
r1
c2
o2
g8
c2
g1
c1
o8
c1
r1
c2
o2
g3
c2
g1
c1

result:

ok correct

Test #66:

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

input:

ororrgoggr
ggggoorrgo
roroorrggo

output:

45
o1
r8
c1
r1
c2
o1
r8
c1
r1
c2
o7
r9
c1
r1
c2
o9
r2
c1
r1
c2
o9
g5
c2
g1
c1
o8
g9
c2
g1
c1
o8
g4
c2
g1
c1
r4
g4
c1
g1
c2
r9
g9
c1
g1
c2

result:

ok correct

Test #67:

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

input:

rgggorrgor
gogoooooro
grrgrggror

output:

58
o2
r1
c1
r1
c2
o9
g8
c2
g1
c1
o9
g8
c2
g1
c1
o9
g9
c2
g1
c1
o6
g8
c2
g1
c1
r1
g4
c1
g1
c2
o4
c1
r1
c2
o2
g9
c2
g1
c1
o4
c1
r1
c2
o2
g2
c2
g1
c1
o8
r1
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #68:

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

input:

rgggoggoog
rorrggroor
rrrooorggo

output:

57
o2
r6
c1
r1
c2
g8
c2
g1
c1
o9
g3
c2
g1
c1
o9
g9
c2
g1
c1
r8
g9
c1
g1
c2
r9
g9
c1
g1
c2
o6
c2
g1
c1
o2
r6
c1
r1
c2
o8
g3
c2
g1
c1
o2
r5
c1
r1
c2
o9
c2
g1
c1
o2
r9
c1
r1
c2

result:

ok correct

Test #69:

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

input:

roroggrooo
ggoogrrogg
ggororrrrg

output:

40
o2
r7
c1
r1
c2
o8
r8
c1
r1
c2
o8
g7
c2
g1
c1
o9
g9
c2
g1
c1
r6
g8
c1
g1
c2
r9
g7
c1
g1
c2
o9
r6
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #70:

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

input:

rggggrroog
ogrrrorrog
ooorrogggo

output:

65
o2
r9
c1
r1
c2
o5
r9
c1
r1
c2
o9
r9
c1
r1
c2
o1
g9
c2
g1
c1
o9
g4
c2
g1
c1
o6
g7
c2
g1
c1
r6
g5
c1
g1
c2
r9
g9
c1
g1
c2
r9
g8
c1
g1
c2
o8
g5
c2
g1
c1
o2
r7
c1
r1
c2
o8
g1
c2
g1
c1
o2
r9
c1
r1
c2

result:

ok correct

Test #71:

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

input:

ogorogorrr
gorgogrorr
gorgoroggg

output:

55
o9
r8
c1
r1
c2
o6
r7
c1
r1
c2
o9
r7
c1
r1
c2
o1
g8
c2
g1
c1
o5
g7
c2
g1
c1
r1
g7
c1
g1
c2
r9
g7
c1
g1
c2
r8
g8
c1
g1
c2
r9
g7
c1
g1
c2
o3
r5
c1
r1
c2
o2
g3
c2
g1
c1

result:

ok correct

Test #72:

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

input:

rgogrooorg
rroroggoog
orggorrggr

output:

49
o2
r9
c1
r1
c2
o1
r5
c1
r1
c2
o9
g7
c2
g1
c1
o9
g8
c2
g1
c1
o8
g5
c2
g1
c1
g7
c1
g1
c2
r8
g8
c1
g1
c2
r7
g9
c1
g1
c2
o9
r6
c1
r1
c2
o2
g2
c2
g1
c1

result:

ok correct

Test #73:

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

input:

rrggooorgo
orgggrorgg
gorroroogr

output:

43
o2
r8
c1
r1
c2
o9
r7
c1
r1
c2
o4
r7
c1
r1
c2
o7
g9
c2
g1
c1
o8
g3
c2
g1
c1
g9
c1
g1
c2
r7
g5
c1
g1
c2
o9
g4
c2
g1
c1
o2
c1
r1
c2

result:

ok correct

Test #74:

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

input:

grororrggo
roogrgorgg
ooorggrgor

output:

50
o1
r9
c1
r1
c2
o8
r9
c1
r1
c2
o8
r9
c1
r1
c2
o9
r1
c1
r1
c2
o9
g8
c2
g1
c1
o9
g9
c2
g1
c1
o6
g4
c2
g1
c1
r6
g9
c1
g1
c2
r9
g5
c1
g1
c2
r8
g8
c1
g1
c2

result:

ok correct

Test #75:

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

input:

rroogorgrr
orgorogogo
rgoggorggr

output:

56
o2
r7
c1
r1
c2
o1
r7
c1
r1
c2
o1
g9
c2
g1
c1
o4
g7
c2
g1
c1
g8
c1
g1
c2
r8
g2
c1
g1
c2
o3
r2
c1
r1
c2
o2
g7
c2
g1
c1
o8
c1
r1
c2
o2
g4
c2
g1
c1
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #76:

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

input:

rogorgrrgg
rogoogrggo
roggoororr

output:

49
o2
r8
c1
r1
c2
o6
r7
c1
r1
c2
o8
r8
c1
r1
c2
o9
r7
c1
r1
c2
g8
c2
g1
c1
o8
g8
c2
g1
c1
o9
g9
c2
g1
c1
o7
g2
c2
g1
c1
r7
g9
c1
g1
c2
r9
g2
c1
g1
c2

result:

ok correct

Test #77:

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

input:

rgoroogrro
rgrgrogogo
rgoorrggog

output:

50
o2
r7
c1
r1
c2
o1
r9
c1
r1
c2
o1
r3
c1
r1
c2
o1
g4
c2
g1
c1
o6
g8
c2
g1
c1
r2
g5
c1
g1
c2
r1
g8
c1
g1
c2
r9
g7
c1
g1
c2
o8
r5
c1
r1
c2
o2
g4
c2
g1
c1

result:

ok correct

Test #78:

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

input:

gororooorr
grggrorgor
ggrogrggoo

output:

48
r6
c1
r1
c2
o8
r4
c1
r1
c2
o6
r9
c1
r1
c2
o7
g4
c2
g1
c1
r2
g9
c1
g1
c2
g5
c1
g1
c2
r9
g8
c1
g1
c2
r6
g5
c1
g1
c2
o1
r5
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #79:

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

input:

orggrgrgro
goorrroogr
oogggorogr

output:

60
o1
r9
c1
r1
c2
o7
r9
c1
r1
c2
o8
r4
c1
r1
c2
o8
r8
c1
r1
c2
o1
g8
c2
g1
c1
o1
g9
c2
g1
c1
o8
g4
c2
g1
c1
o5
g9
c2
g1
c1
r2
g8
c1
g1
c2
r1
g5
c1
g1
c2
r5
g9
c1
g1
c2
r9
g5
c1
g1
c2

result:

ok correct

Test #80:

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

input:

rgrgrrgooo
ooggrgooor
rggororggr

output:

51
o2
r6
c1
r1
c2
o8
r8
c1
r1
c2
g9
c2
g1
c1
o9
g9
c2
g1
c1
o7
g3
c2
g1
c1
g7
c1
g1
c2
r8
g3
c1
g1
c2
r3
c1
r1
c2
o2
g8
c2
g1
c1
o8
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #81:

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

input:

rgrgogrgro
oggroroogr
ooorgrrgog

output:

53
o2
r9
c1
r1
c2
o1
r9
c1
r1
c2
o7
r9
c1
r1
c2
o6
r1
c1
r1
c2
g9
c2
g1
c1
o8
g5
c2
g1
c1
o6
g8
c2
g1
c1
o9
g9
c2
g1
c1
r2
g5
c1
g1
c2
g7
c1
g1
c2
r4
g7
c1
g1
c2

result:

ok correct

Test #82:

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

input:

googogorrg
grgrgroogg
roogroorrr

output:

44
o5
r8
c1
r1
c2
o9
r9
c1
r1
c2
o1
g3
c2
g1
c1
o8
g9
c2
g1
c1
r2
g4
c1
g1
c2
o6
g5
c2
g1
c1
o2
r3
c1
r1
c2
g2
c2
g1
c1
o2
r9
c1
r1
c2

result:

ok correct

Test #83:

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

input:

goorrgrgoo
gorrggrrrg
goorrooogg

output:

51
o9
r8
c1
r1
c2
o9
r9
c1
r1
c2
o8
r5
c1
r1
c2
g8
c2
g1
c1
g9
c1
g1
c2
r8
g9
c1
g1
c2
r9
g4
c1
g1
c2
o6
g8
c2
g1
c1
o2
r8
c1
r1
c2
c2
g1
c1
o2
r2
c1
r1
c2

result:

ok correct

Test #84:

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

input:

rgrrogrgor
orgroorrgg
ooggogogor

output:

57
o2
r9
c1
r1
c2
r9
c1
r1
c2
o8
r5
c1
r1
c2
o9
r8
c1
r1
c2
o7
r7
c1
r1
c2
g9
c2
g1
c1
o9
g5
c2
g1
c1
o4
g9
c2
g1
c1
g9
c1
g1
c2
r8
g9
c1
g1
c2
r7
g3
c1
g1
c2
r9
g8
c1
g1
c2

result:

ok correct

Test #85:

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

input:

roogogrogg
rgogooorog
rgrrrgrorg

output:

45
o2
r2
c1
r1
c2
o1
g7
c2
g1
c1
o9
g8
c2
g1
c1
o7
g9
c2
g1
c1
o8
g8
c2
g1
c1
r1
g7
c1
g1
c2
r7
g5
c1
g1
c2
o9
r3
c1
r1
c2
o2
g2
c2
g1
c1

result:

ok correct

Test #86:

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

input:

rogoggorrr
grgoogrooo
grgrggorro

output:

53
o2
r3
c1
r1
c2
o1
r7
c1
r1
c2
o7
g6
c2
g1
c1
o8
g9
c2
g1
c1
o9
g5
c2
g1
c1
r1
g5
c1
g1
c2
r7
g7
c1
g1
c2
o4
r4
c1
r1
c2
o2
g5
c2
g1
c1
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #87:

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

input:

roogoorrgg
rrogggrror
goororgggo

output:

55
o2
r8
c1
r1
c2
o4
r9
c1
r1
c2
o9
r8
c1
r1
c2
o8
g7
c2
g1
c1
o9
g3
c2
g1
c1
r8
g9
c1
g1
c2
r9
g9
c1
g1
c2
r9
g9
c1
g1
c2
r8
g1
c1
g1
c2
o7
g9
c2
g1
c1
o2
r7
c1
r1
c2

result:

ok correct

Test #88:

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

input:

rogggrgroo
oorrgoogog
grgrgororr

output:

50
o2
r4
c1
r1
c2
o5
r8
c1
r1
c2
o1
g9
c2
g1
c1
o1
g9
c2
g1
c1
o8
g4
c2
g1
c1
o9
g9
c2
g1
c1
r8
g4
c1
g1
c2
r8
g9
c1
g1
c2
o9
r5
c1
r1
c2
o2
g3
c2
g1
c1

result:

ok correct

Test #89:

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

input:

rogrgggrgo
gorrgorrro
rroggoogoo

output:

64
o2
r7
c1
r1
c2
o7
r7
c1
r1
c2
o6
r8
c1
r1
c2
o1
g8
c2
g1
c1
o1
g5
c2
g1
c1
o1
g5
c2
g1
c1
r2
g8
c1
g1
c2
r1
g9
c1
g1
c2
r1
g4
c1
g1
c2
o5
g8
c2
g1
c1
o2
r3
c1
r1
c2
o9
c2
g1
c1
o2
r8
c1
r1
c2

result:

ok correct

Test #90:

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

input:

grgoroogog
gooogrorro
rgrorgggrr

output:

49
o1
r6
c1
r1
c2
o1
g8
c2
g1
c1
o9
g9
c2
g1
c1
o9
g9
c2
g1
c1
o5
g4
c2
g1
c1
r1
g9
c1
g1
c2
r9
g9
c1
g1
c2
r8
c1
g1
c2
o3
r3
c1
r1
c2
o2
g9
c2
g1
c1

result:

ok correct

Test #91:

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

input:

ogrorroggr
gorrgooggr
oorgrgroog

output:

49
r9
c1
r1
c2
o8
r9
c1
r1
c2
o9
r2
c1
r1
c2
o6
r9
c1
r1
c2
o1
g8
c2
g1
c1
o9
g5
c2
g1
c1
o5
g9
c2
g1
c1
r2
g5
c1
g1
c2
r1
g8
c1
g1
c2
r5
g9
c1
g1
c2

result:

ok correct

Test #92:

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

input:

grorrrgggo
ogorrooroo
gororrgggg

output:

63
o1
r8
c1
r1
c2
o8
r8
c1
r1
c2
o1
g9
c2
g1
c1
o6
g8
c2
g1
c1
o9
g5
c2
g1
c1
o9
g9
c2
g1
c1
r8
g9
c1
g1
c2
r9
g3
c1
g1
c2
r9
g8
c1
g1
c2
r5
c1
r1
c2
o2
g7
c2
g1
c1
o8
c1
r1
c2
o2
g4
c2
g1
c1

result:

ok correct

Test #93:

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

input:

grooggogrr
oorrrrrggr
ggooooggor

output:

65
o1
r7
c1
r1
c2
o1
r9
c1
r1
c2
o1
r9
c1
r1
c2
o1
g9
c2
g1
c1
o7
g9
c2
g1
c1
r8
g9
c1
g1
c2
r9
g9
c1
g1
c2
r7
g5
c1
g1
c2
r9
g9
c1
g1
c2
o6
g4
c2
g1
c1
o2
r8
c1
r1
c2
o8
g4
c2
g1
c1
o2
r8
c1
r1
c2

result:

ok correct

Test #94:

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

input:

oroorroogg
googorgrrr
gorggrrgog

output:

49
o1
r8
c1
r1
c2
o7
r2
c1
r1
c2
o6
g8
c2
g1
c1
o8
g9
c2
g1
c1
r2
g5
c1
g1
c2
g8
c1
g1
c2
r9
g9
c1
g1
c2
r7
g8
c1
g1
c2
o5
r6
c1
r1
c2
o2
g4
c2
g1
c1

result:

ok correct

Test #95:

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

input:

ggoorgrgor
ggrooogrrr
goroorogrg

output:

55
o8
r8
c1
r1
c2
o8
r8
c1
r1
c2
o7
r9
c1
r1
c2
o1
g6
c2
g1
c1
o1
g9
c2
g1
c1
o7
g9
c2
g1
c1
r7
g5
c1
g1
c2
r8
g9
c1
g1
c2
r9
g9
c1
g1
c2
o9
g4
c2
g1
c1
o2
r8
c1
r1
c2

result:

ok correct

Test #96:

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

input:

ggrorrogrg
grororggro
goorogoorg

output:

57
r8
c1
r1
c2
o8
r9
c1
r1
c2
o9
r8
c1
r1
c2
o7
r5
c1
r1
c2
g7
c2
g1
c1
o9
g8
c2
g1
c1
o8
g3
c2
g1
c1
g8
c1
g1
c2
r8
g9
c1
g1
c2
r6
g8
c1
g1
c2
o7
g2
c2
g1
c1
o2
r4
c1
r1
c2

result:

ok correct

Test #97:

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

input:

gogggrgrro
goooroogrr
rggoorrogr

output:

55
o7
r6
c1
r1
c2
o8
r9
c1
r1
c2
o9
r5
c1
r1
c2
o1
g8
c2
g1
c1
o9
g9
c2
g1
c1
o8
g9
c2
g1
c1
o8
g5
c2
g1
c1
o8
g9
c2
g1
c1
r2
g8
c1
g1
c2
r6
g7
c1
g1
c2
r9
g7
c1
g1
c2

result:

ok correct

Test #98:

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

input:

ogoggroogo
ooggrggorr
oggrorrrrr

output:

40
o7
r9
c1
r1
c2
o1
g9
c2
g1
c1
o9
g9
c2
g1
c1
o7
g2
c2
g1
c1
r2
g9
c1
g1
c2
r9
g9
c1
g1
c2
o7
g2
c2
g1
c1
o2
r4
c1
r1
c2

result:

ok correct

Test #99:

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

input:

grorogoorg
grorrgggro
rorogorogg

output:

50
o1
r8
c1
r1
c2
o8
r8
c1
r1
c2
o5
r7
c1
r1
c2
o8
g7
c2
g1
c1
o8
g2
c2
g1
c1
r8
g8
c1
g1
c2
r9
g9
c1
g1
c2
r7
g8
c1
g1
c2
o7
g2
c2
g1
c1
o2
r1
c1
r1
c2

result:

ok correct

Test #100:

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

input:

ooorrrroor
ggrgoooggg
rrgoorgggr

output:

43
o9
r6
c1
r1
c2
o9
r9
c1
r1
c2
r1
g7
c1
g1
c2
o5
r3
c1
r1
c2
o2
g8
c2
g1
c1
c1
r1
c2
o2
g9
c2
g1
c1
o8
r3
c1
r1
c2
o2
g8
c2
g1
c1

result:

ok correct

Test #101:

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

input:

oroorgrrgo
goggggoorr
oggrroogrr

output:

42
o1
r9
c1
r1
c2
o7
r4
c1
r1
c2
o8
r9
c1
r1
c2
g8
c2
g1
c1
o8
g4
c2
g1
c1
r2
g8
c1
g1
c2
r5
g9
c1
g1
c2
r6
c1
r1
c2
o2
c2
g1
c1

result:

ok correct

Test #102:

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

input:

ogggrgrogg
roogrrgoog
orogrrrroo

output:

55
o8
r9
c1
r1
c2
o8
r8
c1
r1
c2
o1
g8
c2
g1
c1
o1
g9
c2
g1
c1
o8
g3
c2
g1
c1
o8
g9
c2
g1
c1
r2
g8
c1
g1
c2
o7
g2
c2
g1
c1
o2
r8
c1
r1
c2
o9
g2
c2
g1
c1
o2
r1
c1
r1
c2

result:

ok correct