QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#9734 | #801. 回文自动机 | Qingyu | 100 ✓ | 25ms | 126576kb | C++20 | 1.7kb | 2021-04-09 22:53:38 | 2021-12-19 11:46:00 |
Judging History
answer
#include <bits/stdc++.h>
const int N = 4e6 + 50;
int len[N], fa[N], ch[N][26], cnt[N], p, tot, lst;
char s[N];
inline void init()
{
s[0] = '$';
tot = -1;
len[++tot] = 0, len[++tot] = -1; lst = 0;
fa[0] = 1;
}
inline int get_fail(int x)
{
while (s[p] != s[p - len[x] - 1]) x = fa[x];
return x;
}
inline void ins(int x)
{
int o = get_fail(lst);
if (!ch[o][x])
{
++tot;
len[tot] = len[o] + 2;
fa[tot] = ch[get_fail(fa[o])][x];
ch[o][x] = tot;
}
lst = ch[o][x];
++cnt[lst];
}
template<int T>
struct fast_io
{
char p[T], *p1, *p2, q[T], *q1, *q2;
fast_io()
{
p1 = p2 = p, q1 = q, q2 = q + T;
}
inline char gc()
{
return p1 == p2 && (p2 = (p1 = p) + fread(p, 1, T, stdin), p1 == p2) ? EOF : *p1 ++;
}
inline void pc(char c)
{
if (q1 == q2)
{
fwrite(q, 1, T, stdout);
q1 = q;
}
*q1++ = c;
}
~fast_io()
{
fwrite(q, 1, q1 - q, stdout);
}
};
fast_io<1024768> io;
inline int read()
{
int res = 0;
char ch;
do ch = io.gc(); while (ch < 48 || ch > 57);
do res = res * 10 + ch - 48, ch = io.gc(); while (ch >= 48 && ch <= 57);
return res;
}
inline void putint(int64_t x)
{
if (x < 0) x = -x;
if (x >= 10) putint(x / 10);
io.pc(48 + x % 10);
}
inline void output(int64_t x, char ch = ' ')
{
putint(x);
io.pc(ch);
}
int main()
{
scanf("%s", s + 1);
init();
int n = strlen(s + 1);
for (int i = 1; i <= n; ++i)
{
p = i;
ins(s[i] - 'a');
}
long long ans = 0;
for (int i = tot; i >= 1; --i)
{
cnt[fa[i]] += cnt[i];
}
for (int i = 1; i <= tot; ++i)
ans = std::max(ans, 1ll * len[i] * len[i] * cnt[i]);
output(ans);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 35
Accepted
Test #1:
score: 35
Accepted
time: 2ms
memory: 13792kb
input:
bdgedcfadbabbfgeacdgbggaefddebabbfgeacdgbefaecfddffeddacbabfcgecedacbffeddacbabfebadggfafabcdfdeaabdeecgbcecegcgecedacbfgdagbgagafdegecadfebcdbgfacdecdegecadfebbcdfdeaabdbfgcbccfcaebcecfdfccagdafaeaacbggaefddebcbecdafageeaabcbdafadcbecdbcgcbdgedcfadbcaefbdfcbgfcdeceddaaffgcedfcdcgdcgbfdddfdadgagbbeffcfgfeedgegdagbgagafbfaaffgfaaebcecfdfccdfdfbefdgddadgagbbefebcecfdfccdegecadfebffgcedfcdcdaaeadeebcedbdagcaagdgcdfbabafbdebgacaabdegecadfebebdbfgegadabbfgeacdgdcgaefccebfeddacbabfeecgbcecegeaabcbdafa...
output:
5594
result:
ok answer is '5594'
Test #2:
score: 0
Accepted
time: 1ms
memory: 13876kb
input:
bdgfcbabegfbbbgecfbddbaceaefbebgeafdbbgaebebdabgebabacccebbaebeafbefaabdgfcbabegdbaceaefbegcaegagcdgcacccfbbfgffgcdgbccgecbdbcagbbcacccfbbfgeegfcaecbcebebdabgebbbebbgcfafbbbgbdbabgbabfgdfaggfbcbabeebbdaagacgbafecebfccdbgfacgcabefaaedadeacgdeegfcaecbcabacccebbacdbbdceeegcdbbdceeegbaccaecfbgbbebbgcfaffbbgcceafggfggadgcebbabfgdfaggfbffdafbacbbbgbdbabgdgdbcfgcadgccaedcaaddgdbcfgcadbbebbgcfafeegfcaecbcbbbgbdbabgebebdabgebeddecaagdfffadbaffadabceedfbacfbcbabeebbfbbgcceafgaggbggdcdaaggbggdcdabbbgbdbabg...
output:
7308
result:
ok answer is '7308'
Test #3:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
baeedcbgaeaabdcaeeagbeffgedegdfcggaeafeegccecbacaaaabdcaeeaggedcbbaebfbcbbbebeaeagedddgabgccdecfeegcababaddfcabcbbbebeaegabeddeedaaabebgcafgeefgeabcaafgcbcfaafgadddgdbccbcddfacfcgdeefgeabcaagbgbgdbefdcefcacafcagcfadegebcababaddfcaffbfgdfecefgafcfgddbagfgceabefcaaebagddabcbbbebeaedaddaacgfcabeffgfgegbffbddafgdagedddgabggedcbbaebfadgegfegbbeeddcbffgggcfadegebcdecfdafagdababaddfcaaaagaedfcfadgegfegbbbgdaabdeafeeddcbffgggbgbgdbefdcfdedabgdebgdaabdeafccdecfeegccfccfgbgacdaecbegbedgcdeafcbgggbgbgdbefd...
output:
6011
result:
ok answer is '6011'
Test #4:
score: 0
Accepted
time: 4ms
memory: 13820kb
input:
fadabcedabffccgceafdfgebfgebdfffccgceafdfbabeebbccbcebdaabagbdcabbebbgbbdddddcfdfefcfgcaedcdfbfcgagggeacabgddfdggddgcgagfefgeafdaefefgeafdaefbabeebbccabccadccgcbbdddddcfdfadabcedabgbdegbcgdecfcefaedcffadabcedabadgbbacdfbfecccfacaaggggffddffffbcgacfgbcbeadagbfffefcfgcaedgeacabgddfgbcccdcgegbdcabbebbgfggacfdeeeegccgdfbceeabedbabgfefdfabagabcabaccdbgccabaccdbgcfecccfacaacabaccdbgcdddcbggfcgbdcabbebbgcbeadagbfffbabeebbccbbdddddcfdgdcfefegfbeabedbabgffecccfacaaffccgceafdadgbbacdfbadgbbacdfbgecbefgafd...
output:
5874
result:
ok answer is '5874'
Test #5:
score: 0
Accepted
time: 4ms
memory: 13804kb
input:
efggbbfcabcdfbceagadfagaeegbegcbfbcfcgfbgdfffcdeagfcggffcacbbadedceffedbgafcbegdggabccbcecfcbfegdcbecdedfdeebebecffcaafgffabgbgedfcdabgbeffaagbffcdccaddcadgbbcadedgcfbgbdefggbbfcabddccdefedagebfbbfadfagagedffaagabcgbcffaggfebdbefdcfecegaeggggdacedbgfcdedfdeebececbfefeegdebddaeafbffabgbgedfcfcdgcaaccddccdefedafcbfegdcbeggdacedbgfgbegbcbbgacfcdgcaaccffabgbgedfedbbfgdceegccccbabagcfecegaeggddcadgbbcafaeegfgdbcgaacbcabfdgfgabceedafaeegfgdbcbecffcaafgafaeggacfecfecegaeggcdabgbeffabaabfecegccdedfdeebe...
output:
5751
result:
ok answer is '5751'
Test #6:
score: 0
Accepted
time: 4ms
memory: 13792kb
input:
eafdccagcbcaeebabcggdgdfcdfgeacbgcdfbgcabdegdbbaabgecbaaagffecffedeffcedcdgcecbgfedbdgabfdcbefcecdfdfaegccbfeefdccgfbfebecffedeffcbdegdbbaabeafcbegcbagecbaaagffefcdafgageffefbcceecdffabcbbdbefcdafgageedcdgcecbgcaeebabcggfbeegdaccfdffabcbbdbcbefcecdfdcdccfcbadcecffedeffcdcgaagfaegddecgffafcdgdfcdfgeaabbeebcagededfbdgdfcecffedeffcffefbcceecgdgcffdeabeafdccagcbacgbfaeacdegeagefgaadccfbeggcfeeaaegbbfadffabcbbdbfaegccbfeecccegbgfgbgagfbegadccffdecfafaffefbcceeccccegbgfgbdbaagddbddcbcgaecfeaeecgaefgac...
output:
6156
result:
ok answer is '6156'
Test #7:
score: 0
Accepted
time: 4ms
memory: 13692kb
input:
aecedcggbddbeeadcfbcaebcdceeegbcbaegcecbfefbbgbcfgegbdaggeebdfebbaeddgffdgfedegbaecedcggbdbbddadfageebfadbbegbaaaffddbdacdgbgbdggfgebaaebcfceefgaedacdeeecaccecgdcbafafccffdaedbbegagecfcdbbacceafeaabbefccgbgceeabcbaegcecbdfgacggffbdcbafafccfbfccfbgggadddddacbfeeebgdaddagcdgbgbdggffdaedbbegabcbaegcecbcacgbgbgeegebaaebcfcdfbbadcceceeecaccecggebaaebcfcbfccfbgggabacbfdfgggfafagffdacfafagffdacecbdababdbdceeaacageeebgdaddageffgaffaefbceegbaebefbedgcebfagecfcdbbacbbddadfagedbeeadcfbcbceegbaebebcbaegcecb...
output:
5662
result:
ok answer is '5662'
Test #8:
score: 0
Accepted
time: 1ms
memory: 13788kb
input:
aaffagaebeecbgagbccbafgceadgeebdgffeceacbgcbebggfdbgcbebggfdadgceeggefaaffagaebeegfafdeeecaaffagaebebgaabbebcaaaaceagaabcabddacfebbfbefagdbcdaggeggcfagdgfddegcabcddaefcdcaaaceagaabecbgagbccbaaffagaebegbagabfddcbdgffeceacccafcbcdcagcebbbgfggbfbefagdbcgddcdaadafgcebbbgfggccafcbcdcaafgceadgeebfbgbbddebadcdccgacgebdedgaddebfdbgdfcfgdgaadddaadacccbgdeffacccbgdeffebdaadaaecfcgefeeffbdddcaefbggggbaaddggagddcdaadafcdbfbfedbbeafdffeegageacdabfbabgaabbebcaeccdfgbgbdaaddgdbfdgadgceeggefcabddacfebggbaaddgga...
output:
6006
result:
ok answer is '6006'
Test #9:
score: 0
Accepted
time: 4ms
memory: 13972kb
input:
bfbbfccggagbeddgdcbdfecaedcedefgfeaabdcaebabegdgdebbddaefebgcefgfcagdbgccacgdbcdadbeafcedeffbeccebabacedebabagadfgbdcaeaadbacgdfbgabgdbafeadgbfbecfccbfgeecabgfafacefbgbcebbddaefebgadbacgdfbgdagefcefgeddgagggedefgafgdbgacffbeccebabgbeebbdafegbeddgdcbdcefgfcagdbacafdggbacccebfdcddgadbeafcedecefgfcagdbabgdbafeadfgafgdbgacfecaedcedeagbddabfagfacefbgbcegbeddgdcbdfecaedcedegbfbecfccbagbddabfagegbbaefeedacafdggbacfbbaecfgcgegbbaefeedfgafgdbgacabgdbafeadfbbaecfgcgfgafgdbgacedgbddgagbcafccbbdbgccebfdcddg...
output:
5966
result:
ok answer is '5966'
Test #10:
score: 0
Accepted
time: 3ms
memory: 13800kb
input:
gbegegfcdbbdagefbgadbfafadedacdbbffcbagfcgebcbbeabedbedegbdbebfcbcbffddeadadffffadccgfebbadbdcdfecbadbfbfeaefadfdgfeaebfcbgdbfbcfebdagefbgadedgaeecegbeaffcddaggcafcddaffccafcddaffcgfdegffaaeggadabffaddbaebcffcadbaebcffcabfafadedacdabgaccfdedbfbfeaefadeadadffffeaffeffaffdbbffcbagfcbbaebfbfgebfcbcbffddbdcdfecbagfdegffaaedeadadffffccdedfafbgffbbaabbdedbaebcffcaebfcbcbffddbaebcffcadgfbbaafbfbgadcgabgbdeadadffffbaeefgcdcgdeadadffffdbagbgcfadgfdegffaaeaddfdfbgcgeaffeffaffccdedfafbggcaaeaagaddeggefcfcd...
output:
5997
result:
ok answer is '5997'
Test #11:
score: 0
Accepted
time: 3ms
memory: 13972kb
input:
cihgfkaabfcjeehlggeihjadhfkjdfegfiibdidefcdehjgkkhjfldaeelddklklgjdkbeidjahlkjligjdhjffddfljlbejibdgllkddjcccddajbkfjkfkecegichgklaeccfcgjidfkgckhafjeabajihcchghkchjfjkkbeeajcghaillghbcidglkcldfkkkegjdgcjfecjbaekhcadlfefcgagjdgebkgafagdeijfkgcebkkefbblkdlajccehgiidfahkfblfjafgikaacjfddalheeelcjifafkijdfejkjcdkkchfljbclcegfjekjdghifejhgjjeehikcgbiciaedaclbkdegefjacjdjjlkdgkgddcdbehjjfheihlfefjkheblecabhgkkddcceahkakfjhageehicajbclhhfgcbjhjefbiidhhcgalcdielfjhlcccgaadhjflaccjbdjhicaifhjiklhibgbgcd...
output:
3028
result:
ok answer is '3028'
Test #12:
score: 0
Accepted
time: 1ms
memory: 13800kb
input:
xbqpbhaecvtkxghbvkmwarwpsrjwhgqnojrdskecifmlbcbctlolyjdswhhclojnnfcynqqfvcchkuehqxgbuaqsnwotkfskrnmkwoonkhcvwwmplrxlfjvaepipcegcekikifaxpqclhwmstfifhnawojfngbphtfftcewckdeseoxnfwdtymodyqlewkbcjwtyufrevupfapglxllumkvspbebirrytpcmodoncourbanwyylnwugxujjtdwgyjipayvmgucnqnrpwqplwpdsocasjykituacpagydmympjueindogcetpnwapviffgqervsfctfumejeoehitfvdunpgckafqybwdyvtysyxvauyyfgkksqlfvjowfpjqudjdwvhcikrcskqaxhdgktccpblfjxkvvlahwtaexqpwgxvldubyhxdqpgyfgfcptnjohquiegletacuexdppgvaickwbafqdyahrcoidbunmbflyfxa...
output:
1481
result:
ok answer is '1481'
Test #13:
score: 0
Accepted
time: 3ms
memory: 13804kb
input:
tobdfhlrhrypwivkkpiugptzudfkxlxkprusxvwlhwqinpfwdxelgpgrfkmkjfoovtwrinkdpehykvkksgswkikxbowttkqdpkvevjbrigecweqaehejnugxnukpqcueewuazbzfbijnvrqlimbipyeyxhszbdqeduibykofvyqbhgxecowsrrqzpboxzafxinkqtxgcavjiezzjoqweqtupcxgjtxgxxzanmwamwhpzyxqxgouhgnkvqglgunyqnawrwlqpxhtdscimoedcwpuwbqhiygbfoshwjkvquisdydqnwyboimcdtcrqcumdpikaussefurcpsmwglclovoviztcrqyaqwgevlmocqjjejwkxrzxqkaevvfascrpynyhluaeiozgxzzmegmdroiwkbwsbjjrqtgtzbdyiiccvpfnzlxfqrrhawkjtwmepjcxvlxsmlkyfifplsdkapbpxkzpgalcqyixvzuckdziqoiumgje...
output:
1437
result:
ok answer is '1437'
Test #14:
score: 0
Accepted
time: 3ms
memory: 13704kb
input:
epkkjklkmnmgajmqaqfdepfdlhockegkcpekmdmfaphqmqpqopjhngpblcephamlqmekfnqjoknnkmbodonbfkmobeddbmplkallmeqipgdimpiqfeficqknaeapllechkpdamdpeoanqoghnlhfggaihfnppbmfdnjcokjfakladhdmdiejcecaheilbeoebgfgcfjlngiphlqeemgopopmonfcccpjhleijllfngdomcqhkfcidmkgqqgoqegikioaoodkokhaklaihlenckifchcjoibffdjqflgqfmdokjnifedknhiindgnkodaqnecbanmbodenkkcggmadghlimomblimmhkmjgoebibjfbmjipqjogijkkdejmkkckbgoijnhcognjfeochnlgogjbjanhalqihpfehqplhqbolmjdhjhnhnhfapigqjbkhochbdpgiqbmndlmcdiionmlllgndacfemhonglqbinoghghji...
output:
2190
result:
ok answer is '2190'
Test #15:
score: 0
Accepted
time: 3ms
memory: 13808kb
input:
acbabbcbaacacabcbabcaaacaabcaaabccbabcbcaaaabbcabaaabbacbcaaabcccbaaccbbcabbaaababccbbacacbabaaacbacbcabcbbcbabccccccbbaacacbcacacabbbbbbcbcaaacbcbacccaabbbabbbcabccbabaabcbccbacccccbabbbbbbaaccaabbccccbabbcaccbaccaaababbcaaabcbaaacbbaccbbcbacbccacabbccacbbacbabbcabcbbaccaabbccbcbbcbccabcbccabbbabcbbbcaaaccbcbabaabbbabbcaaabcaabacbbbabaabcbaabcccccabcaccbbaccbcaccbaccabcaabcacbcccabbacaaacbccacbcbbaacaccccbbacbaabbcabcacbbbcabaaacccbbabbcbbccabbbababccaabacbacabaccabcbbababaccbabcaacbccbbcaaacba...
output:
15924
result:
ok answer is '15924'
Test #16:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
bhdxinplnrkvahvgamiwqnuqpgmivqfufihnsjcimgfdkjsrqxhqxwdxfocovgpasgnxrvioxpsolcxmfxuhfpeehmmfsgcggenvovhmqtvnohtrgdhkdoonojjdvlvelussuegcpkmfvtdpawqeowewbpxbipqmgckmrarknfkqqbfgvbmbsjtilnbpgwpsbwrfvlfqsdtnwsscwawwgtmunewtgjujwniavsjrcewocbxelgntqfmrfvblghjcdemxtvxmlupgxotjnxrnhemxwpjtghcokiibbujodawxrgdwgekxqlfrmamfaurbkwltnboulmmcucribjxljrwoojvfcinduqfpxjuwarkdlemcjcjhcgekljcdudxgqlbgmjoouvhiivkueuxodrgfqpfqrqmbgrxaklokosrbabowpaqkarpmvqijpulwcjhevuvpcpgclcmudpwkknseqgvplnqkppiwjmxfdpntlmelhxoe...
output:
1548
result:
ok answer is '1548'
Test #17:
score: 0
Accepted
time: 0ms
memory: 13808kb
input:
hgroaoogpmsnobkfecoqlebndmblggaerscolcqerhgobfdmialndaaaqjisghbljjqefnklsoqeicimqcplfohjdajhpecehlgqilimkrksleroqqrqhoppcpsknnaaonspddgdpoqqhdifcqpfqrkljlokcgsibeqmrhagkkseaeapqaboeglocqpipambsjdhpslqajkmsinddrhcjmrhiiakopjqhginnhkreobjpdigloolkhkdjefbqpshpqcpearjapkqlerkllljefflqcrcgkcrchfndgloncegqrmfqdlogmpcijammjhnnfqcdnrkncjboiqkanhsqdaalqbqijcgghkdganfmksbankpdikhdiekjjmddifdgmmpgemanosgkfdfmcqsjaasgnhrnchjocdgagsomaolagdgesqamaobqddgearfdshbjkmhhbbjrngscjbshsjgnblapcdqdqleknrhsprecmorccco...
output:
1976
result:
ok answer is '1976'
Test #18:
score: 0
Accepted
time: 3ms
memory: 13848kb
input:
vbofyszrvwsdixyhngfqrunnmhivyilqiwxsdayfmdyovagfbeddpdwmpnfsunmtlxjvrizfzknqgrirtygwdmqdnqubzmryqxqjzfvrgmlebiverkcqaqpdiapbktwaixerxkewhtqfvgtlrtxuesxjhkdsbjdqnkuvivypgqlycjurldmfydcxictjwbjpdwqimbfxakzrljrekrxkestdeseewcetuaquqvbwxvqgacfvaeiycmmtyvxsxfmpdnvylkybngtoktxwforvxkhmludmkljxdoquhyvmmevkndjwamzvxcfxhuztfvprrjnijclsysaawzbwqysbziapjsvsajidnafknzppjiwrvzguneobszffipftkmxmalqhwzlyepzyysdaoekqzoynnvpvehnttmqtalqbuamhjkwslvdpcwjcjxxyjexhszpogxjvoavqvgycsyvjgmsqftsznivqprmefteodspbsjigsnxv...
output:
1412
result:
ok answer is '1412'
Test #19:
score: 0
Accepted
time: 0ms
memory: 13820kb
input:
lldkkjfeihgcdkaeijblcggdmbabmejbmljljjeicleelhfjagckgkflfggemmalgjeekdlhmjeghcibhgfmdemjljgjkmfjaidmiaeeeifeibdfmllhacickfgdfihajkfcemajmdfbmeefimfgbmlggfmgiecdedabakhkaafabijhagaihbcgllgfklbfemmecbagfabkdahakegdmgdmajhaeijglkbemhadmhfbaagbhialbkkdblfflcamieidichbhagbmgifijgjdjidbfejaaamjddbbabmbhagfglmahklmidklhkijkcklbkjiicmacmhgljaddadlcaebmefjmacffbhaekjihagfedjieeelddmdbcimfgkekmbdcijhhgkcbcfibmhmjdiljgfdacbbkihkikljfbdkafhgajkccjhemgfkcibfeldmilihakfecdeffmicmieabebhkgjbgjcaiaegabbkcmbjbch...
output:
2773
result:
ok answer is '2773'
Test #20:
score: 0
Accepted
time: 2ms
memory: 13872kb
input:
hheahpaoepdahfdeqliolckfaogjamlakobiahncibelepjbfgjpjofpnhnpgelaafcofkjlpcoaejbmemjaigncdfioeeflqcpgjeehqehfnqnjpqoidomgbpeehiliaalokmpkfqbhdaggggdkoefkheljfhqlaqnjokafpgceqaohgipkncheacgdlooqjpqdioddcqjgpkbceipjnfflnmfqgbjkomlndbpqcmfploeeemcjjajnaapcmflbolocohbnckafgemghqffmpfaohdopnifjgikadnapdqadeeqcdgdeecfijhnobjocpmafhcejimolahnipmgbeoqqheigfhdblahdhfmfgiqafkjfoqqnbqplkeeqkkbcficaioiobgjbeokbnflomagnfpejngdiqmddqpddcheikclfaonlgjjhpcjboedfibmekfqdbneaapcajelmibmiokpbqmadkioagnmebhijoimgibl...
output:
2120
result:
ok answer is '2120'
Test #21:
score: 0
Accepted
time: 2ms
memory: 13816kb
input:
hrkmbslgoiahkuaanfkrthtriresittllrjptqidbokqisorhdmcnsamdkcbokuhhlcgfqihbcehbrfnggorroeqrnpcfltfrbmnksslngaemigpsckalephiuuqjkhjqmumntfdrtitudflftnasefhkotpfibanafjueadhkelkqkhteijueqtnobdqgjolnjiqeictqgubhufdneampstmckeddjpenuisdgdqelmpmlrfblemsojtracnsagfiopsfqnarqjsictamuljpuadattmeudqnfddapmtseotkabijkdlubhsbuagfnunsmalscfeqgtlanujghqkabosrboqrcaeejesdkpuhudplieuhfrcnguuldhlsghugjmtpnlcbgqoqktsqdlkpntpifkmularklostjbsflljeeojqpehekddjoupohlrghndoobkcunkbmkqcbgcaesplgdrdkbnaiuhttihiinqpljqlsi...
output:
1773
result:
ok answer is '1773'
Test #22:
score: 0
Accepted
time: 2ms
memory: 13808kb
input:
efbedhachhgdhbhchecbgbdedgbhddbhebccgegbfgcdgeghhehffhcfgafgeabdehbhehafbaagcfcbecadhagdebfdedcdfgbaffeffgabfdafccabhabhbehhbegdcfehadehabaacbgcfgehffdbhaaagggghedfhaefdhagbgeffahadbbcdcgdfgacaebgdheabahggeacfahgeedbgadgebhdahhgbebhgbgaghhaheeffgbbdcchddacdbbceeefccbeafgdgbagabdhggfgbhffefabcagdhahccabccghebcacdcgebahcagehfcccchehheccedcchfbfdhbdaehheefcebbhcfcaeafhddbfagddagbegbafdbddhaegefhgacggfbecdeghacdaeefccehhacbahffgffcbfaghgbgggcebdaecegahefcdgebdaaefhhbhgcccgbaeacfabdcebcefgebdbchhfgee...
output:
4464
result:
ok answer is '4464'
Test #23:
score: 0
Accepted
time: 0ms
memory: 13808kb
input:
ibjiwmcjcnneglnnkvqrsfnowvgrcqqcwuwgwbbntduorslqgfhfqowannwocthiwwuwuvohnvldknewuhkbkcbvqmfhmfpbvfwekmjsgbdbgvewebjnddgwbjcruphqedcsoiqgfrwampdaachuejdkjdsntvwgcasdwlspqmjshvamcgsmviwwghpbvdmccmccoclbfcntjtparjspjsqkbgumnfpvsqdqorhcjkfhwlkvdlmgdghibjkdwhilvkcjbsusenaedekbqsuwskqlrwvhnnraoiqmljaberummfcgbkcptkkijohtidvtffdbmlquqlvhhowuatvhwcufiukjulqrfutjmheamrcfwqpskgdoovcqjenpbhkgftqdnqbsdemibqorbesmemsrewiuqpmbwmnsakcdhenntnhbkdcmffnkvkkcmvcvmnclsqvcajlbwdhcloowktdwhecohvcufglrigacvoqjpprumasn...
output:
1605
result:
ok answer is '1605'
Test #24:
score: 0
Accepted
time: 3ms
memory: 13716kb
input:
gywcydgphaftrvrgycaavbmagbwecbclapeytmcbsirkhkdtgehkqvvpdcrijochiatbfiseyacbyqykcxcllitvliopmxtbcybatlbaqlwliruoiqbadtkgbppvxcryxyycsdbmxywexbrssjrnppkwkucgkjbkdxcrdtnaynqrjjohwfyyciikfojscwedqqqprdpipvcomfdtevejwumquinswmjvofcefmjabxqvkirrsrphlfigxktufdgijaicbcfhsbnnnpuklkrbbfmjbwvoveunnkcfacvdkwgqslsdlmmxurdfonjsylwdkjyqulfcsqhrbowkmmxyalbospilamyvewfgeiibmfphqxwrdisqajpdqqnddphamgruotcnhjvtowmstvynksvmsaqpcyjimtyxiymxafnflkburfltoljbivtgcimcohinqkmkdjaauetemdyqkavsxblbpkwixktdmffafbuphulmsjwf...
output:
1487
result:
ok answer is '1487'
Test #25:
score: 0
Accepted
time: 2ms
memory: 13800kb
input:
cdeabecddaabdceecaeeecddbadddbaebebdabecebcbeecbcdebaadedaeebbeeacccdeeecdbdbadaedccdabddecdcdadddacbdbcabcacdbedaaebebcbbeeceacbdadbdabedcabddcdddbdddcdcaebaccddbabccbdaaeaddebebebcbcdaecedddecedcdacadeccccadddebcdebcbbddccbcaedecdededbbceeebdcaceecccbdacaaaaceacebbdecabaccbbcebebbbddbccedcccbcadbcecdcaaddbcdebcecadbccbcacdcdaaebcddabbbcbaedecbbbecbbcecdbaeedcccaaccbceccccbeaeaceeeceacccccdedeecedbbbdcaadcceaecdecdccdeddecebcdaabbaedceceabaebaaedcceeeeebebcebcccbddbaababbbabbddeaabccceecedacaec...
output:
7073
result:
ok answer is '7073'
Test #26:
score: 0
Accepted
time: 4ms
memory: 13808kb
input:
cbbbacaaabcbababcbcabaccaaabaaccbccaccbaabacccbbaccaaccacabcccacabcabbcacbbacaacccabacbabbbccbcacbcbbababcbbaccbbbbbcacccacaaaabbbaaacbbccabcbaccbbcaaccccacacbcabcbacbbaaacbccaacacaaaccccabccbcacbbabbaacaabbcabbccccaabcbcabccbaccabacabcabaacccababcacabacbbbaacccacbcabbbacaaabcacabaabccaaabbbcbcaabacccbcbbacbbccbaccbbabcbcabbccbabbcaaabcccbbcbccccbabccbcabcbcabbaccababcabbacaabcaabbbaabacbcacacbabcabaabcbcbccacacccbcaaabbabbbabacaabcbcacaccccabbcabbaaababbbcacabaccbcbcccbbccccaaacbababaabbbccbbca...
output:
15764
result:
ok answer is '15764'
Test #27:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
jeaaiibjbcagfeihgehccdcecadcaihecefiebheeigagghchaebaijfdbjfdabgggheggdigbcbebiibacbhichbghidcedebehhgafdaehgccbafhibgjahaefjcciabgdhaehjbgfccbibegchhfagejfcjjcjfbedcieegcafghacdhgagahejdddgbcgjdecchfffjcabaecbehgadcihhbcfajbfdgcddhjiaacaidgggbjifdedfbgcbgeaehbgfhadfdjjhhjgggehehjcdfcegffdjicgfidifebeghjiafiffbciajiieghhajdaceaadgdjaeeccejdiacichbghfgehcdheeajaddafbiaieedfeffjhajjcabcjhbchbacigfbdgceecjijeejagfaeiaecgijdhbhdafcjgdaehefagigbjjbgdcijdddibfgddbgggbjaecaehfhehijbhffbhieagbeahaeegcce...
output:
3583
result:
ok answer is '3583'
Test #28:
score: 0
Accepted
time: 2ms
memory: 13788kb
input:
bkogogclbdkgoddeopcqiimllehnkiokpjpcapheqeohhdngckljhekpnpgibmlhfrqirnhpkkkplgkggcfqingmdmdqbgffffqbllbjefqqerrekclhlkeclgcrclqankqgcnnrrmdmpqmldfbeolmeaafgrcfcbfgekilgfllrqqdnanpmfgqihjnicaanlkhpmqrldqonogqhjnebgglgjrkhbredoranhqgfgphdidbldmfqjeeebhrqjoenppiiejqljedlelppdhkoapgcdlihkiqmqgcmkikfpdiokcjeeifiheflnileoagfolhencdhrgqqmdqmrobpgnblgnncenkhdopjonlhoecjmbefrlkhmbphdgbloijofmdhbamjlmompdfbdkqkkcnrkboqcomclrnjifbliomhfilbhhjrnaorpohnfmnaohqprlajnnibccfqcbneqmnkmipqcoaqpdqhnqijbnkbokepleal...
output:
2017
result:
ok answer is '2017'
Test #29:
score: 0
Accepted
time: 2ms
memory: 13824kb
input:
dmfdicakllkhjcbfpkmdaoimolgpnjncnijcnikhjodehgnifdbjpjjhlbaobkndlnbehefonknlfkjikdonddkadgbjehjbcnnceopnbgeaogpnafankjpmfnochbcnjcjlfokkcmchfeedaokdodknalochdmjdgnkihombaclfehgohehbikpheiccpmofebkijlldfdimfjaeffpkgfpbhccfldbkhpnbbgogofcjmkocgodnghendannpphbhcnacoeloheocpecafnjopkhlfigajcnenbmnjegegilhfjkdojmfpkfgplkfiheoonlaekjekcdobgmddnoamhbkfmmhhfnjjnccnebgfccghodlbhpjoeaekfkbbdkpeddklcogijhemnfjpooffmolafapgeckgdfdanjmigdpmompgoemekipbcefceolngghniakfeinddkofaehpfeccmbmffdaogbimffccabllpbplm...
output:
2249
result:
ok answer is '2249'
Test #30:
score: 0
Accepted
time: 0ms
memory: 13724kb
input:
jmbhlcmaoopgbpgoifibbekilhbbnkbbmfmcbfpoofkmlnojoencbbjgejibmdimlfpjabmopfdhmfmlichcjcjjlollgmpkjamlideggjjpkadhbagclealldnlnmhleenhkjkhoklkepddkccooijefkiaoamaahppkadbhccefdbbieoaaoogjjpbdeogjllccijgbnhpfanbljnakmpnhhfdjjefbkmpmmnkoggfmlflgldaefkdhidcmmfmnnnbpgajhmgdfkcaahbpmjgknocbpbemhcefdlbldhnkdkppccnkdmmnnglocaicnpajiappcmkkdhbjhhknkhnpbfpfboedlafojkccmaakoncbbimnomlnkcepmjhkpiplkajkffeiecmmdjbanfmppmalkkadpppkdgjmbcnihjghmofkfcgfdddacmpibnflgdgooejhhbcpdpkoefnkpecnkakfpmljononcokidmdpokdc...
output:
2247
result:
ok answer is '2247'
Test #31:
score: 0
Accepted
time: 3ms
memory: 13864kb
input:
bdchdgiihadebebhifeadbbchccageichdhabgibbifeaaeiehchccidgeagdgafefadhabefabhfhefiifafghcbecbhfggdihfigbfeabbfhgegciehdbbggfidigcdahbeggafdiiggfedbfcbicehfbaaghciddgeaddfeibfhdcehfdafaichiiebcbgbgadefccafidabageagffhhfiihbiedfdebgacecdbhiadcgcifdfhfiaebdfgeiaacgceifiadiihbhifhgdhhhcbegdfgdhebbeaeegbcfhefhgdcfbifdcdgiidhcfgfbfgbcbfccahgchieegffdabahgaifaefggbdddfhgadcghicgcecicbeaeeghdcghgciieieieeechiachfggdiceggfffibcdghdfhhedgbighihecihdccbbhgbihifbgdiheaeiachfgcacdiecicggibfbgcgbifhhiagfcedche...
output:
3952
result:
ok answer is '3952'
Test #32:
score: 0
Accepted
time: 4ms
memory: 15876kb
input:
ddbgeicefegejhkdbbfeejjbgkjicchkbjkgkhckgdaicchhjjbfhbeikkjaedbaehjgafjcefdhfihecjjidcieecbegihabfighgbkbghcchbkefcfgkaekkgkjjdhdhfhefkbgdbajcbibjkgiebciibaejdeiahakddehdeibiagighjckcebhckdgdckkigadckdgkkfeghebjkjcddfaceijghdicdchgahajkaaedffkcfbhfajgdffijakchkkkfbhdahihhijkeekbghjfakhfhicdciffchkchgefhhkahdgdiegakfbeghgckgeadeiedgfkigkcgcjcjebjbjggbdfcikfcihfakgheadjbcghgejjhdfgeciibgaijhhhdjfkkfbjchfceekhgbaihbefeikgffaghagafdbjkbeicgiafagfbhbgibgifdjdgedjbhfgjcbjcbcbfkickeacbeahdecafbhfbgeiak...
output:
3248
result:
ok answer is '3248'
Test #33:
score: 0
Accepted
time: 4ms
memory: 13752kb
input:
gmlipprhnmgngbibehcerdjnccabfrcbkkjmligbacqcmqedopraaaqonmapprifimhrcilrjamonlkqiqmircjidoeqboogjcjdfrldnqncqdrapbqjmobgaoabiminjgdjngimhlomeeabrgponqgnroaijqpgkakinhldlekeaaclqabdmbmjnejqdaaaginaodnjnaeqfbaibjgjrkdhilddikocpnhrqognrffrnlpjbcpcbkioqlnrgharmhckookandnkfjhdajapbjfagljpbrriqqkercqnhrqdicqpagopoconippbclnalhjhkecjnpmbjkmcmjdigpffaeoembcammhnfgjjilcbnlomjphgrnnnajkemllmikffmkgolgblqhmfjemarracrmdfbpiaebjqkpophibonojegbkbabecdmoliommdfbpeccllhimmbldobkilqlqacefohopablmhdqrhdbfbqrjbbdk...
output:
2035
result:
ok answer is '2035'
Test #34:
score: 0
Accepted
time: 0ms
memory: 13968kb
input:
aegnnajjbnpkqajafainmbmcmrfnrmldjiqrlpaeerlqakgkbndegdlajofjprlkgdgrfdcrojldqlcqihnjfgamkhhhglffdropmlhljajdcrldrjneqlnnnggrrrmjcnggbenrjdboknrinpdrfakrbedcfhngqafbekqloggnmkmqlkcifrkgildfqgfjhqhbmkpheqqcfnrcldpjfnphkdheiblijiebkqkcmcmkmalhdjrafaohcrqfqeenmnrmalckggkdbloqakblbleheidbleodoiilgaapocngjphjdokpijfqjiifrefgijroafekkqkaifmhgqjmqniqmqlfjcpembjdlgqmjbhlcobnbldkmbooefacdcrahpedhfijiilecmepipbipbimjhhofeohgbchqdlfiablqahjcncqmpolfephkrfcardghkrhhfcdidarcckdljgnagppneljeooiemelgarigacqmhpm...
output:
2033
result:
ok answer is '2033'
Test #35:
score: 0
Accepted
time: 3ms
memory: 13792kb
input:
cdedbbbadbaebccbccbdddadabccedeaedeeaadbeeaeabcccbcbaeccdaaedabacbadeaddccededdebabbbeadcbbdeeecbbbbcdbcaabbbedddacdaccacdaeedcdeaceaaaabeebcdeecabdcbceebbecaaacccaeeecebbcdcdaeabddbaacabeabdadddabeccabbaecdaadaddbaaebbabbcedbcdebbebbaabadeaadadcebbddebeaccecacdaccbeeaadddeccaaadcadbbadbeacbdcdddbcacecedbabecedecbeeadedeaebbadbdebdbebeeaceeabcdadbbcedbeddacedbadbaeddbdcbaeecbcaeedebedacbaddbabbcbbeaeebceedaaeabeeaedacacdcbdacaecdedcdaccbbbbaddbadcbddecbbaccabeaceaabbabbaaddbdbbceabeadadeabbbbdeb...
output:
7056
result:
ok answer is '7056'
Test #36:
score: 0
Accepted
time: 3ms
memory: 13788kb
input:
ebknblltothuqdufqotatoulqgnmmhfjckaalshtvllkvmveaunlkkvsnpieenjdvckiblddejspgpemngqebqgcgkmrlbreutvuosjvlnrmspbeitlvaakfefverpjnlujsqrocbchpclamnhvdadusaktnbdhndhotojojmandnvqkifinbvtcemcbcvogtbjllhajttittjsfvqovhfsmpkujcfkdlbrrhqucqicdldtllcljhjegrebktfovcldoshvsrnhlqlgmqkifmbakgmuftrcolhgpcnbmqtlkukaunglbsaqrmpnrjlmrvkauallgqdgdljbcsooecullgofkroiioujmpamogehvibddrblgdqkccsdogcrbdciufnlidgrpsevbgaqpfckumbddmevtgkgrcngkjamepakjchlmavnvcuukigjrlvhhdampjqphqlegnfardehcgqsbbhvsrkeleeskrefcgemtbcmc...
output:
1667
result:
ok answer is '1667'
Test #37:
score: 0
Accepted
time: 4ms
memory: 13796kb
input:
grlhcvvnmcskprdrhjojiusojfkeaeqkjmnmsljdgjajqqfbkkqvnhvosdtoliiflfjaurdjahjeispsrlbpgannhvsqogmknujohhjohoshlshfdodisocpsvgomkdljummmalsidljfknsdeohtvqsphgtebatlkutpmdltdqgkroirboqjuufvkkacmorgumntbolgqjhrheicpjhkahiljhkqrfvmmvjosajqmgdaafkjitqudmieodmempkitesrdsfkfijgrbcbegkstutjqcbvhllnpjmkfhmarchlmflupetpuoclkbfhdmvbqlgarbdlhjksusmocvtnhdohmjequsbiuskbijmbbtiadocqbdiqhcebcfqjlhqfalrkkgkosqponhusdlinpmbnotepmgavfkbrcotmvsbtgguhukrjhljbkhmnukolrmoalgvbbqrvhsjscsoounurhlpsvfeoktsuipeitolkgndjaos...
output:
1653
result:
ok answer is '1653'
Test #38:
score: 0
Accepted
time: 4ms
memory: 13776kb
input:
checddgjigkdclhhgfeikhaijijdiibjbdahhidefdclhlfgfjifhgcekakfjcdhjlebchhekglbeeafigdjkdgikhbedlglgcegblhcafggcbabjidcdhakchiicdeiaakejikkabdecfclbkbafalagbgklcacidglkhaclcgefklddjaahihhlfhdejljfccdajjdecllfbafifcidkkjbikhlcjhejagbelldajbkeeecgacgghkfdlfbhdhllfdihhfciclhhkcllicbiidhgfgekhbfhfkdlgifcfbkkbgdaaaejeeehifhffbfafkllkkiealglccclcdbblaeieaibhgehblclahaebfbfhjjiljkdahefccgahafhgcabbgaikihfdifbeeaccfbgjidblecfgflafgfdaadhcbfchhbeadhdjlilhllikfgbgebdaclcfdagkgajgjdkecegdhggdcjcieidbjkbeblhgj...
output:
2986
result:
ok answer is '2986'
Test #39:
score: 0
Accepted
time: 4ms
memory: 15848kb
input:
ggfffhigbhacggggegcddeigfebcidgicideafaaghfgebbabfdahaiiffedbagfheaffaehgahaahaidahagdhiaihabecbiidfhegcadchdhidbhiihhdefgffaieiefdeaiadbbgcfibcediecadfdhaidcfhgiffgfaddaiidcafefffbegiaabgdbgigcfbiiacccdghbaibdbicgdbhfcicheiidghgehagbfihheaaabhhifigifigegihedaecegcgcchdgbccafdiegbifibdifcbaafffcffeiffhbgcifcbhehceaibibfebiagfiifhfgebaahgddgdgddbcbcihicgdbhiigggaehfabehgdgfddghhdecdiedihibgfaiddfbecfbacfficbiihcheidagidbiccdcgcabbigchgfcifhcheebgdgbidbeefciahfabfhbffhgcafcicabdaadehdccahdhicgdbbb...
output:
3918
result:
ok answer is '3918'
Test #40:
score: 0
Accepted
time: 3ms
memory: 13828kb
input:
ummgfeaecrtgkapkpsmcmactitkugcrffhshjpudirlrqffrrindmemsqrkjhoiathjjjtpfhepfrncpbbpdgpnqrmqrfekmonjbrhjbturipgfltgaesdfamemqtmaepfbglmlclsmfkcuutchtmsjdhlmfjjglpejuqpocnljabloikkbeaqmdsubcjunqfiddnutaapegnbanurnuiafagmhudsrmgiegnutuncgbprbbpfqhjpcamhpjkgbuqfblospqlditeljglgqclqihhtqdeesurpqefbhehjjonuubcjkqqglnmknqicbnaobeidjmbplpoaijhnjqasudfefcbfmemfbtbpaaurdsaekgfbdkubeajaaaoealpjgjkjigijhkfhtkjkilgmgrqekablasmhplpgqfdagenrlttjsbmoilhmmjduhokobobpglaipfiueghqtjpsdneljdnnuunmnnfufmrhuflfhdnblk...
output:
1773
result:
ok answer is '1773'
Test #41:
score: 0
Accepted
time: 4ms
memory: 13968kb
input:
ldkfjidefefcdfhfmadbdcdajmlcihglmcgfbdjidbhlalclfgihgmchdmjeclkcglbcaflfhjamebdmcmljcdjammhldaeijekgigehhfbbibljjfemiilfehjdklcdaaigjfjdcblkecfggdchiamlifgdibjeffljlmcffajafafadcimlgcggmmeamejfileclkhihjcmhcfahfjffhdmkjcmicijldllghegihddebchcchejbklfealaijhbamabfedijjhiljjbgdagkfchaabiajhgackmgaeabglblbhallmkddlffgbamffflgkkljbhcjmmmlkmjfdhjjmihmhllhmljaillgdlgbcdgikicbgidcbdfflgbkgiiehbldbjkdlmmhamiegffebldikjkmbljbihadghicjgafjahmeaccilciceeljcdgbmgfbmcmageagelgecceagkkbjdbaiedfadhkfblmjglifdj...
output:
2788
result:
ok answer is '2788'
Test #42:
score: 0
Accepted
time: 4ms
memory: 13816kb
input:
eudadvifjlpkmgchohotrddufliprbchvllqbmvllqkorvispiouqlfmutceufqijhecpssiagmacfufsgkncdgipfnmkbpertblvbkmmmgqkkapprjhbmccisilfcjciqvgmdvucovglbdcmqfhhucvhcbdhbbamrehrceadfavodqusggkakfirusaqpdbnlarhtofvtgmnecblfnddgclhdnevfmbemcbnkldmkdnggcpmuvnvcaonmqmafiehpcusiqqasoahugkmioscdbnkcuappfthjibopidjlqmkceopsqirlnnesbnvelqgfivshnofsdtgpudtfdpdbergjvunfjgcdnvhhsdgqbmfainqrqiphhfkcvveglbgmkikntknjqtvtufdbhkivppjsragocbdrjqqvihcansuqradaniuaqrgatdhsvdladetbcvvomojabhpksioimamjinhlqvhiklhbilvmnfkuoifjol...
output:
1683
result:
ok answer is '1683'
Test #43:
score: 0
Accepted
time: 0ms
memory: 15744kb
input:
adddcbdccbcbbbddbaacbbabbbbaccbdddadbbaaccabcdcbbdadcddcddbddcdcadddbcbcabddbbccbadbdacdcbcacdacbbcacbdcbdcdcadacbacdaadbdcaccbdccdbcacccbddccbbabaacbcdaccddddcabcdbbccbccaacadcacabdddddbbbacbccccadacbacdaaacbacadcbcddcaccccbcadadabbabbdcadabcacdaccaccbbabdacdadbcdabdbaaddaadaabddacbbbbaadcadacdabacdacdbaabaccacddcddccdbaddcdbaabcadaaccbabcddbcdcdcbcaadadcccbabacbddcbdcbdbbbcdddbbbadcadbbaabcdcbdaadbccddbcbcadbdcbccdcdcaccbcaacddccdbcdadcbdabcacdbdddcccccbdbbaabacaddccacdbbbdcbcadddcabbbaacadbbd...
output:
8968
result:
ok answer is '8968'
Test #44:
score: 0
Accepted
time: 3ms
memory: 13968kb
input:
gbgaddcgjjebdeicjajeafffffhagkejdhieaediajecbcejifchacfcghcjifdcgkbdeiehijakefbehdjicfgfbjahfjikkkjkdibgedjkjbbkejejekhchjiihejdhigjcgdfceefgdbfcdhjjkikfkdeebbjgbhkiefcaieihifdkbfggigaakkigdgkhkkgkedaeehedceagjgfjejkchhhccgejjijfhkekfbekjkkhaccdccghiidggedbidhdhhegkddgahgdjbekgiibccekcbhkkgahfkjbakegbibfjhekbdeagddefekgdeifhagekbccicegbidjgcbcgjebbbbidhgajgcbiiihjhijcdiibcifijkjibdejfcgbfagdjjadddckikbdabejikkbajcjajdidjibcdjfihjhdafbaccebbjhedhiijhijacegcdebjadgbebakgihkfkdfefgidahdkdeiaghikcdg...
output:
3254
result:
ok answer is '3254'
Test #45:
score: 0
Accepted
time: 1ms
memory: 13868kb
input:
clfigelkcgbhnmmlimcbeeamahehdcgnllakicheabimlbjkgaihledckhihamkkncjcbidiaccghlkabdanlclfncggdegajhbhfjlddkafkbinjeicfibklkacgjgafklihlhfihfhefighfabcjhfmnffbadgahcefgeendkjmeibngfeagefncnhjnfncilinciggklcmbhblgehbbmidnfbcagkedkdbfbgljadackjbjfffccldlmfelabhjhanlbffdllminghlgiejaajaammjeededldjimhbmlalklcdijmdbeifgijdgegeigeljdmedlilgfbfckfhhnaikknmlnicalkneccgbacknecjekkhgemegneacncinmfminaedjiidbafajdmabbcljbfgafedlinmgbaldbgmhhiienmlanakefhdklhlmnbkgjdmifcbmlbjjanlklmnfmaeekmnagehcbbeiiillfcja...
output:
2565
result:
ok answer is '2565'
Test #46:
score: 0
Accepted
time: 4ms
memory: 13972kb
input:
acacabccbaccacacbaaaabbccbbbbbaccbaacaababaacbabbbcbbbabbabbccbbbbaabaccbacccbabacaacbaacacaccbaccccaaacbcabacaabaccacbcacbccabbbbacbbcabaccabbabaccaacbbcaabacbccbbbbacbabaacaacccbcaabbccbbcaabbabccbcaacccbcaacbaacbbccbbbcbabaabaababcbaccbabbaacbabbcccbabaccbcbccbcbaacccaaacacbbbcbbcccabacbbbccbaabcccbaaaacacacbbacbaabbccbababaaaacbcabbabbbbccaccccbababbbaaacbbcbaccbbabcaaaabcbbccabccaababbcbbbcacabcaccbbbaacccbabbaaacabcbabcbaacbbbccaccbaabccbcaabaccaabacbaaaaacbacbaacccbbcabcbbaacacbabcacacccb...
output:
15624
result:
ok answer is '15624'
Test #47:
score: 0
Accepted
time: 4ms
memory: 13796kb
input:
hlhbhfqigdhcbocaokqdimjqjmlebepagmdkmkqgfhgdaambfdjpceefailflmbeeeicoipbqladfjfloeqgelbqeiibdbighflhngajgeebiniffkcigleiiilgnchlhjjmkmlngqbpchbjnlamjqcddebgiikoajpnkelcmcenipfecdcfjiikigfhjpodkialpgqodhaloookdanjdqikmgimfglqqgdnneohdghqlplcaaqlglafhpfagcemeingdomloagnjdllqhalkdniijhcalildbfgcincqgjnpqceagfgfbaaeomanolliibeaeeqgqckggdmjfofljjbkpbddaglopqhncjokkhnlidnkqoifnabdokbecebglhhdmjqjbffhhahmmlkolacmhkhmqifgcidfiicocpbpoebkcckqeefcammnpnaeffdllqajkglfkjhflmlfgejggmgclbqghbjfkccbafnpqlnlmmq...
output:
2150
result:
ok answer is '2150'
Test #48:
score: 0
Accepted
time: 3ms
memory: 13692kb
input:
ceaeabfaefccdbcabfeafafaccbbebadffebaafbcfcafbcbefdcdbdeaebdaffadefbecffacfedfabdabdeccfafaecfcafbeeeabfadbdcaedeaaacdfabeabddbffaebbaceddbcdcbaaffeafbededfcecbeefbcadeeecadbceaacfdbbcdacffcbecbfdccebaebbbaacbaadafbaeddcbbdfaddfbedefcbffeafbaebedbaefcabefcbcaaebbffacecedbedcbfaaddefdbccaafdacdceffcdbddffdfdeffeaafcecbdbacecbbdbbccbddbdfcaffbffefefedadcbccbfdbbdcdebadfcecadbcdeeecfaaffbbafddbeefbbfafacbeccffffdbdcacccfedeccdcafebabecfafedfdbafadffdeadfeecebeacaefdbcebafddeaddafeaebabddaacdfffafaf...
output:
5932
result:
ok answer is '5932'
Test #49:
score: 0
Accepted
time: 2ms
memory: 13752kb
input:
nirhbekjkmnjlridmghnoafphtqsptgakctalqibnsbtditcgaalqggmjmmrtdmttroqgtongmggedatjejbkjckmpqjgjkaienpmqefppsbhackarncrcrlenpmjmjcmiieiltotoiahsctbnnilpgakpnpmdobrqgsclonmlrkaeddbpdcaqetjhosjsohgodtestmmqklltoddlcdmcmkkkklgffpgjcgdktgrtgfdmnjdnmroemodhqsbaonpboblthacfslbebfhqsktreijheadhdbptjheojmlhjkineafdqrcnesflemqrmskstpqcatlfgolmmhhrqlpnrrojdacdedbfgllqlaqjddadajnfefsfpdmjnsoptfmrkhtirnhctroprgpejaggfrfiinpsrrjpiemsaflqssmnimatmqnimjsmeflcolllfdtiegeokikthfcscoqpgplgtadjffaksoqobjjqittptpbbjn...
output:
1822
result:
ok answer is '1822'
Test #50:
score: 0
Accepted
time: 2ms
memory: 17904kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
6352396311852
result:
ok answer is '6352396311852'
Test #51:
score: 0
Accepted
time: 4ms
memory: 13976kb
input:
aaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbrgvyrkficzxgfcxruoaovaaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazv...
output:
975744
result:
ok answer is '975744'
Test #52:
score: 0
Accepted
time: 1ms
memory: 13776kb
input:
aaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahqmruesfrcchowgnqoewwaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwx...
output:
280584
result:
ok answer is '280584'
Test #53:
score: 0
Accepted
time: 3ms
memory: 13824kb
input:
aaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaaws...
output:
291276
result:
ok answer is '291276'
Test #54:
score: 0
Accepted
time: 2ms
memory: 13788kb
input:
aaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaa...
output:
283176
result:
ok answer is '283176'
Test #55:
score: 0
Accepted
time: 3ms
memory: 13756kb
input:
aaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaa...
output:
73287
result:
ok answer is '73287'
Test #56:
score: 0
Accepted
time: 1ms
memory: 13816kb
input:
aaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynja...
output:
276480
result:
ok answer is '276480'
Test #57:
score: 0
Accepted
time: 2ms
memory: 11860kb
input:
aaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaa...
output:
1076053
result:
ok answer is '1076053'
Test #58:
score: 0
Accepted
time: 2ms
memory: 13868kb
input:
aaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaa...
output:
1036728
result:
ok answer is '1036728'
Test #59:
score: 0
Accepted
time: 0ms
memory: 13796kb
input:
aaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaa...
output:
62748
result:
ok answer is '62748'
Test #60:
score: 0
Accepted
time: 3ms
memory: 13972kb
input:
aaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaannc...
output:
265356
result:
ok answer is '265356'
Test #61:
score: 0
Accepted
time: 3ms
memory: 13816kb
input:
aaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaa...
output:
1097349
result:
ok answer is '1097349'
Test #62:
score: 0
Accepted
time: 0ms
memory: 13796kb
input:
aalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxourgsdqsfynvgnnmzdaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaa...
output:
26364
result:
ok answer is '26364'
Test #63:
score: 0
Accepted
time: 1ms
memory: 13772kb
input:
aaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaa...
output:
1022208
result:
ok answer is '1022208'
Test #64:
score: 0
Accepted
time: 1ms
memory: 13820kb
input:
aadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxkoeahghrxsmivycuvoaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaa...
output:
26976
result:
ok answer is '26976'
Test #65:
score: 0
Accepted
time: 3ms
memory: 13808kb
input:
aaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalr...
output:
297648
result:
ok answer is '297648'
Test #66:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
aaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaeh...
output:
299808
result:
ok answer is '299808'
Test #67:
score: 0
Accepted
time: 3ms
memory: 13816kb
input:
aaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaa...
output:
1031525
result:
ok answer is '1031525'
Test #68:
score: 0
Accepted
time: 2ms
memory: 13796kb
input:
aaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasv...
output:
303804
result:
ok answer is '303804'
Test #69:
score: 0
Accepted
time: 2ms
memory: 13876kb
input:
aaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxa...
output:
64683
result:
ok answer is '64683'
Test #70:
score: 0
Accepted
time: 3ms
memory: 13808kb
input:
aaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaa...
output:
1089726
result:
ok answer is '1089726'
Test #71:
score: 0
Accepted
time: 2ms
memory: 13876kb
input:
xfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxx...
output:
18736
result:
ok answer is '18736'
Test #72:
score: 0
Accepted
time: 2ms
memory: 13796kb
input:
boxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtibo...
output:
31221
result:
ok answer is '31221'
Test #73:
score: 0
Accepted
time: 3ms
memory: 13720kb
input:
jpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktg...
output:
7211
result:
ok answer is '7211'
Test #74:
score: 0
Accepted
time: 3ms
memory: 13776kb
input:
xjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjaci...
output:
15400
result:
ok answer is '15400'
Test #75:
score: 0
Accepted
time: 2ms
memory: 13796kb
input:
upyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzj...
output:
8263
result:
ok answer is '8263'
Test #76:
score: 0
Accepted
time: 1ms
memory: 13804kb
input:
gkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlb...
output:
54875
result:
ok answer is '54875'
Test #77:
score: 0
Accepted
time: 2ms
memory: 13824kb
input:
xlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxl...
output:
31221
result:
ok answer is '31221'
Test #78:
score: 0
Accepted
time: 2ms
memory: 13796kb
input:
xowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxo...
output:
45954
result:
ok answer is '45954'
Test #79:
score: 0
Accepted
time: 0ms
memory: 13792kb
input:
uidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidlt...
output:
7211
result:
ok answer is '7211'
Test #80:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
itekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlit...
output:
26901
result:
ok answer is '26901'
Test #81:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
qvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytg...
output:
8263
result:
ok answer is '8263'
Test #82:
score: 0
Accepted
time: 0ms
memory: 13780kb
input:
exkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkel...
output:
56061
result:
ok answer is '56061'
Test #83:
score: 0
Accepted
time: 1ms
memory: 13816kb
input:
kepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepke...
output:
45954
result:
ok answer is '45954'
Test #84:
score: 0
Accepted
time: 0ms
memory: 13824kb
input:
whdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmi...
output:
8263
result:
ok answer is '8263'
Test #85:
score: 0
Accepted
time: 0ms
memory: 13760kb
input:
dkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbq...
output:
13072
result:
ok answer is '13072'
Test #86:
score: 0
Accepted
time: 3ms
memory: 13808kb
input:
zwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmw...
output:
45954
result:
ok answer is '45954'
Test #87:
score: 0
Accepted
time: 3ms
memory: 13720kb
input:
pjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpj...
output:
37179
result:
ok answer is '37179'
Test #88:
score: 0
Accepted
time: 4ms
memory: 13756kb
input:
iwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohr...
output:
11666
result:
ok answer is '11666'
Test #89:
score: 0
Accepted
time: 2ms
memory: 15836kb
input:
knksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknkn...
output:
1195845561
result:
ok answer is '1195845561'
Test #90:
score: 0
Accepted
time: 2ms
memory: 13820kb
input:
bzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebz...
output:
45954
result:
ok answer is '45954'
Test #91:
score: 0
Accepted
time: 0ms
memory: 13828kb
input:
horqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhh...
output:
18736
result:
ok answer is '18736'
Test #92:
score: 0
Accepted
time: 2ms
memory: 17848kb
input:
wuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwu...
output:
1195983889
result:
ok answer is '1195983889'
Test #93:
score: 0
Accepted
time: 3ms
memory: 13796kb
input:
gbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbs...
output:
35577
result:
ok answer is '35577'
Test #94:
score: 0
Accepted
time: 3ms
memory: 13800kb
input:
iksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksik...
output:
45954
result:
ok answer is '45954'
Test #95:
score: 0
Accepted
time: 3ms
memory: 13728kb
input:
dtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjdd...
output:
18736
result:
ok answer is '18736'
Test #96:
score: 0
Accepted
time: 3ms
memory: 13724kb
input:
lrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmda...
output:
31968
result:
ok answer is '31968'
Test #97:
score: 0
Accepted
time: 1ms
memory: 13824kb
input:
omeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomom...
output:
37179
result:
ok answer is '37179'
Test #98:
score: 0
Accepted
time: 4ms
memory: 17792kb
input:
mimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmi...
output:
853689483
result:
ok answer is '853689483'
Test #99:
score: 0
Accepted
time: 1ms
memory: 17896kb
input:
eleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeee...
output:
975625225
result:
ok answer is '975625225'
Test #100:
score: 0
Accepted
time: 3ms
memory: 13820kb
input:
eedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeee...
output:
74358
result:
ok answer is '74358'
Subtask #2:
score: 65
Accepted
Test #101:
score: 65
Accepted
time: 10ms
memory: 13808kb
input:
jwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjht...
output:
2832804
result:
ok answer is '2832804'
Test #102:
score: 0
Accepted
time: 4ms
memory: 15848kb
input:
lrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexll...
output:
535320
result:
ok answer is '535320'
Test #103:
score: 0
Accepted
time: 25ms
memory: 126576kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
148148592592925926
result:
ok answer is '148148592592925926'
Test #104:
score: 0
Accepted
time: 11ms
memory: 15768kb
input:
abbbbabbabaaaaaabaabbabaabbabbbbbbaabababaabbbababbbababaaababaabbabbaabbabaabbbaabaabbbbbbbaaabbbbbbaaaababbaaabbabaababbbaababaabbaababbaaaabbaaabbabaaaaabbbbbaaabbaaaabaababbabaaabbabaabaabaabbbbbbbbbbabaabbabbabbaabbaaaaabbaabaaababbbaabbbababbbbababaaabababaabbabaabbbaabaaaaaabaababbbababbbabbabaababbbabaabaaaaabbababbbbaabaaabaabbbbbababbbbbbbbabaaaabbababaaabbabbbbabbbbbbbababbabaabbbbbbabaaabaababbaaababbabaabbaaaaabaaabbbabbaaaabbbabbbaababbabbbbabaaabaababbbaaababbabbababbbabaaaababbba...
output:
1128537
result:
ok answer is '1128537'
Test #105:
score: 0
Accepted
time: 23ms
memory: 15844kb
input:
cabaccaaacbbbbbbccccbbaccababcbacbcaacacbbcbccacbbccccaccabbaccbcbbaabbbaaabaaaaccbabccccbbacbcabcbabbabaccaaccacabacccabccccbacbcbcbaacbcccaaacbbbccacaacaccbbbacbaacabbcaacbacacccabbcbbcaccabbbabcabaaabcaaababcabacbabacbcabccbaccabacbcabccacbcbbaacbcacabbcaaaabcaaacbaaaacbacacaaabcbcccbbcccccaccabbabacbccabcaaabbcabaababacbbcccaababbaaccabcabaacabbbbccccaacabbbbacbcaaabbccbbbabbbbabbcccbaaaabaaccbcaccbabacbacbaccbbabbbbcaabbbcbbaaccbcabccabcbcbcbcbbabacbabacaabaaacbccbaaccabbcaabcaacccbabaacbbc...
output:
448552
result:
ok answer is '448552'
Test #106:
score: 0
Accepted
time: 14ms
memory: 15860kb
input:
bcadcacbcbbdbbbdcddbababdcacdcdccbadccddadadabdbbacdbbadbbccadacdcadbccdbcdabbacddadddbdaadddcaccdbbddaadadcacddcccdccdcccdcbbacaaadcabdadcabcabbadcdaddcccccaaddcdcabbdddbbaddaddcbabdcaddaddbbdcccbcccbcddbdacbcbaabacaaddbadbcdadbcddbdacaacdadbaccdbdcbababbbbcccbbbccacaccbabdbcbcaabbcabdcdccccbcccbdbcbdabddaadacbbabdabccaacbcbccaddccccdaaddcdcacadcdaacdcbcbdcadbbddadcdbcaacdccabbcbdcabddcdaccaccadbdacabcadaddadbdcaabbccaacccaababcbacaaadcbaaccaaabdcccaabaccbdbcdcaddccbbcdcacbdddbacabbddcbbcbbdbab...
output:
250704
result:
ok answer is '250704'
Test #107:
score: 0
Accepted
time: 12ms
memory: 15764kb
input:
cbcdbbbdadeddeebdeceebecbacbedbabccbdaedcbdabdbaeedddcaaeeeecdbedddebecbbceabbdeedeecceeeaaddebebcbdaabdcccbeeadeaeebabebcaccbebaaadddcccbbbbedacbbbeaaaaccdcebdbdddeabadcacabddaadbbcdadaadadedbeadbeaeebcdeceabbecaddaeaababbceddeeeecbebaeeaabbcbddedeaeeaaeaaaebaeaaaababababcdbaddbcbcbeabedacacddbddebdbaaeeaedaeabbecdaebeccaddbbbeebaabbcbedacbddabacbaaadacecdddabbbdbbbacdeadadaceebbbbdbdccdaeccbabaebcceaebebeacaadcbbabadbdcecbbdccddbaccdcdbeebbdceebbedbecbebdaddcaaadeeaecdbdbcdaddaeacaecaddeeaceca...
output:
200964
result:
ok answer is '200964'
Test #108:
score: 0
Accepted
time: 15ms
memory: 15804kb
input:
bdaeabeacfcceaaebdcdfabeaeadfbecaefbfbfacdceaaedfbbcfbfcbcebcbdbfdafcaaceecaaacdafdbfeeaadcdbdcedbcffcadacdfeeaecbfddffafbbdcbddafddeaeeebdcfccbbffddcddbffdedcbeaffdaddecfbbbbeadbaacbdeeabedbdffccabdacbacfdabccceffebcafccbbffebaeeeafbaccdeaddfdfdaffabeebbfafdfbfdaeeebdacbedbcefffcfafbcefacfdaddfacadcddcbbcbefcbcbbedcbefdbeecbcacadfadfcbfeaebdafcabcccddaeeaccecdefdbacdfcaceadfacebfedfdeabbeeaafafccecdbbeeafecadabfffdcfbfbeefdecbeecebcfcadcbeeedbfddcfcabbafcdbddfcaebcfacfdecdcbadcddbfefacaefeadbcc...
output:
167202
result:
ok answer is '167202'
Test #109:
score: 0
Accepted
time: 9ms
memory: 13820kb
input:
bfbdebfgfbeabcgdgfgdbceacffcbbecfbegefaeceadebdfbgdfdcebdaeecfdfefffbafgceaggacdedfbbgccbgcefebfdddbfafbfcebdgefdddbeddbgdefffaagecgcdfbbabeedcebdcgbfeccebceacffdbbegbfbdcbdfdagcdfeeagdbcfecedebfddeacegdccfgdggdacfagbdccgfaffcaabfdgbcfgccgadfcegfdcagbcbddagfdcdegdagabbcegeccafccbcdacfddgebbgcfgfeeecfbeebfgcfegcbfaacebfeebecbedgceeceggfadgegcggefbdbgbdbgggbafeccecfgcedffcdfcgafeabccegabbbdfgcagdeaebfebebfddbeeacfeccffgfdbgcaddedaccagegdacgfdefdcaggacgffffbgebfeeeeaeebabeebfagdegbbfcbbeccfccaccead...
output:
143591
result:
ok answer is '143591'
Test #110:
score: 0
Accepted
time: 14ms
memory: 13696kb
input:
cbcbfgccdfecaachfagfhageeabccaedhaaabcbbeebhaechgbdhbhbfddfhgbfdbhbccacdggfhdbffgecffdgbbfacdafdahcdaahfbhfadeaddchcgcgdgfcceegehehcddecbgcdhehfddhcaedhdhbfbfghgfgccddbdfdhbgdbbcbaaegbaahfdcdfhbhedfechhbdghhbfedeffcfggeefhcghacgghecfafcgefcccdebfegeffdhhdghfcefedecefdecfgdhcbeacfceagdceeghefagafbcdhaadgffcdfedcbeghhdbbcgdeadagffeffaghhadgfeheeddbcbhheccdgfbfdbehdeacchdehcfebaagggdcabbddbhecdfddeachdcddbfafgcdfddbbadcebfcbdfeebchacggfhdeadfaebfdfhagbahafhcfgfgcaeffegfbcafaagffdgbhhgachhcaecgcfhfa...
output:
125609
result:
ok answer is '125609'
Test #111:
score: 0
Accepted
time: 9ms
memory: 13812kb
input:
iibhhicgiefababhcfdgdgfbhfaeieicebceadddeeidicbgfeideaaihidffhabebdghghhhcfifhfiheafebebfehcdciaeahfigehihefegedhbffbcfgabcdfddcdcdegdfhidcdgiehgfchcfciidhhcdeagiheadefhfegfcdchcifgbiihbeececdcciacacchfchchdceagabaedefbbiafafaedagegcdadihhcddhhagibeggcdaicgbffifegeeiehhedaafiafaahecigdhbbaciebbcihfddbhiggeggafgiacdabfcaggddbchbcgbbdfdeicehgadeefagbaficecefbdbahcagcegdhgggddbbceidcbbgigieghfhcafhdfafdacggiehhgieaddgccabdiidfeecfehiieighafhbaefbiaagieffbdcaccbbghecffehdebfdicafbfgchghdccaicdecfiig...
output:
111691
result:
ok answer is '111691'
Test #112:
score: 0
Accepted
time: 13ms
memory: 13760kb
input:
ghfjfffahhjcffibfijbffcdjieihcbfhdgiiihgaedbbbbejdgcadebbfgbjjdfjccjidedicdgchjbccaehejgcdhbhecbgadaigfigjdgfdcihiggdiadcfjdjjiccibcbdjhgcjcffagfjejgcdfghfiffbbchjaejaibbgbagaegiafcbeffdehegdbgdibbjcjdbigddbdjgfcfejgijgajdcbdjfdeieheeigidjegebbhggcjiccaajebdgchecbfhaabhighiebffhfiijabbbehchhdiagbfafddcheceedefeccdehachbdchiibdciefdccajciifcegeachfebdfgcghdgjdejjcgfghhafdciadejbdjgbiffgabajjhdfecgcjchbgbaaibdaibjhaieihciaiiadgcjhdjdeccfijbjhgdigedfchcaifbaicbhchabidhdjhijhiiejhijhgbibgfdfgjfdbgbj...
output:
100298
result:
ok answer is '100298'
Test #113:
score: 0
Accepted
time: 9ms
memory: 15920kb
input:
ebkffdechjeggikjcigikihiabjeabifdeicffjhagakhcchgfbfjeiiefgcgidgdcbfkgeechbcgiiecaaabgghebkkgfkjdgefhadkgbhdegbaigeeajbheajhhfjbjbdkibcjigigicichcibjbahecafkdeahjhcfgibfhacddjihkgcbjbakkhbhbajaddhbfhidcjkgdfechajgbheejdgffddjffccedaccedjighgkbacfhchjgbkhhcjjakbhhcegccbaidhifbkjhbgjhfekebakahbdifjeegbdejejfdcjfgkbkihjdaccccckhcaidjafdfaedgcbjcgfhcffchhjhgedidekifdbdgkbjigjagecgiijiddjgdjcifdeekghjhkjfjjfhigjbcfdgbikidfhadakbgdehkddicjkeagbbfkigbkfchfdfdhadegeieiebeafdbbbcfcageceiedikkhjgjkfcieggd...
output:
91269
result:
ok answer is '91269'
Test #114:
score: 0
Accepted
time: 13ms
memory: 15844kb
input:
cblbfflebclliaaegihadfcidhchelhebfbffcjclicgledbggfficgahcakkbcbkjlbjgjeelkfiedklccjbifdjcjfkegkjadgkbidefikcjikbkfbkecdchcjejkhiebchhggdcdhbigikllbhhafeijkjfjabdgjbbjkkebfifecfciljgalffdaddflagfebfhccfbicegjlighlihbchkihgefdibhglbhbegdcflekafkclhihlhjbagljgaalklbelihelagjlhjfcjccafbfiaecgjikjeekacjiiecjfbihdcbgdcaceggfdilclgjcffbjjelllfbcidajhchdjldagedbbbgdicfhcgajaddiefkkilgkafdchjdfjfkkiihkelafccfclhkgjkeilalleghjclklcgelgdbllgfejdelgbiejfdjacjcecldbhbcieiccddcjichkigabailfffjaaffjbeiidefika...
output:
84019
result:
ok answer is '84019'
Test #115:
score: 0
Accepted
time: 11ms
memory: 15916kb
input:
ajkelheffflcgeibfjjmmamkfmbchgjmighddcjadjbheelifbkhjebgjkhigddbigagichblliilcbefmlbbjckamlafiiieichelkfdiajafiamlmjgfbhjmkchigjcdjgkhjamihebdbkdegbmmhdjjajceefhkimkdljlkbkhkhhilfimjkfeikcgdkgjehaddicgejmjbccaalailfmimekfimggigfigakfimmdbgcbaaigcldkmfcjfglaehaaaelmajjemfbfehdfcaiblhljhfffflekldfgdckblmgkabiiedfikkfiflkeajllkagdecilgcjecdbmddegbaajichcalakfjkekgkaelbffchamhhdghfkifdglcicjamdlgbiejhlabmhfabfkimkffafggaklmbahkhhbachelccldhdjkgdkigaekhkegmhdebjmckahgljcijljiedbcgfdhihlgeheggiiijdedd...
output:
77483
result:
ok answer is '77483'
Test #116:
score: 0
Accepted
time: 8ms
memory: 15844kb
input:
celcfehjelgbmlighjecmblmllafdbhcmngkekhnaaigbklbegafgnhahnmgdciiglimjidnegnhballbiclbckjegikggmnhikelkcdnclacndmfaigagcklcejccfnhmibnkekkbbjmhblcfjjhajgfblincngdagibhemcdbfngjlgegkmaldmkleaemklklmcifmeaaicdmcjdbbfkcdacbalklkkmghbkelbjehnmfjgjkcgmnlnibiiinmlldikfecjgimhndgcgffnglmdfbihhginfhnnmdjngkjecagfjnffndljhnlfjfikggkkfggmdiemhcfhilnmblakbabbeijdilhdklgeanjlilfcjjehbkmliaigbaldfjgfbdkhagcdgdaghchcablaidhnjcljnddfaiefmlliflekhnjnihddcbghdhhbfgjenbnjjjigefdfdehihanbcmannajfndamfalnefdejcgkacb...
output:
71704
result:
ok answer is '71704'
Test #117:
score: 0
Accepted
time: 17ms
memory: 15848kb
input:
jkaacaeheeegbnhkfccaalbbmiggbmimbhmcagjgafifbclgkebboaibbdllehdjhlkojakajjbllgcmnojfedjbfbcfdcidhhbfilkhfkgnbncgoboeadbliflchakahklbhnhbflncjimbklbmegjokdhonoagcndooiclbihfhnbllbgfiheecfbmhfjkbbecghlddmikgnkdciihnannoedbjbemjakfegonnnibbfmekellalhbodhjmgbbhcjndcmmginhahdjlkdjajangllgehgblgonblacmnjhobhiklndncafgehghikbaoffjgihlfjnikfgdgjdcihoknebjaacafelfjajaleiefnddbjajifcjhgdcebdkblfkaaaelehgeachakcbgeomdnohdcdkjfokfjlbndkgoaemacbcmgiionnmkeefidjglomgkcfhlokbofiakmbnkneladbgmaoholionjnohbdocge...
output:
67081
result:
ok answer is '67081'
Test #118:
score: 0
Accepted
time: 13ms
memory: 15804kb
input:
mnkinpdmfhgogdkjlacmlgjniagdfnbjiigjhldpcgeekibcjkfhpdojhmiaodecgincgkpmepcghbphmpincghlpjdpibnnomgggoodahmllcekideplbacihkjhpbmbhpfadcngkafonkhgeenkplpoapihnbocjeoonoekmemiocnigffegbmdkkaokphjfphacgncohjpeidodoajlfcbeiboflmoigganddimkfjifbcgegfopbjbpileacoidabnlokkaohoclhgpjboliofehnemmdkgednbloeleaabjmgpbfbjeoefdodafggpjnbmgoigpngpcdlolcebfooolbblabilcpofjjpmckfmgpjjkhpljfogcncmfmllepgcnmgikbonnfbbmpelfaiaeeohncnbppmbincdgbolnjlbkhjccdoipdigeiibdiocknjkobjgnkmmcfgpghgendbkmdadbcjmicnmbbnkodfcl...
output:
62928
result:
ok answer is '62928'
Test #119:
score: 0
Accepted
time: 16ms
memory: 13692kb
input:
edklplibffiapddpclkfkabqgmeidgbhqpoqmqpbbiikagnqjmjgclgimlhalnnpklgjofmknnplmkokqdpodjpcilndfnnmjafogqmdghnmqphajcqojfhfqnqdpcnkgckifjnfjimqgdbdojhclgicldhdioaldloinkjflddmakkmhqoancjagffeeijqneocqcbmaphcmoagglbdpqpqddkccigfghaakghookkjenadooodbpipfheomnqaghoegffcaqmpignckhcledfcdalliihmloildjccifcqqhdbohfcqmohkkhanohaedpohhnelanmfkagidkecchbcoloabfofoehqebkekomadpnlndnneijofoiddkipfnlcbfaplloifcjhlodkjqmoghglbmoaifpbbaapilnallapijgijjhlqhqbmcanhcbojmmempidqhenglcmjjkqnhemmohofblgpjoqljpldlnqifc...
output:
59153
result:
ok answer is '59153'
Test #120:
score: 0
Accepted
time: 10ms
memory: 13760kb
input:
pdpbmcmafradmbelqjkrnedekmdnamkafjnllnkgbiaglcfhmiladhkgqppeficrnaqngcdcojhdmdrcifnflbolgjkpncncjirqlargkrflceqkjrpromkgdhngngcfffnqnjaomckeigoqhhlncammjffbajrdkdhamaanebcpfdciroaagblmclgfhhffareggbjibdfeipmcgkdoebgddjdpaerfpkhjogprogjjkhpkkjbrkiofncalaliogrdeononlihaqhcaproofdplpapkjbolmprljgjmcomoebhkrjfnkdkoomrrokmknognbccqpkokjdkfqmcoqfjrbjdddhbklkjpbqlrepnnanfpblfoefgpdlilihojcnceccnklqdgmjdgdkpdmaffpfmhlaeimfhkjckhjjjjhgbrmlipmamggkmpehnrdkjmacagrpofpakcahikjnmmdrnbbociormbaggjegbagfbjcqjh...
output:
56181
result:
ok answer is '56181'
Test #121:
score: 0
Accepted
time: 18ms
memory: 13720kb
input:
fldrqrddichoqlkbeicnjbqdrgndpihnhjcrepgfkgrakqsadeirjerhslhqaqdjafrnnqflfqgadhoolpprksqrqohmjekdngaqqegsorbmmmicbdicnahaairlrriamfmpfogprdgbimbfgdbmgfdmeeipgsspnncrlglsnbnpponrkqsqfeigahomqojqbcemmbddidjcmomhsoackicflcsjhhdeenhijrosrkhkcrjdlamermnnlsjhfsahgscscbskfqrmicsceoqegcehlieobonlkikdqfbbbflorsomgealkajemiqmboojlhhnqjfmgromkfkslgsnpiscicgreqondhphdhsipqophdjoiijjhojmfaeddfcrccnlnqdsipiogenojaicjokmndlngnhbjqefkbnjcfcndksmpkhdqbnkgomfnmmisfmsgahacaenhebbceomgchrmhpbccojlerjfmjajhgiookcgrek...
output:
53046
result:
ok answer is '53046'
Test #122:
score: 0
Accepted
time: 11ms
memory: 15808kb
input:
iigioepemfdendcjhoikjkbmqcpdsqdcbarqrcamenctecpajdmfbsabaqaarctmpnandfestgjnhdbsokksljcsnfaemlpegfhfcnbpoopfqqfsifaojpmdoalpekdcfhmgrfdpatcfrbmlsffrkokfctqqsgbsqhkkcnprlikrlesjmqhdmcrejnsedieqrtqdqkostgqqggrphasiegkgcljmrqoirggrfrcjsgantphbfblorcbkfgtbjnmnspaiftebtbpoaiastmlcsoasboidrddbciffhonardchndieqkinqfibdlonmmmiaidpgnfhaktrpbkqrbmepepejiqbimbplsolqeirechtglhnjrihkkomijkijlggpfolieenslpcitlsjofgaebnlmfmjoeqtsmrenrkhoclisnjebbakfbssfnmcdtthcsathiopeaiqfqfjeeiapcahpnhtahelhinnffbfphshtfrabmo...
output:
50258
result:
ok answer is '50258'
Test #123:
score: 0
Accepted
time: 8ms
memory: 15856kb
input:
tgukkbdtlcmqrbrmroimjfjfkgagipjhmcetnqbbepkcfejqdsuhbtjfuhcqgnssjhpdtgegojtekqfgqamjlcrblsfljegfdukqijrcmnacjqumebkhokemmeiqeshseohihjseubtjkmkseocoiupepghtbulkanjofpqmcogesgbghpptiokcgfhclofiegrtriokfoajdkaodcsnddteobpplnhoioimchlmkqkgulikdokcsbintfninlqocselojgguboktpshpcgaticgpjntqfugdrsanmmkagmcibsegnidnbqrbcpfqfiokmdgkcjfapmigrhuqqnbihqhjekmiccfclrmudpjtfnnobpjfgplechdncdhqncdbifktrenfkkghfufsoanbpimgchbmttpcurbubkokdgjfeutnlcfhrcudnqrhfgehtjeqrmkbeffinrgbelnlcojradleimcpaoelkndjnbtcdegnmig...
output:
48082
result:
ok answer is '48082'
Test #124:
score: 0
Accepted
time: 17ms
memory: 15804kb
input:
gofskatgavmqhopgdduitcokqavlvgiceglfokrtcalchjckqiljrtsjtddnvfqgjlgcetsjdbptruclgvipptgsrtascpvtpeftuieunijoedtendteegubfuirfrpnoecrhopbdvugrefqtmbiashkkurgktldpopeuoafhnooaihrglooubemmtscvroulvfkbgdssjiblpahfchhdudjpglnpghukcesplmrfpsfpqkoiljinqaqspbshcceacnafdolireckcibajtdljgjbaffkcdvvumudbsasujmormhpaeqhpfkfhghrjuidljkpmksetkckeuebrhmodbrbmshhvgmgabcetfnlbdoihoqvdcmokdosflmisdjbqrruvrhmjolqpmgkiaisrjfqffoslcqrkkqfqolkilvipnopfkokksgdscnmsarelcijtkhuftekfckphncpjstamglmvnvggduccpjhbiftoeujtsa...
output:
45842
result:
ok answer is '45842'
Test #125:
score: 0
Accepted
time: 16ms
memory: 13796kb
input:
revervthrvdkwauhhnromjooeoctnpbvvmilwdeewltbmtjntegeoekwwrstoelbhvjobpeplbshjvdihdlegjidqvihhaapqgdfogokjignpmerpietrudcbrqgesibiteosmlinddsmwogfhigojrqnjoebpevurolkknsmotvlrbrjsksiiklnpwhlunrbguerhjhjbhnguasfmvihuumwbfgorecjacdnlvlibohwbjkscshgrmuissdprobarmnqoftggibqscnagbrdogvjbvjmithdfhsgcarvsemgtsominivnjaghagueajphjncmnrrcakwokmutqisqfojtdaqqnkavwuevkjijthupwagnrqgsbpgirsnthmfodauukobewbtalbomobwblblgaofkvhqaghiopegslvwcohhaeopbsmmpjwbppkdddlpjobnnnlimvogotlqmrjhjkoimbdhnbkkvpefnlehrglmaub...
output:
44052
result:
ok answer is '44052'
Test #126:
score: 0
Accepted
time: 5ms
memory: 15740kb
input:
aaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaa...
output:
30840117
result:
ok answer is '30840117'
Test #127:
score: 0
Accepted
time: 5ms
memory: 15868kb
input:
aaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafy...
output:
7354368
result:
ok answer is '7354368'
Test #128:
score: 0
Accepted
time: 10ms
memory: 15852kb
input:
aaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaa...
output:
29435670
result:
ok answer is '29435670'
Test #129:
score: 0
Accepted
time: 10ms
memory: 15868kb
input:
aaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahf...
output:
8396028
result:
ok answer is '8396028'
Test #130:
score: 0
Accepted
time: 4ms
memory: 13760kb
input:
aaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfqihjauurylaxrqpmckyjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbj...
output:
112152033
result:
ok answer is '112152033'
Test #131:
score: 0
Accepted
time: 12ms
memory: 15812kb
input:
aaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaa...
output:
1965708
result:
ok answer is '1965708'
Test #132:
score: 0
Accepted
time: 13ms
memory: 15860kb
input:
aaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzja...
output:
2267928
result:
ok answer is '2267928'
Test #133:
score: 0
Accepted
time: 8ms
memory: 13724kb
input:
aaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaa...
output:
2122308
result:
ok answer is '2122308'
Test #134:
score: 0
Accepted
time: 18ms
memory: 13812kb
input:
gffagfffdcfgegedfabgdggfedgbffggfeadbagecdeefffbebdggfedgbffbbeadcceggdfcegaaeecdcbbbcacgfbdggcffabbdcbbbcacgfebcgadeagbcedbebbgcebaffeadcgefdagaafeabbcddeaaeadeceadcdgbedccdaaadgdbbeadcceggafcdgdcfccgaebcdeddfeagecbeedgebcgadeagbdfcegaaeececeadcdgbefegfbafabgdcdddfagaeeffebcdbggefbdfcgebedggfedgbffdfcegaaeecdccdaaadgddggfedgbffaafadcabgbfgegedfabgdegaedadaabcddeaaeadggffgbebdeeffebcdbggcdeefffbebfegfbafabgefbdfcgebebfdgfbegbddcdddfagaeaafadcabgbdgbfeadecaafcdgdcfccecddcgaggbbaffeadcgeafcdgdcfcc...
output:
173974
result:
ok answer is '173974'
Test #135:
score: 0
Accepted
time: 18ms
memory: 15828kb
input:
deabafdbfcffddgcdffdccfdcgdeefefeadddfgbbabdcaedbgbadaadcbgbafcbbcafdcdbdfdgcbbebabdcaedbggafcbfadagccfdcgdeefcggccbgbcddbffbdfabecadceccdbcdfdacgfdabffddgcdffdacffdecbggegaacbeecabadaadcbgbccfdcgdeefgaebefbfbgafgdbgabcdbefdfefadaffddgcdffdgcfcgegdbgbgcdbbdggfafcbbcafdccadceccdbcfgdfbddfbeafgdbgabcdfebcdfacbcaaebdcbacaffddgcdffdgaddbdabdgbgcdbbdggfafgdbgabcdgaebefbfbgfcfgcebadgbgcdbbdggfegaacbeecaegaacbeecadbffbdfabedgbbaddgbaccfdcgdeefgefegcgeeeaebcecgbbbfcbagbegcgbbfdadeebcdfcbcaedadgcfcgegdbg...
output:
171917
result:
ok answer is '171917'
Test #136:
score: 0
Accepted
time: 9ms
memory: 13824kb
input:
efaebfagebfeaadffcaagedcaddffcbdgaabdgbedfbcfbeeageffeffcbdfdacgebfeccffbggebefcegcgcdagdagegcdbbabbcfcdacgbcagegcdbbabbcfcdacgbcaggebbcddbaffaggdeccefdafgdcdeeeabfdebecbbgecbbaebaafbbddfgdbefaebfagebcbagagfdaafcagdabcefgedcaddffccfdccfggdbefgfebbfcaefaebfagebgaaeeaddeaagdacfcffffdafgdcdeeadgefaagcebfcebabecbcbggdggdfebdbdeggdaeafbbddfgdbeffeffcbdfbdgaabdgbeggebbcddbabbffffabffcbagagfdaaadfdfccafaagdacfcfffbaebgbedcdafbbddfgdbadfdfccafaeabfdebecbbfcgaafadfdfbcfbeeagbfcgaafadfbadggfcbabefeeacaafb...
output:
168365
result:
ok answer is '168365'
Test #137:
score: 0
Accepted
time: 18ms
memory: 13756kb
input:
ddfcaccgddcfbgddcbgcbcgefadacdbaagaeecdgcdcdacbcfgfffgfaebbaaegebbaceegdbbdcbdddcfbgddcbgcbfbcgeeaabcfbgddcbgcedbffafbedececcgfabbbcgefadacdebfcedfadceadbcebecaaggfdggbfeeadbcebecafecgbgdddfacafffbddbddaegfaaafcdggbeggadabccddbgcfeegfcdfbdgcdbgagacccbabbagaegababcaaccebggcdcggabdcdcdacbcfgaedafgacegggfgdafceacddfgbfdecbgcbedbbacdcbcggcgefafgcbbagadbfbcgeeaabbbgeedaccgggfgdafceaebgcgffdafbabcaaccebacafffbddbeegfcdfbdgddfcaccgddfffgfaebbaedbffafbedacafffbddbaegebbaceeddfcaccgddbedegadfgdaggfdggbfe...
output:
155588
result:
ok answer is '155588'
Test #138:
score: 0
Accepted
time: 9ms
memory: 13976kb
input:
beecffageffcbcbeaaceeffadaafedacdacdfgffegebffeggefefdbaaddfdbgbdabegagebacabaecgebffebdfbcgdgaffegegbccagfbacfbbcdbbebebecdecfaeacfdcbgbgggdbcegdebcfdagggbbffefcgccbegfbeadceeebfcdbcegdebcfccdgedfdfeddabecbedefcgcbafegcegegdfceafeffadaafeddddadagaedcfdcbgbgggcfaabefacafaabaeedeabfbcdgfdfbfcgccbegfbddabecbedecgdgaffegefebbbdebecafafaabeeecfaabefacagcffecaagbcfgbcbbfegeffadaafedafafaabeeeeadfecabgcfbbcdbbebecdacfdbagcfbbcdbbebeabfebeeedcgcagddecedgdebaeaagffcbcbeaacedbgbdabegafebbbdebecafedabcggf...
output:
170696
result:
ok answer is '170696'
Test #139:
score: 0
Accepted
time: 7ms
memory: 13700kb
input:
fbafeddecbgaebgfefddcbebgbbedeacgefcggdeeaafegacbbcbebgbbedeafcggcbfbgccgffgdffbcbecddeegdcageadbbbaggddfdbdacgbcefegbbbfgfdgcecafgbfgadeeggggafgdaddbeaafegacbbcdfgeeffdecdaebggcffegcbebabfabfagfebdcgdabfbfefcgabccbacbffdfcaacccefgeaffeegggabccbacbffbegegdagdbfdcbfaeaeaabeegbgcdaacaacfdbacccfgbgefefbegegdagdbggafgdaddbfbggaggabcgaebgfefddeaafegacbbcageadbbbabfagfebdcgggcegceageeeaacfagdbabeegbgcdaadgaeggfcaafcggcbfbgcdfgeeffdedccefgdbbdcfbgbcggbeacgefcggdeegcbebabfaacgefcggdegeaffeegggggcegceage...
output:
168524
result:
ok answer is '168524'
Test #140:
score: 0
Accepted
time: 9ms
memory: 13820kb
input:
agdgfebgfbgbeabbffedaffcaagceeecdbaddbaeddadadfafdgagfabffdeddadadfafdgagfabffdecgcgcefbebgagfabffdefedcfdgbcgbffddedafabcgeabcdeeaegcebggfcbeddbagafcbebcggdfddafedcaadbeebffafecgbfbafcfagffeafgbafacadcbbdgdeeggagfabffdebeddbagafcgdbdfcecbggefacaaffbfcaacfegaccfbcdacfggbefgbddcabbgdacdgfadbbafgbfeadgagfabffdeeafgbafacaaegcebggfccacbgadbeegccfadbcedagdgfebgfbcgdgefbffcaegcebggfcecdbaddbaegbeabbffedfacbcedfbfdcbbdgdeegfbafcfagffdgebdbfeaaccedagageecfbcdacfgggdbdfcecbggefcdccgadbgdacdgfadcgcgcefbeb...
output:
164232
result:
ok answer is '164232'
Extra Test:
score: 0
Extra Test Passed