all_your_base

Le sujet est ici. Vous pouvez tester votre problème chez Google mais il faut le valider sur ce site pour apparaitre sur le scoreboard.

Input

100
11001001
cats
zig
howareyou
gentlemen
allyour
baseare
belongto
us
hahaha
102345678
111111111
z
abcdefghi
tbto4ot
tcu
p59pp5i5a
45iui6i1f
opppaapoa
i2jv7
mggi2i2gn
1xxf3ppxa
wbv9b9bjp
ggydgy
8585885gg
wllwliw4l
vzyvzon2y
x1xfldrdl
drtpzco
i5xfx
qdjj3ajaj
3333
sgkaaggsg
osjoojjjo
sam
ytytswyvs
k11dgzz4
p9bbb
hnhnn11n1
33bb33333
g636nxgbn
1v4gj5
bvbb5bb7b
mnmnmmmmn
0bzqozzop
guuugg
6oo2kk3yj
igsb7rirb
g7e30e0g0
vr0b2
u
nil4n45n4
8rhdd
nnhuunv2h
fzfxnyfx
ddcvvcvvd
0170cc0yk
frr
00unxwjsk
ffuuhf44f
d4dcc4kcz
7j66j6676
rri2
1js11jm1s
8grqgq68m
0hsjv1ggg
d
us7ytusfy
csnnsc
7
u52
d05d5d05d
ptmp
x0g
yveesyvvy
izvvitvtz
127j5s9m
txx2t22x2
jkykjkyjy
22yy2
l
xymymxxex
t88r5dt0k
8sxx6400o
iiixp
mk
bbo22b2bo
i3ffbvffb
mloz5z
39wmzvj
xbvxy9yyx
9oc2g24o
mmtytomtt
e
sus
p2c
aae0qbveq
maqm02qoo
coefo1ojc
cz

Télécharger l'entrée

Output

Case #1: 201
Case #2: 75
Case #3: 11
Case #4: 17419143
Case #5: 1801622
Case #6: 47225
Case #7: 17273
Case #8: 866022
Case #9: 2
Case #10: 42
Case #11: 44317196
Case #12: 511
Case #13: 1
Case #14: 44317196
Case #15: 4537
Case #16: 11
Case #17: 425704
Case #18: 6056833
Case #19: 6782
Case #20: 694
Case #21: 399079
Case #22: 1700069
Case #23: 1796933
Case #24: 345
Case #25: 7406
Case #26: 66716
Case #27: 1781528
Case #28: 1746783
Case #29: 123717
Case #30: 302
Case #31: 430572
Case #32: 15
Case #33: 77572
Case #34: 8422
Case #35: 11
Case #36: 407922
Case #37: 283349
Case #38: 107
Case #39: 7364
Case #40: 415
Case #41: 1777749
Case #42: 8345
Case #43: 71261
Case #44: 350
Case #45: 1801973
Case #46: 35
Case #47: 5806884
Case #48: 1802589
Case #49: 434109
Case #50: 694
Case #51: 1
Case #52: 432358
Case #53: 303
Case #54: 476470
Case #55: 82982
Case #56: 9421
Case #57: 1785305
Case #58: 4
Case #59: 18954615
Case #60: 82557
Case #61: 413839
Case #62: 8582
Case #63: 38
Case #64: 75062
Case #65: 1797059
Case #66: 6062181
Case #67: 1
Case #68: 1801689
Case #69: 316
Case #70: 1
Case #71: 11
Case #72: 8458
Case #73: 34
Case #74: 11
Case #75: 76609
Case #76: 76268
Case #77: 2177399
Case #78: 7202
Case #79: 8123
Case #80: 25
Case #81: 1
Case #82: 74333
Case #83: 5807080
Case #84: 6042574
Case #85: 119
Case #86: 2
Case #87: 9444
Case #88: 430563
Case #89: 3473
Case #90: 123717
Case #91: 427466
Case #92: 300378
Case #93: 84176
Case #94: 1
Case #95: 5
Case #96: 11
Case #97: 1980039
Case #98: 1785563
Case #99: 1797151
Case #100: 2

Télécharger la sortie

Il faut être logué pour pouvoir envoyer une soumission.