QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#5485 | #801. 回文自动机 | zombie462 | 100 ✓ | 20ms | 124012kb | C++11 | 645b | 2020-12-28 21:04:23 | 2021-12-19 06:24:33 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
const int N=3000010;
int ch[N][26],fail[N],len[N],cnt[N];
char s[N];
signed main(){
scanf("%s",s+1);int n=strlen(s+1);
int tot=1,lst=0;fail[0]=fail[1]=1;len[0]=0;len[1]=-1;
for (int i=1;i<=n;++i){
int p=lst,q,c=s[i]-'a';
while (s[i-len[p]-1]!=s[i]) p=fail[p];
if (!ch[p][c]){
tot++;len[tot]=len[p]+2;q=fail[p];
while (s[i-len[q]-1]!=s[i]) q=fail[q];
fail[tot]=ch[q][c];ch[p][c]=tot;
}
lst=ch[p][c];cnt[lst]++;
}
long long ans=0;
for (int i=tot;i>=1;--i){
cnt[fail[i]]+=cnt[i];ans=max(ans,1LL*cnt[i]*len[i]*len[i]);
}
cout<<ans<<endl;
return 0;
}
详细
Subtask #1:
score: 35
Accepted
Test #1:
score: 35
Accepted
time: 4ms
memory: 11672kb
input:
bdgedcfadbabbfgeacdgbggaefddebabbfgeacdgbefaecfddffeddacbabfcgecedacbffeddacbabfebadggfafabcdfdeaabdeecgbcecegcgecedacbfgdagbgagafdegecadfebcdbgfacdecdegecadfebbcdfdeaabdbfgcbccfcaebcecfdfccagdafaeaacbggaefddebcbecdafageeaabcbdafadcbecdbcgcbdgedcfadbcaefbdfcbgfcdeceddaaffgcedfcdcgdcgbfdddfdadgagbbeffcfgfeedgegdagbgagafbfaaffgfaaebcecfdfccdfdfbefdgddadgagbbefebcecfdfccdegecadfebffgcedfcdcdaaeadeebcedbdagcaagdgcdfbabafbdebgacaabdegecadfebebdbfgegadabbfgeacdgdcgaefccebfeddacbabfeecgbcecegeaabcbdafa...
output:
5594
result:
ok answer is '5594'
Test #2:
score: 0
Accepted
time: 3ms
memory: 11764kb
input:
bdgfcbabegfbbbgecfbddbaceaefbebgeafdbbgaebebdabgebabacccebbaebeafbefaabdgfcbabegdbaceaefbegcaegagcdgcacccfbbfgffgcdgbccgecbdbcagbbcacccfbbfgeegfcaecbcebebdabgebbbebbgcfafbbbgbdbabgbabfgdfaggfbcbabeebbdaagacgbafecebfccdbgfacgcabefaaedadeacgdeegfcaecbcabacccebbacdbbdceeegcdbbdceeegbaccaecfbgbbebbgcfaffbbgcceafggfggadgcebbabfgdfaggfbffdafbacbbbgbdbabgdgdbcfgcadgccaedcaaddgdbcfgcadbbebbgcfafeegfcaecbcbbbgbdbabgebebdabgebeddecaagdfffadbaffadabceedfbacfbcbabeebbfbbgcceafgaggbggdcdaaggbggdcdabbbgbdbabg...
output:
7308
result:
ok answer is '7308'
Test #3:
score: 0
Accepted
time: 3ms
memory: 11784kb
input:
baeedcbgaeaabdcaeeagbeffgedegdfcggaeafeegccecbacaaaabdcaeeaggedcbbaebfbcbbbebeaeagedddgabgccdecfeegcababaddfcabcbbbebeaegabeddeedaaabebgcafgeefgeabcaafgcbcfaafgadddgdbccbcddfacfcgdeefgeabcaagbgbgdbefdcefcacafcagcfadegebcababaddfcaffbfgdfecefgafcfgddbagfgceabefcaaebagddabcbbbebeaedaddaacgfcabeffgfgegbffbddafgdagedddgabggedcbbaebfadgegfegbbeeddcbffgggcfadegebcdecfdafagdababaddfcaaaagaedfcfadgegfegbbbgdaabdeafeeddcbffgggbgbgdbefdcfdedabgdebgdaabdeafccdecfeegccfccfgbgacdaecbegbedgcdeafcbgggbgbgdbefd...
output:
6011
result:
ok answer is '6011'
Test #4:
score: 0
Accepted
time: 3ms
memory: 11740kb
input:
fadabcedabffccgceafdfgebfgebdfffccgceafdfbabeebbccbcebdaabagbdcabbebbgbbdddddcfdfefcfgcaedcdfbfcgagggeacabgddfdggddgcgagfefgeafdaefefgeafdaefbabeebbccabccadccgcbbdddddcfdfadabcedabgbdegbcgdecfcefaedcffadabcedabadgbbacdfbfecccfacaaggggffddffffbcgacfgbcbeadagbfffefcfgcaedgeacabgddfgbcccdcgegbdcabbebbgfggacfdeeeegccgdfbceeabedbabgfefdfabagabcabaccdbgccabaccdbgcfecccfacaacabaccdbgcdddcbggfcgbdcabbebbgcbeadagbfffbabeebbccbbdddddcfdgdcfefegfbeabedbabgffecccfacaaffccgceafdadgbbacdfbadgbbacdfbgecbefgafd...
output:
5874
result:
ok answer is '5874'
Test #5:
score: 0
Accepted
time: 3ms
memory: 11668kb
input:
efggbbfcabcdfbceagadfagaeegbegcbfbcfcgfbgdfffcdeagfcggffcacbbadedceffedbgafcbegdggabccbcecfcbfegdcbecdedfdeebebecffcaafgffabgbgedfcdabgbeffaagbffcdccaddcadgbbcadedgcfbgbdefggbbfcabddccdefedagebfbbfadfagagedffaagabcgbcffaggfebdbefdcfecegaeggggdacedbgfcdedfdeebececbfefeegdebddaeafbffabgbgedfcfcdgcaaccddccdefedafcbfegdcbeggdacedbgfgbegbcbbgacfcdgcaaccffabgbgedfedbbfgdceegccccbabagcfecegaeggddcadgbbcafaeegfgdbcgaacbcabfdgfgabceedafaeegfgdbcbecffcaafgafaeggacfecfecegaeggcdabgbeffabaabfecegccdedfdeebe...
output:
5751
result:
ok answer is '5751'
Test #6:
score: 0
Accepted
time: 2ms
memory: 11772kb
input:
eafdccagcbcaeebabcggdgdfcdfgeacbgcdfbgcabdegdbbaabgecbaaagffecffedeffcedcdgcecbgfedbdgabfdcbefcecdfdfaegccbfeefdccgfbfebecffedeffcbdegdbbaabeafcbegcbagecbaaagffefcdafgageffefbcceecdffabcbbdbefcdafgageedcdgcecbgcaeebabcggfbeegdaccfdffabcbbdbcbefcecdfdcdccfcbadcecffedeffcdcgaagfaegddecgffafcdgdfcdfgeaabbeebcagededfbdgdfcecffedeffcffefbcceecgdgcffdeabeafdccagcbacgbfaeacdegeagefgaadccfbeggcfeeaaegbbfadffabcbbdbfaegccbfeecccegbgfgbgagfbegadccffdecfafaffefbcceeccccegbgfgbdbaagddbddcbcgaecfeaeecgaefgac...
output:
6156
result:
ok answer is '6156'
Test #7:
score: 0
Accepted
time: 3ms
memory: 11780kb
input:
aecedcggbddbeeadcfbcaebcdceeegbcbaegcecbfefbbgbcfgegbdaggeebdfebbaeddgffdgfedegbaecedcggbdbbddadfageebfadbbegbaaaffddbdacdgbgbdggfgebaaebcfceefgaedacdeeecaccecgdcbafafccffdaedbbegagecfcdbbacceafeaabbefccgbgceeabcbaegcecbdfgacggffbdcbafafccfbfccfbgggadddddacbfeeebgdaddagcdgbgbdggffdaedbbegabcbaegcecbcacgbgbgeegebaaebcfcdfbbadcceceeecaccecggebaaebcfcbfccfbgggabacbfdfgggfafagffdacfafagffdacecbdababdbdceeaacageeebgdaddageffgaffaefbceegbaebefbedgcebfagecfcdbbacbbddadfagedbeeadcfbcbceegbaebebcbaegcecb...
output:
5662
result:
ok answer is '5662'
Test #8:
score: 0
Accepted
time: 1ms
memory: 11724kb
input:
aaffagaebeecbgagbccbafgceadgeebdgffeceacbgcbebggfdbgcbebggfdadgceeggefaaffagaebeegfafdeeecaaffagaebebgaabbebcaaaaceagaabcabddacfebbfbefagdbcdaggeggcfagdgfddegcabcddaefcdcaaaceagaabecbgagbccbaaffagaebegbagabfddcbdgffeceacccafcbcdcagcebbbgfggbfbefagdbcgddcdaadafgcebbbgfggccafcbcdcaafgceadgeebfbgbbddebadcdccgacgebdedgaddebfdbgdfcfgdgaadddaadacccbgdeffacccbgdeffebdaadaaecfcgefeeffbdddcaefbggggbaaddggagddcdaadafcdbfbfedbbeafdffeegageacdabfbabgaabbebcaeccdfgbgbdaaddgdbfdgadgceeggefcabddacfebggbaaddgga...
output:
6006
result:
ok answer is '6006'
Test #9:
score: 0
Accepted
time: 3ms
memory: 11760kb
input:
bfbbfccggagbeddgdcbdfecaedcedefgfeaabdcaebabegdgdebbddaefebgcefgfcagdbgccacgdbcdadbeafcedeffbeccebabacedebabagadfgbdcaeaadbacgdfbgabgdbafeadgbfbecfccbfgeecabgfafacefbgbcebbddaefebgadbacgdfbgdagefcefgeddgagggedefgafgdbgacffbeccebabgbeebbdafegbeddgdcbdcefgfcagdbacafdggbacccebfdcddgadbeafcedecefgfcagdbabgdbafeadfgafgdbgacfecaedcedeagbddabfagfacefbgbcegbeddgdcbdfecaedcedegbfbecfccbagbddabfagegbbaefeedacafdggbacfbbaecfgcgegbbaefeedfgafgdbgacabgdbafeadfbbaecfgcgfgafgdbgacedgbddgagbcafccbbdbgccebfdcddg...
output:
5966
result:
ok answer is '5966'
Test #10:
score: 0
Accepted
time: 3ms
memory: 11732kb
input:
gbegegfcdbbdagefbgadbfafadedacdbbffcbagfcgebcbbeabedbedegbdbebfcbcbffddeadadffffadccgfebbadbdcdfecbadbfbfeaefadfdgfeaebfcbgdbfbcfebdagefbgadedgaeecegbeaffcddaggcafcddaffccafcddaffcgfdegffaaeggadabffaddbaebcffcadbaebcffcabfafadedacdabgaccfdedbfbfeaefadeadadffffeaffeffaffdbbffcbagfcbbaebfbfgebfcbcbffddbdcdfecbagfdegffaaedeadadffffccdedfafbgffbbaabbdedbaebcffcaebfcbcbffddbaebcffcadgfbbaafbfbgadcgabgbdeadadffffbaeefgcdcgdeadadffffdbagbgcfadgfdegffaaeaddfdfbgcgeaffeffaffccdedfafbggcaaeaagaddeggefcfcd...
output:
5997
result:
ok answer is '5997'
Test #11:
score: 0
Accepted
time: 2ms
memory: 11772kb
input:
cihgfkaabfcjeehlggeihjadhfkjdfegfiibdidefcdehjgkkhjfldaeelddklklgjdkbeidjahlkjligjdhjffddfljlbejibdgllkddjcccddajbkfjkfkecegichgklaeccfcgjidfkgckhafjeabajihcchghkchjfjkkbeeajcghaillghbcidglkcldfkkkegjdgcjfecjbaekhcadlfefcgagjdgebkgafagdeijfkgcebkkefbblkdlajccehgiidfahkfblfjafgikaacjfddalheeelcjifafkijdfejkjcdkkchfljbclcegfjekjdghifejhgjjeehikcgbiciaedaclbkdegefjacjdjjlkdgkgddcdbehjjfheihlfefjkheblecabhgkkddcceahkakfjhageehicajbclhhfgcbjhjefbiidhhcgalcdielfjhlcccgaadhjflaccjbdjhicaifhjiklhibgbgcd...
output:
3028
result:
ok answer is '3028'
Test #12:
score: 0
Accepted
time: 0ms
memory: 11736kb
input:
xbqpbhaecvtkxghbvkmwarwpsrjwhgqnojrdskecifmlbcbctlolyjdswhhclojnnfcynqqfvcchkuehqxgbuaqsnwotkfskrnmkwoonkhcvwwmplrxlfjvaepipcegcekikifaxpqclhwmstfifhnawojfngbphtfftcewckdeseoxnfwdtymodyqlewkbcjwtyufrevupfapglxllumkvspbebirrytpcmodoncourbanwyylnwugxujjtdwgyjipayvmgucnqnrpwqplwpdsocasjykituacpagydmympjueindogcetpnwapviffgqervsfctfumejeoehitfvdunpgckafqybwdyvtysyxvauyyfgkksqlfvjowfpjqudjdwvhcikrcskqaxhdgktccpblfjxkvvlahwtaexqpwgxvldubyhxdqpgyfgfcptnjohquiegletacuexdppgvaickwbafqdyahrcoidbunmbflyfxa...
output:
1481
result:
ok answer is '1481'
Test #13:
score: 0
Accepted
time: 4ms
memory: 13772kb
input:
tobdfhlrhrypwivkkpiugptzudfkxlxkprusxvwlhwqinpfwdxelgpgrfkmkjfoovtwrinkdpehykvkksgswkikxbowttkqdpkvevjbrigecweqaehejnugxnukpqcueewuazbzfbijnvrqlimbipyeyxhszbdqeduibykofvyqbhgxecowsrrqzpboxzafxinkqtxgcavjiezzjoqweqtupcxgjtxgxxzanmwamwhpzyxqxgouhgnkvqglgunyqnawrwlqpxhtdscimoedcwpuwbqhiygbfoshwjkvquisdydqnwyboimcdtcrqcumdpikaussefurcpsmwglclovoviztcrqyaqwgevlmocqjjejwkxrzxqkaevvfascrpynyhluaeiozgxzzmegmdroiwkbwsbjjrqtgtzbdyiiccvpfnzlxfqrrhawkjtwmepjcxvlxsmlkyfifplsdkapbpxkzpgalcqyixvzuckdziqoiumgje...
output:
1437
result:
ok answer is '1437'
Test #14:
score: 0
Accepted
time: 2ms
memory: 11772kb
input:
epkkjklkmnmgajmqaqfdepfdlhockegkcpekmdmfaphqmqpqopjhngpblcephamlqmekfnqjoknnkmbodonbfkmobeddbmplkallmeqipgdimpiqfeficqknaeapllechkpdamdpeoanqoghnlhfggaihfnppbmfdnjcokjfakladhdmdiejcecaheilbeoebgfgcfjlngiphlqeemgopopmonfcccpjhleijllfngdomcqhkfcidmkgqqgoqegikioaoodkokhaklaihlenckifchcjoibffdjqflgqfmdokjnifedknhiindgnkodaqnecbanmbodenkkcggmadghlimomblimmhkmjgoebibjfbmjipqjogijkkdejmkkckbgoijnhcognjfeochnlgogjbjanhalqihpfehqplhqbolmjdhjhnhnhfapigqjbkhochbdpgiqbmndlmcdiionmlllgndacfemhonglqbinoghghji...
output:
2190
result:
ok answer is '2190'
Test #15:
score: 0
Accepted
time: 2ms
memory: 11788kb
input:
acbabbcbaacacabcbabcaaacaabcaaabccbabcbcaaaabbcabaaabbacbcaaabcccbaaccbbcabbaaababccbbacacbabaaacbacbcabcbbcbabccccccbbaacacbcacacabbbbbbcbcaaacbcbacccaabbbabbbcabccbabaabcbccbacccccbabbbbbbaaccaabbccccbabbcaccbaccaaababbcaaabcbaaacbbaccbbcbacbccacabbccacbbacbabbcabcbbaccaabbccbcbbcbccabcbccabbbabcbbbcaaaccbcbabaabbbabbcaaabcaabacbbbabaabcbaabcccccabcaccbbaccbcaccbaccabcaabcacbcccabbacaaacbccacbcbbaacaccccbbacbaabbcabcacbbbcabaaacccbbabbcbbccabbbababccaabacbacabaccabcbbababaccbabcaacbccbbcaaacba...
output:
15924
result:
ok answer is '15924'
Test #16:
score: 0
Accepted
time: 2ms
memory: 11788kb
input:
bhdxinplnrkvahvgamiwqnuqpgmivqfufihnsjcimgfdkjsrqxhqxwdxfocovgpasgnxrvioxpsolcxmfxuhfpeehmmfsgcggenvovhmqtvnohtrgdhkdoonojjdvlvelussuegcpkmfvtdpawqeowewbpxbipqmgckmrarknfkqqbfgvbmbsjtilnbpgwpsbwrfvlfqsdtnwsscwawwgtmunewtgjujwniavsjrcewocbxelgntqfmrfvblghjcdemxtvxmlupgxotjnxrnhemxwpjtghcokiibbujodawxrgdwgekxqlfrmamfaurbkwltnboulmmcucribjxljrwoojvfcinduqfpxjuwarkdlemcjcjhcgekljcdudxgqlbgmjoouvhiivkueuxodrgfqpfqrqmbgrxaklokosrbabowpaqkarpmvqijpulwcjhevuvpcpgclcmudpwkknseqgvplnqkppiwjmxfdpntlmelhxoe...
output:
1548
result:
ok answer is '1548'
Test #17:
score: 0
Accepted
time: 2ms
memory: 11776kb
input:
hgroaoogpmsnobkfecoqlebndmblggaerscolcqerhgobfdmialndaaaqjisghbljjqefnklsoqeicimqcplfohjdajhpecehlgqilimkrksleroqqrqhoppcpsknnaaonspddgdpoqqhdifcqpfqrkljlokcgsibeqmrhagkkseaeapqaboeglocqpipambsjdhpslqajkmsinddrhcjmrhiiakopjqhginnhkreobjpdigloolkhkdjefbqpshpqcpearjapkqlerkllljefflqcrcgkcrchfndgloncegqrmfqdlogmpcijammjhnnfqcdnrkncjboiqkanhsqdaalqbqijcgghkdganfmksbankpdikhdiekjjmddifdgmmpgemanosgkfdfmcqsjaasgnhrnchjocdgagsomaolagdgesqamaobqddgearfdshbjkmhhbbjrngscjbshsjgnblapcdqdqleknrhsprecmorccco...
output:
1976
result:
ok answer is '1976'
Test #18:
score: 0
Accepted
time: 2ms
memory: 11736kb
input:
vbofyszrvwsdixyhngfqrunnmhivyilqiwxsdayfmdyovagfbeddpdwmpnfsunmtlxjvrizfzknqgrirtygwdmqdnqubzmryqxqjzfvrgmlebiverkcqaqpdiapbktwaixerxkewhtqfvgtlrtxuesxjhkdsbjdqnkuvivypgqlycjurldmfydcxictjwbjpdwqimbfxakzrljrekrxkestdeseewcetuaquqvbwxvqgacfvaeiycmmtyvxsxfmpdnvylkybngtoktxwforvxkhmludmkljxdoquhyvmmevkndjwamzvxcfxhuztfvprrjnijclsysaawzbwqysbziapjsvsajidnafknzppjiwrvzguneobszffipftkmxmalqhwzlyepzyysdaoekqzoynnvpvehnttmqtalqbuamhjkwslvdpcwjcjxxyjexhszpogxjvoavqvgycsyvjgmsqftsznivqprmefteodspbsjigsnxv...
output:
1412
result:
ok answer is '1412'
Test #19:
score: 0
Accepted
time: 2ms
memory: 11672kb
input:
lldkkjfeihgcdkaeijblcggdmbabmejbmljljjeicleelhfjagckgkflfggemmalgjeekdlhmjeghcibhgfmdemjljgjkmfjaidmiaeeeifeibdfmllhacickfgdfihajkfcemajmdfbmeefimfgbmlggfmgiecdedabakhkaafabijhagaihbcgllgfklbfemmecbagfabkdahakegdmgdmajhaeijglkbemhadmhfbaagbhialbkkdblfflcamieidichbhagbmgifijgjdjidbfejaaamjddbbabmbhagfglmahklmidklhkijkcklbkjiicmacmhgljaddadlcaebmefjmacffbhaekjihagfedjieeelddmdbcimfgkekmbdcijhhgkcbcfibmhmjdiljgfdacbbkihkikljfbdkafhgajkccjhemgfkcibfeldmilihakfecdeffmicmieabebhkgjbgjcaiaegabbkcmbjbch...
output:
2773
result:
ok answer is '2773'
Test #20:
score: 0
Accepted
time: 1ms
memory: 11732kb
input:
hheahpaoepdahfdeqliolckfaogjamlakobiahncibelepjbfgjpjofpnhnpgelaafcofkjlpcoaejbmemjaigncdfioeeflqcpgjeehqehfnqnjpqoidomgbpeehiliaalokmpkfqbhdaggggdkoefkheljfhqlaqnjokafpgceqaohgipkncheacgdlooqjpqdioddcqjgpkbceipjnfflnmfqgbjkomlndbpqcmfploeeemcjjajnaapcmflbolocohbnckafgemghqffmpfaohdopnifjgikadnapdqadeeqcdgdeecfijhnobjocpmafhcejimolahnipmgbeoqqheigfhdblahdhfmfgiqafkjfoqqnbqplkeeqkkbcficaioiobgjbeokbnflomagnfpejngdiqmddqpddcheikclfaonlgjjhpcjboedfibmekfqdbneaapcajelmibmiokpbqmadkioagnmebhijoimgibl...
output:
2120
result:
ok answer is '2120'
Test #21:
score: 0
Accepted
time: 3ms
memory: 11672kb
input:
hrkmbslgoiahkuaanfkrthtriresittllrjptqidbokqisorhdmcnsamdkcbokuhhlcgfqihbcehbrfnggorroeqrnpcfltfrbmnksslngaemigpsckalephiuuqjkhjqmumntfdrtitudflftnasefhkotpfibanafjueadhkelkqkhteijueqtnobdqgjolnjiqeictqgubhufdneampstmckeddjpenuisdgdqelmpmlrfblemsojtracnsagfiopsfqnarqjsictamuljpuadattmeudqnfddapmtseotkabijkdlubhsbuagfnunsmalscfeqgtlanujghqkabosrboqrcaeejesdkpuhudplieuhfrcnguuldhlsghugjmtpnlcbgqoqktsqdlkpntpifkmularklostjbsflljeeojqpehekddjoupohlrghndoobkcunkbmkqcbgcaesplgdrdkbnaiuhttihiinqpljqlsi...
output:
1773
result:
ok answer is '1773'
Test #22:
score: 0
Accepted
time: 3ms
memory: 11828kb
input:
efbedhachhgdhbhchecbgbdedgbhddbhebccgegbfgcdgeghhehffhcfgafgeabdehbhehafbaagcfcbecadhagdebfdedcdfgbaffeffgabfdafccabhabhbehhbegdcfehadehabaacbgcfgehffdbhaaagggghedfhaefdhagbgeffahadbbcdcgdfgacaebgdheabahggeacfahgeedbgadgebhdahhgbebhgbgaghhaheeffgbbdcchddacdbbceeefccbeafgdgbagabdhggfgbhffefabcagdhahccabccghebcacdcgebahcagehfcccchehheccedcchfbfdhbdaehheefcebbhcfcaeafhddbfagddagbegbafdbddhaegefhgacggfbecdeghacdaeefccehhacbahffgffcbfaghgbgggcebdaecegahefcdgebdaaefhhbhgcccgbaeacfabdcebcefgebdbchhfgee...
output:
4464
result:
ok answer is '4464'
Test #23:
score: 0
Accepted
time: 0ms
memory: 11668kb
input:
ibjiwmcjcnneglnnkvqrsfnowvgrcqqcwuwgwbbntduorslqgfhfqowannwocthiwwuwuvohnvldknewuhkbkcbvqmfhmfpbvfwekmjsgbdbgvewebjnddgwbjcruphqedcsoiqgfrwampdaachuejdkjdsntvwgcasdwlspqmjshvamcgsmviwwghpbvdmccmccoclbfcntjtparjspjsqkbgumnfpvsqdqorhcjkfhwlkvdlmgdghibjkdwhilvkcjbsusenaedekbqsuwskqlrwvhnnraoiqmljaberummfcgbkcptkkijohtidvtffdbmlquqlvhhowuatvhwcufiukjulqrfutjmheamrcfwqpskgdoovcqjenpbhkgftqdnqbsdemibqorbesmemsrewiuqpmbwmnsakcdhenntnhbkdcmffnkvkkcmvcvmnclsqvcajlbwdhcloowktdwhecohvcufglrigacvoqjpprumasn...
output:
1605
result:
ok answer is '1605'
Test #24:
score: 0
Accepted
time: 3ms
memory: 11832kb
input:
gywcydgphaftrvrgycaavbmagbwecbclapeytmcbsirkhkdtgehkqvvpdcrijochiatbfiseyacbyqykcxcllitvliopmxtbcybatlbaqlwliruoiqbadtkgbppvxcryxyycsdbmxywexbrssjrnppkwkucgkjbkdxcrdtnaynqrjjohwfyyciikfojscwedqqqprdpipvcomfdtevejwumquinswmjvofcefmjabxqvkirrsrphlfigxktufdgijaicbcfhsbnnnpuklkrbbfmjbwvoveunnkcfacvdkwgqslsdlmmxurdfonjsylwdkjyqulfcsqhrbowkmmxyalbospilamyvewfgeiibmfphqxwrdisqajpdqqnddphamgruotcnhjvtowmstvynksvmsaqpcyjimtyxiymxafnflkburfltoljbivtgcimcohinqkmkdjaauetemdyqkavsxblbpkwixktdmffafbuphulmsjwf...
output:
1487
result:
ok answer is '1487'
Test #25:
score: 0
Accepted
time: 3ms
memory: 11720kb
input:
cdeabecddaabdceecaeeecddbadddbaebebdabecebcbeecbcdebaadedaeebbeeacccdeeecdbdbadaedccdabddecdcdadddacbdbcabcacdbedaaebebcbbeeceacbdadbdabedcabddcdddbdddcdcaebaccddbabccbdaaeaddebebebcbcdaecedddecedcdacadeccccadddebcdebcbbddccbcaedecdededbbceeebdcaceecccbdacaaaaceacebbdecabaccbbcebebbbddbccedcccbcadbcecdcaaddbcdebcecadbccbcacdcdaaebcddabbbcbaedecbbbecbbcecdbaeedcccaaccbceccccbeaeaceeeceacccccdedeecedbbbdcaadcceaecdecdccdeddecebcdaabbaedceceabaebaaedcceeeeebebcebcccbddbaababbbabbddeaabccceecedacaec...
output:
7073
result:
ok answer is '7073'
Test #26:
score: 0
Accepted
time: 1ms
memory: 11832kb
input:
cbbbacaaabcbababcbcabaccaaabaaccbccaccbaabacccbbaccaaccacabcccacabcabbcacbbacaacccabacbabbbccbcacbcbbababcbbaccbbbbbcacccacaaaabbbaaacbbccabcbaccbbcaaccccacacbcabcbacbbaaacbccaacacaaaccccabccbcacbbabbaacaabbcabbccccaabcbcabccbaccabacabcabaacccababcacabacbbbaacccacbcabbbacaaabcacabaabccaaabbbcbcaabacccbcbbacbbccbaccbbabcbcabbccbabbcaaabcccbbcbccccbabccbcabcbcabbaccababcabbacaabcaabbbaabacbcacacbabcabaabcbcbccacacccbcaaabbabbbabacaabcbcacaccccabbcabbaaababbbcacabaccbcbcccbbccccaaacbababaabbbccbbca...
output:
15764
result:
ok answer is '15764'
Test #27:
score: 0
Accepted
time: 3ms
memory: 11772kb
input:
jeaaiibjbcagfeihgehccdcecadcaihecefiebheeigagghchaebaijfdbjfdabgggheggdigbcbebiibacbhichbghidcedebehhgafdaehgccbafhibgjahaefjcciabgdhaehjbgfccbibegchhfagejfcjjcjfbedcieegcafghacdhgagahejdddgbcgjdecchfffjcabaecbehgadcihhbcfajbfdgcddhjiaacaidgggbjifdedfbgcbgeaehbgfhadfdjjhhjgggehehjcdfcegffdjicgfidifebeghjiafiffbciajiieghhajdaceaadgdjaeeccejdiacichbghfgehcdheeajaddafbiaieedfeffjhajjcabcjhbchbacigfbdgceecjijeejagfaeiaecgijdhbhdafcjgdaehefagigbjjbgdcijdddibfgddbgggbjaecaehfhehijbhffbhieagbeahaeegcce...
output:
3583
result:
ok answer is '3583'
Test #28:
score: 0
Accepted
time: 3ms
memory: 11744kb
input:
bkogogclbdkgoddeopcqiimllehnkiokpjpcapheqeohhdngckljhekpnpgibmlhfrqirnhpkkkplgkggcfqingmdmdqbgffffqbllbjefqqerrekclhlkeclgcrclqankqgcnnrrmdmpqmldfbeolmeaafgrcfcbfgekilgfllrqqdnanpmfgqihjnicaanlkhpmqrldqonogqhjnebgglgjrkhbredoranhqgfgphdidbldmfqjeeebhrqjoenppiiejqljedlelppdhkoapgcdlihkiqmqgcmkikfpdiokcjeeifiheflnileoagfolhencdhrgqqmdqmrobpgnblgnncenkhdopjonlhoecjmbefrlkhmbphdgbloijofmdhbamjlmompdfbdkqkkcnrkboqcomclrnjifbliomhfilbhhjrnaorpohnfmnaohqprlajnnibccfqcbneqmnkmipqcoaqpdqhnqijbnkbokepleal...
output:
2017
result:
ok answer is '2017'
Test #29:
score: 0
Accepted
time: 2ms
memory: 11672kb
input:
dmfdicakllkhjcbfpkmdaoimolgpnjncnijcnikhjodehgnifdbjpjjhlbaobkndlnbehefonknlfkjikdonddkadgbjehjbcnnceopnbgeaogpnafankjpmfnochbcnjcjlfokkcmchfeedaokdodknalochdmjdgnkihombaclfehgohehbikpheiccpmofebkijlldfdimfjaeffpkgfpbhccfldbkhpnbbgogofcjmkocgodnghendannpphbhcnacoeloheocpecafnjopkhlfigajcnenbmnjegegilhfjkdojmfpkfgplkfiheoonlaekjekcdobgmddnoamhbkfmmhhfnjjnccnebgfccghodlbhpjoeaekfkbbdkpeddklcogijhemnfjpooffmolafapgeckgdfdanjmigdpmompgoemekipbcefceolngghniakfeinddkofaehpfeccmbmffdaogbimffccabllpbplm...
output:
2249
result:
ok answer is '2249'
Test #30:
score: 0
Accepted
time: 0ms
memory: 11760kb
input:
jmbhlcmaoopgbpgoifibbekilhbbnkbbmfmcbfpoofkmlnojoencbbjgejibmdimlfpjabmopfdhmfmlichcjcjjlollgmpkjamlideggjjpkadhbagclealldnlnmhleenhkjkhoklkepddkccooijefkiaoamaahppkadbhccefdbbieoaaoogjjpbdeogjllccijgbnhpfanbljnakmpnhhfdjjefbkmpmmnkoggfmlflgldaefkdhidcmmfmnnnbpgajhmgdfkcaahbpmjgknocbpbemhcefdlbldhnkdkppccnkdmmnnglocaicnpajiappcmkkdhbjhhknkhnpbfpfboedlafojkccmaakoncbbimnomlnkcepmjhkpiplkajkffeiecmmdjbanfmppmalkkadpppkdgjmbcnihjghmofkfcgfdddacmpibnflgdgooejhhbcpdpkoefnkpecnkakfpmljononcokidmdpokdc...
output:
2247
result:
ok answer is '2247'
Test #31:
score: 0
Accepted
time: 3ms
memory: 11660kb
input:
bdchdgiihadebebhifeadbbchccageichdhabgibbifeaaeiehchccidgeagdgafefadhabefabhfhefiifafghcbecbhfggdihfigbfeabbfhgegciehdbbggfidigcdahbeggafdiiggfedbfcbicehfbaaghciddgeaddfeibfhdcehfdafaichiiebcbgbgadefccafidabageagffhhfiihbiedfdebgacecdbhiadcgcifdfhfiaebdfgeiaacgceifiadiihbhifhgdhhhcbegdfgdhebbeaeegbcfhefhgdcfbifdcdgiidhcfgfbfgbcbfccahgchieegffdabahgaifaefggbdddfhgadcghicgcecicbeaeeghdcghgciieieieeechiachfggdiceggfffibcdghdfhhedgbighihecihdccbbhgbihifbgdiheaeiachfgcacdiecicggibfbgcgbifhhiagfcedche...
output:
3952
result:
ok answer is '3952'
Test #32:
score: 0
Accepted
time: 3ms
memory: 11736kb
input:
ddbgeicefegejhkdbbfeejjbgkjicchkbjkgkhckgdaicchhjjbfhbeikkjaedbaehjgafjcefdhfihecjjidcieecbegihabfighgbkbghcchbkefcfgkaekkgkjjdhdhfhefkbgdbajcbibjkgiebciibaejdeiahakddehdeibiagighjckcebhckdgdckkigadckdgkkfeghebjkjcddfaceijghdicdchgahajkaaedffkcfbhfajgdffijakchkkkfbhdahihhijkeekbghjfakhfhicdciffchkchgefhhkahdgdiegakfbeghgckgeadeiedgfkigkcgcjcjebjbjggbdfcikfcihfakgheadjbcghgejjhdfgeciibgaijhhhdjfkkfbjchfceekhgbaihbefeikgffaghagafdbjkbeicgiafagfbhbgibgifdjdgedjbhfgjcbjcbcbfkickeacbeahdecafbhfbgeiak...
output:
3248
result:
ok answer is '3248'
Test #33:
score: 0
Accepted
time: 0ms
memory: 11684kb
input:
gmlipprhnmgngbibehcerdjnccabfrcbkkjmligbacqcmqedopraaaqonmapprifimhrcilrjamonlkqiqmircjidoeqboogjcjdfrldnqncqdrapbqjmobgaoabiminjgdjngimhlomeeabrgponqgnroaijqpgkakinhldlekeaaclqabdmbmjnejqdaaaginaodnjnaeqfbaibjgjrkdhilddikocpnhrqognrffrnlpjbcpcbkioqlnrgharmhckookandnkfjhdajapbjfagljpbrriqqkercqnhrqdicqpagopoconippbclnalhjhkecjnpmbjkmcmjdigpffaeoembcammhnfgjjilcbnlomjphgrnnnajkemllmikffmkgolgblqhmfjemarracrmdfbpiaebjqkpophibonojegbkbabecdmoliommdfbpeccllhimmbldobkilqlqacefohopablmhdqrhdbfbqrjbbdk...
output:
2035
result:
ok answer is '2035'
Test #34:
score: 0
Accepted
time: 3ms
memory: 11744kb
input:
aegnnajjbnpkqajafainmbmcmrfnrmldjiqrlpaeerlqakgkbndegdlajofjprlkgdgrfdcrojldqlcqihnjfgamkhhhglffdropmlhljajdcrldrjneqlnnnggrrrmjcnggbenrjdboknrinpdrfakrbedcfhngqafbekqloggnmkmqlkcifrkgildfqgfjhqhbmkpheqqcfnrcldpjfnphkdheiblijiebkqkcmcmkmalhdjrafaohcrqfqeenmnrmalckggkdbloqakblbleheidbleodoiilgaapocngjphjdokpijfqjiifrefgijroafekkqkaifmhgqjmqniqmqlfjcpembjdlgqmjbhlcobnbldkmbooefacdcrahpedhfijiilecmepipbipbimjhhofeohgbchqdlfiablqahjcncqmpolfephkrfcardghkrhhfcdidarcckdljgnagppneljeooiemelgarigacqmhpm...
output:
2033
result:
ok answer is '2033'
Test #35:
score: 0
Accepted
time: 1ms
memory: 11784kb
input:
cdedbbbadbaebccbccbdddadabccedeaedeeaadbeeaeabcccbcbaeccdaaedabacbadeaddccededdebabbbeadcbbdeeecbbbbcdbcaabbbedddacdaccacdaeedcdeaceaaaabeebcdeecabdcbceebbecaaacccaeeecebbcdcdaeabddbaacabeabdadddabeccabbaecdaadaddbaaebbabbcedbcdebbebbaabadeaadadcebbddebeaccecacdaccbeeaadddeccaaadcadbbadbeacbdcdddbcacecedbabecedecbeeadedeaebbadbdebdbebeeaceeabcdadbbcedbeddacedbadbaeddbdcbaeecbcaeedebedacbaddbabbcbbeaeebceedaaeabeeaedacacdcbdacaecdedcdaccbbbbaddbadcbddecbbaccabeaceaabbabbaaddbdbbceabeadadeabbbbdeb...
output:
7056
result:
ok answer is '7056'
Test #36:
score: 0
Accepted
time: 3ms
memory: 11832kb
input:
ebknblltothuqdufqotatoulqgnmmhfjckaalshtvllkvmveaunlkkvsnpieenjdvckiblddejspgpemngqebqgcgkmrlbreutvuosjvlnrmspbeitlvaakfefverpjnlujsqrocbchpclamnhvdadusaktnbdhndhotojojmandnvqkifinbvtcemcbcvogtbjllhajttittjsfvqovhfsmpkujcfkdlbrrhqucqicdldtllcljhjegrebktfovcldoshvsrnhlqlgmqkifmbakgmuftrcolhgpcnbmqtlkukaunglbsaqrmpnrjlmrvkauallgqdgdljbcsooecullgofkroiioujmpamogehvibddrblgdqkccsdogcrbdciufnlidgrpsevbgaqpfckumbddmevtgkgrcngkjamepakjchlmavnvcuukigjrlvhhdampjqphqlegnfardehcgqsbbhvsrkeleeskrefcgemtbcmc...
output:
1667
result:
ok answer is '1667'
Test #37:
score: 0
Accepted
time: 3ms
memory: 11716kb
input:
grlhcvvnmcskprdrhjojiusojfkeaeqkjmnmsljdgjajqqfbkkqvnhvosdtoliiflfjaurdjahjeispsrlbpgannhvsqogmknujohhjohoshlshfdodisocpsvgomkdljummmalsidljfknsdeohtvqsphgtebatlkutpmdltdqgkroirboqjuufvkkacmorgumntbolgqjhrheicpjhkahiljhkqrfvmmvjosajqmgdaafkjitqudmieodmempkitesrdsfkfijgrbcbegkstutjqcbvhllnpjmkfhmarchlmflupetpuoclkbfhdmvbqlgarbdlhjksusmocvtnhdohmjequsbiuskbijmbbtiadocqbdiqhcebcfqjlhqfalrkkgkosqponhusdlinpmbnotepmgavfkbrcotmvsbtgguhukrjhljbkhmnukolrmoalgvbbqrvhsjscsoounurhlpsvfeoktsuipeitolkgndjaos...
output:
1653
result:
ok answer is '1653'
Test #38:
score: 0
Accepted
time: 3ms
memory: 11756kb
input:
checddgjigkdclhhgfeikhaijijdiibjbdahhidefdclhlfgfjifhgcekakfjcdhjlebchhekglbeeafigdjkdgikhbedlglgcegblhcafggcbabjidcdhakchiicdeiaakejikkabdecfclbkbafalagbgklcacidglkhaclcgefklddjaahihhlfhdejljfccdajjdecllfbafifcidkkjbikhlcjhejagbelldajbkeeecgacgghkfdlfbhdhllfdihhfciclhhkcllicbiidhgfgekhbfhfkdlgifcfbkkbgdaaaejeeehifhffbfafkllkkiealglccclcdbblaeieaibhgehblclahaebfbfhjjiljkdahefccgahafhgcabbgaikihfdifbeeaccfbgjidblecfgflafgfdaadhcbfchhbeadhdjlilhllikfgbgebdaclcfdagkgajgjdkecegdhggdcjcieidbjkbeblhgj...
output:
2986
result:
ok answer is '2986'
Test #39:
score: 0
Accepted
time: 0ms
memory: 11756kb
input:
ggfffhigbhacggggegcddeigfebcidgicideafaaghfgebbabfdahaiiffedbagfheaffaehgahaahaidahagdhiaihabecbiidfhegcadchdhidbhiihhdefgffaieiefdeaiadbbgcfibcediecadfdhaidcfhgiffgfaddaiidcafefffbegiaabgdbgigcfbiiacccdghbaibdbicgdbhfcicheiidghgehagbfihheaaabhhifigifigegihedaecegcgcchdgbccafdiegbifibdifcbaafffcffeiffhbgcifcbhehceaibibfebiagfiifhfgebaahgddgdgddbcbcihicgdbhiigggaehfabehgdgfddghhdecdiedihibgfaiddfbecfbacfficbiihcheidagidbiccdcgcabbigchgfcifhcheebgdgbidbeefciahfabfhbffhgcafcicabdaadehdccahdhicgdbbb...
output:
3918
result:
ok answer is '3918'
Test #40:
score: 0
Accepted
time: 1ms
memory: 11732kb
input:
ummgfeaecrtgkapkpsmcmactitkugcrffhshjpudirlrqffrrindmemsqrkjhoiathjjjtpfhepfrncpbbpdgpnqrmqrfekmonjbrhjbturipgfltgaesdfamemqtmaepfbglmlclsmfkcuutchtmsjdhlmfjjglpejuqpocnljabloikkbeaqmdsubcjunqfiddnutaapegnbanurnuiafagmhudsrmgiegnutuncgbprbbpfqhjpcamhpjkgbuqfblospqlditeljglgqclqihhtqdeesurpqefbhehjjonuubcjkqqglnmknqicbnaobeidjmbplpoaijhnjqasudfefcbfmemfbtbpaaurdsaekgfbdkubeajaaaoealpjgjkjigijhkfhtkjkilgmgrqekablasmhplpgqfdagenrlttjsbmoilhmmjduhokobobpglaipfiueghqtjpsdneljdnnuunmnnfufmrhuflfhdnblk...
output:
1773
result:
ok answer is '1773'
Test #41:
score: 0
Accepted
time: 1ms
memory: 11772kb
input:
ldkfjidefefcdfhfmadbdcdajmlcihglmcgfbdjidbhlalclfgihgmchdmjeclkcglbcaflfhjamebdmcmljcdjammhldaeijekgigehhfbbibljjfemiilfehjdklcdaaigjfjdcblkecfggdchiamlifgdibjeffljlmcffajafafadcimlgcggmmeamejfileclkhihjcmhcfahfjffhdmkjcmicijldllghegihddebchcchejbklfealaijhbamabfedijjhiljjbgdagkfchaabiajhgackmgaeabglblbhallmkddlffgbamffflgkkljbhcjmmmlkmjfdhjjmihmhllhmljaillgdlgbcdgikicbgidcbdfflgbkgiiehbldbjkdlmmhamiegffebldikjkmbljbihadghicjgafjahmeaccilciceeljcdgbmgfbmcmageagelgecceagkkbjdbaiedfadhkfblmjglifdj...
output:
2788
result:
ok answer is '2788'
Test #42:
score: 0
Accepted
time: 3ms
memory: 11772kb
input:
eudadvifjlpkmgchohotrddufliprbchvllqbmvllqkorvispiouqlfmutceufqijhecpssiagmacfufsgkncdgipfnmkbpertblvbkmmmgqkkapprjhbmccisilfcjciqvgmdvucovglbdcmqfhhucvhcbdhbbamrehrceadfavodqusggkakfirusaqpdbnlarhtofvtgmnecblfnddgclhdnevfmbemcbnkldmkdnggcpmuvnvcaonmqmafiehpcusiqqasoahugkmioscdbnkcuappfthjibopidjlqmkceopsqirlnnesbnvelqgfivshnofsdtgpudtfdpdbergjvunfjgcdnvhhsdgqbmfainqrqiphhfkcvveglbgmkikntknjqtvtufdbhkivppjsragocbdrjqqvihcansuqradaniuaqrgatdhsvdladetbcvvomojabhpksioimamjinhlqvhiklhbilvmnfkuoifjol...
output:
1683
result:
ok answer is '1683'
Test #43:
score: 0
Accepted
time: 3ms
memory: 11724kb
input:
adddcbdccbcbbbddbaacbbabbbbaccbdddadbbaaccabcdcbbdadcddcddbddcdcadddbcbcabddbbccbadbdacdcbcacdacbbcacbdcbdcdcadacbacdaadbdcaccbdccdbcacccbddccbbabaacbcdaccddddcabcdbbccbccaacadcacabdddddbbbacbccccadacbacdaaacbacadcbcddcaccccbcadadabbabbdcadabcacdaccaccbbabdacdadbcdabdbaaddaadaabddacbbbbaadcadacdabacdacdbaabaccacddcddccdbaddcdbaabcadaaccbabcddbcdcdcbcaadadcccbabacbddcbdcbdbbbcdddbbbadcadbbaabcdcbdaadbccddbcbcadbdcbccdcdcaccbcaacddccdbcdadcbdabcacdbdddcccccbdbbaabacaddccacdbbbdcbcadddcabbbaacadbbd...
output:
8968
result:
ok answer is '8968'
Test #44:
score: 0
Accepted
time: 3ms
memory: 11756kb
input:
gbgaddcgjjebdeicjajeafffffhagkejdhieaediajecbcejifchacfcghcjifdcgkbdeiehijakefbehdjicfgfbjahfjikkkjkdibgedjkjbbkejejekhchjiihejdhigjcgdfceefgdbfcdhjjkikfkdeebbjgbhkiefcaieihifdkbfggigaakkigdgkhkkgkedaeehedceagjgfjejkchhhccgejjijfhkekfbekjkkhaccdccghiidggedbidhdhhegkddgahgdjbekgiibccekcbhkkgahfkjbakegbibfjhekbdeagddefekgdeifhagekbccicegbidjgcbcgjebbbbidhgajgcbiiihjhijcdiibcifijkjibdejfcgbfagdjjadddckikbdabejikkbajcjajdidjibcdjfihjhdafbaccebbjhedhiijhijacegcdebjadgbebakgihkfkdfefgidahdkdeiaghikcdg...
output:
3254
result:
ok answer is '3254'
Test #45:
score: 0
Accepted
time: 2ms
memory: 11832kb
input:
clfigelkcgbhnmmlimcbeeamahehdcgnllakicheabimlbjkgaihledckhihamkkncjcbidiaccghlkabdanlclfncggdegajhbhfjlddkafkbinjeicfibklkacgjgafklihlhfihfhefighfabcjhfmnffbadgahcefgeendkjmeibngfeagefncnhjnfncilinciggklcmbhblgehbbmidnfbcagkedkdbfbgljadackjbjfffccldlmfelabhjhanlbffdllminghlgiejaajaammjeededldjimhbmlalklcdijmdbeifgijdgegeigeljdmedlilgfbfckfhhnaikknmlnicalkneccgbacknecjekkhgemegneacncinmfminaedjiidbafajdmabbcljbfgafedlinmgbaldbgmhhiienmlanakefhdklhlmnbkgjdmifcbmlbjjanlklmnfmaeekmnagehcbbeiiillfcja...
output:
2565
result:
ok answer is '2565'
Test #46:
score: 0
Accepted
time: 1ms
memory: 11740kb
input:
acacabccbaccacacbaaaabbccbbbbbaccbaacaababaacbabbbcbbbabbabbccbbbbaabaccbacccbabacaacbaacacaccbaccccaaacbcabacaabaccacbcacbccabbbbacbbcabaccabbabaccaacbbcaabacbccbbbbacbabaacaacccbcaabbccbbcaabbabccbcaacccbcaacbaacbbccbbbcbabaabaababcbaccbabbaacbabbcccbabaccbcbccbcbaacccaaacacbbbcbbcccabacbbbccbaabcccbaaaacacacbbacbaabbccbababaaaacbcabbabbbbccaccccbababbbaaacbbcbaccbbabcaaaabcbbccabccaababbcbbbcacabcaccbbbaacccbabbaaacabcbabcbaacbbbccaccbaabccbcaabaccaabacbaaaaacbacbaacccbbcabcbbaacacbabcacacccb...
output:
15624
result:
ok answer is '15624'
Test #47:
score: 0
Accepted
time: 3ms
memory: 11920kb
input:
hlhbhfqigdhcbocaokqdimjqjmlebepagmdkmkqgfhgdaambfdjpceefailflmbeeeicoipbqladfjfloeqgelbqeiibdbighflhngajgeebiniffkcigleiiilgnchlhjjmkmlngqbpchbjnlamjqcddebgiikoajpnkelcmcenipfecdcfjiikigfhjpodkialpgqodhaloookdanjdqikmgimfglqqgdnneohdghqlplcaaqlglafhpfagcemeingdomloagnjdllqhalkdniijhcalildbfgcincqgjnpqceagfgfbaaeomanolliibeaeeqgqckggdmjfofljjbkpbddaglopqhncjokkhnlidnkqoifnabdokbecebglhhdmjqjbffhhahmmlkolacmhkhmqifgcidfiicocpbpoebkcckqeefcammnpnaeffdllqajkglfkjhflmlfgejggmgclbqghbjfkccbafnpqlnlmmq...
output:
2150
result:
ok answer is '2150'
Test #48:
score: 0
Accepted
time: 3ms
memory: 11732kb
input:
ceaeabfaefccdbcabfeafafaccbbebadffebaafbcfcafbcbefdcdbdeaebdaffadefbecffacfedfabdabdeccfafaecfcafbeeeabfadbdcaedeaaacdfabeabddbffaebbaceddbcdcbaaffeafbededfcecbeefbcadeeecadbceaacfdbbcdacffcbecbfdccebaebbbaacbaadafbaeddcbbdfaddfbedefcbffeafbaebedbaefcabefcbcaaebbffacecedbedcbfaaddefdbccaafdacdceffcdbddffdfdeffeaafcecbdbacecbbdbbccbddbdfcaffbffefefedadcbccbfdbbdcdebadfcecadbcdeeecfaaffbbafddbeefbbfafacbeccffffdbdcacccfedeccdcafebabecfafedfdbafadffdeadfeecebeacaefdbcebafddeaddafeaebabddaacdfffafaf...
output:
5932
result:
ok answer is '5932'
Test #49:
score: 0
Accepted
time: 3ms
memory: 11740kb
input:
nirhbekjkmnjlridmghnoafphtqsptgakctalqibnsbtditcgaalqggmjmmrtdmttroqgtongmggedatjejbkjckmpqjgjkaienpmqefppsbhackarncrcrlenpmjmjcmiieiltotoiahsctbnnilpgakpnpmdobrqgsclonmlrkaeddbpdcaqetjhosjsohgodtestmmqklltoddlcdmcmkkkklgffpgjcgdktgrtgfdmnjdnmroemodhqsbaonpboblthacfslbebfhqsktreijheadhdbptjheojmlhjkineafdqrcnesflemqrmskstpqcatlfgolmmhhrqlpnrrojdacdedbfgllqlaqjddadajnfefsfpdmjnsoptfmrkhtirnhctroprgpejaggfrfiinpsrrjpiemsaflqssmnimatmqnimjsmeflcolllfdtiegeokikthfcscoqpgplgtadjffaksoqobjjqittptpbbjn...
output:
1822
result:
ok answer is '1822'
Test #50:
score: 0
Accepted
time: 2ms
memory: 15840kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
6352396311852
result:
ok answer is '6352396311852'
Test #51:
score: 0
Accepted
time: 0ms
memory: 11920kb
input:
aaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbrgvyrkficzxgfcxruoaovaaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazv...
output:
975744
result:
ok answer is '975744'
Test #52:
score: 0
Accepted
time: 3ms
memory: 11916kb
input:
aaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahqmruesfrcchowgnqoewwaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwx...
output:
280584
result:
ok answer is '280584'
Test #53:
score: 0
Accepted
time: 1ms
memory: 11748kb
input:
aaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaaws...
output:
291276
result:
ok answer is '291276'
Test #54:
score: 0
Accepted
time: 3ms
memory: 11744kb
input:
aaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaa...
output:
283176
result:
ok answer is '283176'
Test #55:
score: 0
Accepted
time: 2ms
memory: 11784kb
input:
aaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaa...
output:
73287
result:
ok answer is '73287'
Test #56:
score: 0
Accepted
time: 0ms
memory: 11736kb
input:
aaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynja...
output:
276480
result:
ok answer is '276480'
Test #57:
score: 0
Accepted
time: 0ms
memory: 11768kb
input:
aaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaa...
output:
1076053
result:
ok answer is '1076053'
Test #58:
score: 0
Accepted
time: 3ms
memory: 11668kb
input:
aaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaa...
output:
1036728
result:
ok answer is '1036728'
Test #59:
score: 0
Accepted
time: 3ms
memory: 11784kb
input:
aaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaa...
output:
62748
result:
ok answer is '62748'
Test #60:
score: 0
Accepted
time: 3ms
memory: 11720kb
input:
aaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaannc...
output:
265356
result:
ok answer is '265356'
Test #61:
score: 0
Accepted
time: 3ms
memory: 11728kb
input:
aaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaa...
output:
1097349
result:
ok answer is '1097349'
Test #62:
score: 0
Accepted
time: 1ms
memory: 11732kb
input:
aalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxourgsdqsfynvgnnmzdaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaa...
output:
26364
result:
ok answer is '26364'
Test #63:
score: 0
Accepted
time: 0ms
memory: 11668kb
input:
aaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaa...
output:
1022208
result:
ok answer is '1022208'
Test #64:
score: 0
Accepted
time: 1ms
memory: 11780kb
input:
aadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxkoeahghrxsmivycuvoaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaa...
output:
26976
result:
ok answer is '26976'
Test #65:
score: 0
Accepted
time: 0ms
memory: 11760kb
input:
aaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalr...
output:
297648
result:
ok answer is '297648'
Test #66:
score: 0
Accepted
time: 3ms
memory: 11716kb
input:
aaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaeh...
output:
299808
result:
ok answer is '299808'
Test #67:
score: 0
Accepted
time: 3ms
memory: 11916kb
input:
aaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaa...
output:
1031525
result:
ok answer is '1031525'
Test #68:
score: 0
Accepted
time: 0ms
memory: 11672kb
input:
aaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasv...
output:
303804
result:
ok answer is '303804'
Test #69:
score: 0
Accepted
time: 3ms
memory: 11732kb
input:
aaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxa...
output:
64683
result:
ok answer is '64683'
Test #70:
score: 0
Accepted
time: 3ms
memory: 11760kb
input:
aaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaa...
output:
1089726
result:
ok answer is '1089726'
Test #71:
score: 0
Accepted
time: 1ms
memory: 11832kb
input:
xfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxx...
output:
18736
result:
ok answer is '18736'
Test #72:
score: 0
Accepted
time: 3ms
memory: 11656kb
input:
boxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtibo...
output:
31221
result:
ok answer is '31221'
Test #73:
score: 0
Accepted
time: 3ms
memory: 11656kb
input:
jpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktg...
output:
7211
result:
ok answer is '7211'
Test #74:
score: 0
Accepted
time: 3ms
memory: 11744kb
input:
xjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjaci...
output:
15400
result:
ok answer is '15400'
Test #75:
score: 0
Accepted
time: 2ms
memory: 11760kb
input:
upyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzj...
output:
8263
result:
ok answer is '8263'
Test #76:
score: 0
Accepted
time: 2ms
memory: 11920kb
input:
gkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlb...
output:
54875
result:
ok answer is '54875'
Test #77:
score: 0
Accepted
time: 2ms
memory: 11772kb
input:
xlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxl...
output:
31221
result:
ok answer is '31221'
Test #78:
score: 0
Accepted
time: 2ms
memory: 11716kb
input:
xowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxo...
output:
45954
result:
ok answer is '45954'
Test #79:
score: 0
Accepted
time: 0ms
memory: 11780kb
input:
uidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidlt...
output:
7211
result:
ok answer is '7211'
Test #80:
score: 0
Accepted
time: 0ms
memory: 11776kb
input:
itekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlit...
output:
26901
result:
ok answer is '26901'
Test #81:
score: 0
Accepted
time: 1ms
memory: 11776kb
input:
qvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytg...
output:
8263
result:
ok answer is '8263'
Test #82:
score: 0
Accepted
time: 3ms
memory: 11828kb
input:
exkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkel...
output:
56061
result:
ok answer is '56061'
Test #83:
score: 0
Accepted
time: 4ms
memory: 11744kb
input:
kepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepke...
output:
45954
result:
ok answer is '45954'
Test #84:
score: 0
Accepted
time: 4ms
memory: 11760kb
input:
whdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmi...
output:
8263
result:
ok answer is '8263'
Test #85:
score: 0
Accepted
time: 3ms
memory: 11760kb
input:
dkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbq...
output:
13072
result:
ok answer is '13072'
Test #86:
score: 0
Accepted
time: 3ms
memory: 11736kb
input:
zwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmw...
output:
45954
result:
ok answer is '45954'
Test #87:
score: 0
Accepted
time: 2ms
memory: 11776kb
input:
pjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpj...
output:
37179
result:
ok answer is '37179'
Test #88:
score: 0
Accepted
time: 2ms
memory: 11928kb
input:
iwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohr...
output:
11666
result:
ok answer is '11666'
Test #89:
score: 0
Accepted
time: 2ms
memory: 15872kb
input:
knksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknkn...
output:
1195845561
result:
ok answer is '1195845561'
Test #90:
score: 0
Accepted
time: 1ms
memory: 11828kb
input:
bzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebz...
output:
45954
result:
ok answer is '45954'
Test #91:
score: 0
Accepted
time: 3ms
memory: 11764kb
input:
horqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhh...
output:
18736
result:
ok answer is '18736'
Test #92:
score: 0
Accepted
time: 4ms
memory: 15852kb
input:
wuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwu...
output:
1195983889
result:
ok answer is '1195983889'
Test #93:
score: 0
Accepted
time: 3ms
memory: 11724kb
input:
gbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbs...
output:
35577
result:
ok answer is '35577'
Test #94:
score: 0
Accepted
time: 1ms
memory: 11760kb
input:
iksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksik...
output:
45954
result:
ok answer is '45954'
Test #95:
score: 0
Accepted
time: 2ms
memory: 11668kb
input:
dtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjdd...
output:
18736
result:
ok answer is '18736'
Test #96:
score: 0
Accepted
time: 0ms
memory: 11780kb
input:
lrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmda...
output:
31968
result:
ok answer is '31968'
Test #97:
score: 0
Accepted
time: 3ms
memory: 11720kb
input:
omeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomom...
output:
37179
result:
ok answer is '37179'
Test #98:
score: 0
Accepted
time: 0ms
memory: 15820kb
input:
mimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmi...
output:
853689483
result:
ok answer is '853689483'
Test #99:
score: 0
Accepted
time: 4ms
memory: 15840kb
input:
eleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeee...
output:
975625225
result:
ok answer is '975625225'
Test #100:
score: 0
Accepted
time: 1ms
memory: 11760kb
input:
eedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeee...
output:
74358
result:
ok answer is '74358'
Subtask #2:
score: 65
Accepted
Test #101:
score: 65
Accepted
time: 12ms
memory: 12728kb
input:
jwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjht...
output:
2832804
result:
ok answer is '2832804'
Test #102:
score: 0
Accepted
time: 7ms
memory: 12616kb
input:
lrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexll...
output:
535320
result:
ok answer is '535320'
Test #103:
score: 0
Accepted
time: 8ms
memory: 124012kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
148148592592925926
result:
ok answer is '148148592592925926'
Test #104:
score: 0
Accepted
time: 14ms
memory: 14716kb
input:
abbbbabbabaaaaaabaabbabaabbabbbbbbaabababaabbbababbbababaaababaabbabbaabbabaabbbaabaabbbbbbbaaabbbbbbaaaababbaaabbabaababbbaababaabbaababbaaaabbaaabbabaaaaabbbbbaaabbaaaabaababbabaaabbabaabaabaabbbbbbbbbbabaabbabbabbaabbaaaaabbaabaaababbbaabbbababbbbababaaabababaabbabaabbbaabaaaaaabaababbbababbbabbabaababbbabaabaaaaabbababbbbaabaaabaabbbbbababbbbbbbbabaaaabbababaaabbabbbbabbbbbbbababbabaabbbbbbabaaabaababbaaababbabaabbaaaaabaaabbbabbaaaabbbabbbaababbabbbbabaaabaababbbaaababbabbababbbabaaaababbba...
output:
1128537
result:
ok answer is '1128537'
Test #105:
score: 0
Accepted
time: 14ms
memory: 12600kb
input:
cabaccaaacbbbbbbccccbbaccababcbacbcaacacbbcbccacbbccccaccabbaccbcbbaabbbaaabaaaaccbabccccbbacbcabcbabbabaccaaccacabacccabccccbacbcbcbaacbcccaaacbbbccacaacaccbbbacbaacabbcaacbacacccabbcbbcaccabbbabcabaaabcaaababcabacbabacbcabccbaccabacbcabccacbcbbaacbcacabbcaaaabcaaacbaaaacbacacaaabcbcccbbcccccaccabbabacbccabcaaabbcabaababacbbcccaababbaaccabcabaacabbbbccccaacabbbbacbcaaabbccbbbabbbbabbcccbaaaabaaccbcaccbabacbacbaccbbabbbbcaabbbcbbaaccbcabccabcbcbcbcbbabacbabacaabaaacbccbaaccabbcaabcaacccbabaacbbc...
output:
448552
result:
ok answer is '448552'
Test #106:
score: 0
Accepted
time: 13ms
memory: 12604kb
input:
bcadcacbcbbdbbbdcddbababdcacdcdccbadccddadadabdbbacdbbadbbccadacdcadbccdbcdabbacddadddbdaadddcaccdbbddaadadcacddcccdccdcccdcbbacaaadcabdadcabcabbadcdaddcccccaaddcdcabbdddbbaddaddcbabdcaddaddbbdcccbcccbcddbdacbcbaabacaaddbadbcdadbcddbdacaacdadbaccdbdcbababbbbcccbbbccacaccbabdbcbcaabbcabdcdccccbcccbdbcbdabddaadacbbabdabccaacbcbccaddccccdaaddcdcacadcdaacdcbcbdcadbbddadcdbcaacdccabbcbdcabddcdaccaccadbdacabcadaddadbdcaabbccaacccaababcbacaaadcbaaccaaabdcccaabaccbdbcdcaddccbbcdcacbdddbacabbddcbbcbbdbab...
output:
250704
result:
ok answer is '250704'
Test #107:
score: 0
Accepted
time: 13ms
memory: 14084kb
input:
cbcdbbbdadeddeebdeceebecbacbedbabccbdaedcbdabdbaeedddcaaeeeecdbedddebecbbceabbdeedeecceeeaaddebebcbdaabdcccbeeadeaeebabebcaccbebaaadddcccbbbbedacbbbeaaaaccdcebdbdddeabadcacabddaadbbcdadaadadedbeadbeaeebcdeceabbecaddaeaababbceddeeeecbebaeeaabbcbddedeaeeaaeaaaebaeaaaababababcdbaddbcbcbeabedacacddbddebdbaaeeaedaeabbecdaebeccaddbbbeebaabbcbedacbddabacbaaadacecdddabbbdbbbacdeadadaceebbbbdbdccdaeccbabaebcceaebebeacaadcbbabadbdcecbbdccddbaccdcdbeebbdceebbedbecbebdaddcaaadeeaecdbdbcdaddaeacaecaddeeaceca...
output:
200964
result:
ok answer is '200964'
Test #108:
score: 0
Accepted
time: 13ms
memory: 12704kb
input:
bdaeabeacfcceaaebdcdfabeaeadfbecaefbfbfacdceaaedfbbcfbfcbcebcbdbfdafcaaceecaaacdafdbfeeaadcdbdcedbcffcadacdfeeaecbfddffafbbdcbddafddeaeeebdcfccbbffddcddbffdedcbeaffdaddecfbbbbeadbaacbdeeabedbdffccabdacbacfdabccceffebcafccbbffebaeeeafbaccdeaddfdfdaffabeebbfafdfbfdaeeebdacbedbcefffcfafbcefacfdaddfacadcddcbbcbefcbcbbedcbefdbeecbcacadfadfcbfeaebdafcabcccddaeeaccecdefdbacdfcaceadfacebfedfdeabbeeaafafccecdbbeeafecadabfffdcfbfbeefdecbeecebcfcadcbeeedbfddcfcabbafcdbddfcaebcfacfdecdcbadcddbfefacaefeadbcc...
output:
167202
result:
ok answer is '167202'
Test #109:
score: 0
Accepted
time: 12ms
memory: 14716kb
input:
bfbdebfgfbeabcgdgfgdbceacffcbbecfbegefaeceadebdfbgdfdcebdaeecfdfefffbafgceaggacdedfbbgccbgcefebfdddbfafbfcebdgefdddbeddbgdefffaagecgcdfbbabeedcebdcgbfeccebceacffdbbegbfbdcbdfdagcdfeeagdbcfecedebfddeacegdccfgdggdacfagbdccgfaffcaabfdgbcfgccgadfcegfdcagbcbddagfdcdegdagabbcegeccafccbcdacfddgebbgcfgfeeecfbeebfgcfegcbfaacebfeebecbedgceeceggfadgegcggefbdbgbdbgggbafeccecfgcedffcdfcgafeabccegabbbdfgcagdeaebfebebfddbeeacfeccffgfdbgcaddedaccagegdacgfdefdcaggacgffffbgebfeeeeaeebabeebfagdegbbfcbbeccfccaccead...
output:
143591
result:
ok answer is '143591'
Test #110:
score: 0
Accepted
time: 7ms
memory: 14388kb
input:
cbcbfgccdfecaachfagfhageeabccaedhaaabcbbeebhaechgbdhbhbfddfhgbfdbhbccacdggfhdbffgecffdgbbfacdafdahcdaahfbhfadeaddchcgcgdgfcceegehehcddecbgcdhehfddhcaedhdhbfbfghgfgccddbdfdhbgdbbcbaaegbaahfdcdfhbhedfechhbdghhbfedeffcfggeefhcghacgghecfafcgefcccdebfegeffdhhdghfcefedecefdecfgdhcbeacfceagdceeghefagafbcdhaadgffcdfedcbeghhdbbcgdeadagffeffaghhadgfeheeddbcbhheccdgfbfdbehdeacchdehcfebaagggdcabbddbhecdfddeachdcddbfafgcdfddbbadcebfcbdfeebchacggfhdeadfaebfdfhagbahafhcfgfgcaeffegfbcafaagffdgbhhgachhcaecgcfhfa...
output:
125609
result:
ok answer is '125609'
Test #111:
score: 0
Accepted
time: 19ms
memory: 13976kb
input:
iibhhicgiefababhcfdgdgfbhfaeieicebceadddeeidicbgfeideaaihidffhabebdghghhhcfifhfiheafebebfehcdciaeahfigehihefegedhbffbcfgabcdfddcdcdegdfhidcdgiehgfchcfciidhhcdeagiheadefhfegfcdchcifgbiihbeececdcciacacchfchchdceagabaedefbbiafafaedagegcdadihhcddhhagibeggcdaicgbffifegeeiehhedaafiafaahecigdhbbaciebbcihfddbhiggeggafgiacdabfcaggddbchbcgbbdfdeicehgadeefagbaficecefbdbahcagcegdhgggddbbceidcbbgigieghfhcafhdfafdacggiehhgieaddgccabdiidfeecfehiieighafhbaefbiaagieffbdcaccbbghecffehdebfdicafbfgchghdccaicdecfiig...
output:
111691
result:
ok answer is '111691'
Test #112:
score: 0
Accepted
time: 14ms
memory: 13856kb
input:
ghfjfffahhjcffibfijbffcdjieihcbfhdgiiihgaedbbbbejdgcadebbfgbjjdfjccjidedicdgchjbccaehejgcdhbhecbgadaigfigjdgfdcihiggdiadcfjdjjiccibcbdjhgcjcffagfjejgcdfghfiffbbchjaejaibbgbagaegiafcbeffdehegdbgdibbjcjdbigddbdjgfcfejgijgajdcbdjfdeieheeigidjegebbhggcjiccaajebdgchecbfhaabhighiebffhfiijabbbehchhdiagbfafddcheceedefeccdehachbdchiibdciefdccajciifcegeachfebdfgcghdgjdejjcgfghhafdciadejbdjgbiffgabajjhdfecgcjchbgbaaibdaibjhaieihciaiiadgcjhdjdeccfijbjhgdigedfchcaifbaicbhchabidhdjhijhiiejhijhgbibgfdfgjfdbgbj...
output:
100298
result:
ok answer is '100298'
Test #113:
score: 0
Accepted
time: 11ms
memory: 14752kb
input:
ebkffdechjeggikjcigikihiabjeabifdeicffjhagakhcchgfbfjeiiefgcgidgdcbfkgeechbcgiiecaaabgghebkkgfkjdgefhadkgbhdegbaigeeajbheajhhfjbjbdkibcjigigicichcibjbahecafkdeahjhcfgibfhacddjihkgcbjbakkhbhbajaddhbfhidcjkgdfechajgbheejdgffddjffccedaccedjighgkbacfhchjgbkhhcjjakbhhcegccbaidhifbkjhbgjhfekebakahbdifjeegbdejejfdcjfgkbkihjdaccccckhcaidjafdfaedgcbjcgfhcffchhjhgedidekifdbdgkbjigjagecgiijiddjgdjcifdeekghjhkjfjjfhigjbcfdgbikidfhadakbgdehkddicjkeagbbfkigbkfchfdfdhadegeieiebeafdbbbcfcageceiedikkhjgjkfcieggd...
output:
91269
result:
ok answer is '91269'
Test #114:
score: 0
Accepted
time: 9ms
memory: 13960kb
input:
cblbfflebclliaaegihadfcidhchelhebfbffcjclicgledbggfficgahcakkbcbkjlbjgjeelkfiedklccjbifdjcjfkegkjadgkbidefikcjikbkfbkecdchcjejkhiebchhggdcdhbigikllbhhafeijkjfjabdgjbbjkkebfifecfciljgalffdaddflagfebfhccfbicegjlighlihbchkihgefdibhglbhbegdcflekafkclhihlhjbagljgaalklbelihelagjlhjfcjccafbfiaecgjikjeekacjiiecjfbihdcbgdcaceggfdilclgjcffbjjelllfbcidajhchdjldagedbbbgdicfhcgajaddiefkkilgkafdchjdfjfkkiihkelafccfclhkgjkeilalleghjclklcgelgdbllgfejdelgbiejfdjacjcecldbhbcieiccddcjichkigabailfffjaaffjbeiidefika...
output:
84019
result:
ok answer is '84019'
Test #115:
score: 0
Accepted
time: 19ms
memory: 14552kb
input:
ajkelheffflcgeibfjjmmamkfmbchgjmighddcjadjbheelifbkhjebgjkhigddbigagichblliilcbefmlbbjckamlafiiieichelkfdiajafiamlmjgfbhjmkchigjcdjgkhjamihebdbkdegbmmhdjjajceefhkimkdljlkbkhkhhilfimjkfeikcgdkgjehaddicgejmjbccaalailfmimekfimggigfigakfimmdbgcbaaigcldkmfcjfglaehaaaelmajjemfbfehdfcaiblhljhfffflekldfgdckblmgkabiiedfikkfiflkeajllkagdecilgcjecdbmddegbaajichcalakfjkekgkaelbffchamhhdghfkifdglcicjamdlgbiejhlabmhfabfkimkffafggaklmbahkhhbachelccldhdjkgdkigaekhkegmhdebjmckahgljcijljiedbcgfdhihlgeheggiiijdedd...
output:
77483
result:
ok answer is '77483'
Test #116:
score: 0
Accepted
time: 12ms
memory: 12716kb
input:
celcfehjelgbmlighjecmblmllafdbhcmngkekhnaaigbklbegafgnhahnmgdciiglimjidnegnhballbiclbckjegikggmnhikelkcdnclacndmfaigagcklcejccfnhmibnkekkbbjmhblcfjjhajgfblincngdagibhemcdbfngjlgegkmaldmkleaemklklmcifmeaaicdmcjdbbfkcdacbalklkkmghbkelbjehnmfjgjkcgmnlnibiiinmlldikfecjgimhndgcgffnglmdfbihhginfhnnmdjngkjecagfjnffndljhnlfjfikggkkfggmdiemhcfhilnmblakbabbeijdilhdklgeanjlilfcjjehbkmliaigbaldfjgfbdkhagcdgdaghchcablaidhnjcljnddfaiefmlliflekhnjnihddcbghdhhbfgjenbnjjjigefdfdehihanbcmannajfndamfalnefdejcgkacb...
output:
71704
result:
ok answer is '71704'
Test #117:
score: 0
Accepted
time: 8ms
memory: 14436kb
input:
jkaacaeheeegbnhkfccaalbbmiggbmimbhmcagjgafifbclgkebboaibbdllehdjhlkojakajjbllgcmnojfedjbfbcfdcidhhbfilkhfkgnbncgoboeadbliflchakahklbhnhbflncjimbklbmegjokdhonoagcndooiclbihfhnbllbgfiheecfbmhfjkbbecghlddmikgnkdciihnannoedbjbemjakfegonnnibbfmekellalhbodhjmgbbhcjndcmmginhahdjlkdjajangllgehgblgonblacmnjhobhiklndncafgehghikbaoffjgihlfjnikfgdgjdcihoknebjaacafelfjajaleiefnddbjajifcjhgdcebdkblfkaaaelehgeachakcbgeomdnohdcdkjfokfjlbndkgoaemacbcmgiionnmkeefidjglomgkcfhlokbofiakmbnkneladbgmaoholionjnohbdocge...
output:
67081
result:
ok answer is '67081'
Test #118:
score: 0
Accepted
time: 15ms
memory: 12684kb
input:
mnkinpdmfhgogdkjlacmlgjniagdfnbjiigjhldpcgeekibcjkfhpdojhmiaodecgincgkpmepcghbphmpincghlpjdpibnnomgggoodahmllcekideplbacihkjhpbmbhpfadcngkafonkhgeenkplpoapihnbocjeoonoekmemiocnigffegbmdkkaokphjfphacgncohjpeidodoajlfcbeiboflmoigganddimkfjifbcgegfopbjbpileacoidabnlokkaohoclhgpjboliofehnemmdkgednbloeleaabjmgpbfbjeoefdodafggpjnbmgoigpngpcdlolcebfooolbblabilcpofjjpmckfmgpjjkhpljfogcncmfmllepgcnmgikbonnfbbmpelfaiaeeohncnbppmbincdgbolnjlbkhjccdoipdigeiibdiocknjkobjgnkmmcfgpghgendbkmdadbcjmicnmbbnkodfcl...
output:
62928
result:
ok answer is '62928'
Test #119:
score: 0
Accepted
time: 9ms
memory: 12728kb
input:
edklplibffiapddpclkfkabqgmeidgbhqpoqmqpbbiikagnqjmjgclgimlhalnnpklgjofmknnplmkokqdpodjpcilndfnnmjafogqmdghnmqphajcqojfhfqnqdpcnkgckifjnfjimqgdbdojhclgicldhdioaldloinkjflddmakkmhqoancjagffeeijqneocqcbmaphcmoagglbdpqpqddkccigfghaakghookkjenadooodbpipfheomnqaghoegffcaqmpignckhcledfcdalliihmloildjccifcqqhdbohfcqmohkkhanohaedpohhnelanmfkagidkecchbcoloabfofoehqebkekomadpnlndnneijofoiddkipfnlcbfaplloifcjhlodkjqmoghglbmoaifpbbaapilnallapijgijjhlqhqbmcanhcbojmmempidqhenglcmjjkqnhemmohofblgpjoqljpldlnqifc...
output:
59153
result:
ok answer is '59153'
Test #120:
score: 0
Accepted
time: 14ms
memory: 14124kb
input:
pdpbmcmafradmbelqjkrnedekmdnamkafjnllnkgbiaglcfhmiladhkgqppeficrnaqngcdcojhdmdrcifnflbolgjkpncncjirqlargkrflceqkjrpromkgdhngngcfffnqnjaomckeigoqhhlncammjffbajrdkdhamaanebcpfdciroaagblmclgfhhffareggbjibdfeipmcgkdoebgddjdpaerfpkhjogprogjjkhpkkjbrkiofncalaliogrdeononlihaqhcaproofdplpapkjbolmprljgjmcomoebhkrjfnkdkoomrrokmknognbccqpkokjdkfqmcoqfjrbjdddhbklkjpbqlrepnnanfpblfoefgpdlilihojcnceccnklqdgmjdgdkpdmaffpfmhlaeimfhkjckhjjjjhgbrmlipmamggkmpehnrdkjmacagrpofpakcahikjnmmdrnbbociormbaggjegbagfbjcqjh...
output:
56181
result:
ok answer is '56181'
Test #121:
score: 0
Accepted
time: 11ms
memory: 12612kb
input:
fldrqrddichoqlkbeicnjbqdrgndpihnhjcrepgfkgrakqsadeirjerhslhqaqdjafrnnqflfqgadhoolpprksqrqohmjekdngaqqegsorbmmmicbdicnahaairlrriamfmpfogprdgbimbfgdbmgfdmeeipgsspnncrlglsnbnpponrkqsqfeigahomqojqbcemmbddidjcmomhsoackicflcsjhhdeenhijrosrkhkcrjdlamermnnlsjhfsahgscscbskfqrmicsceoqegcehlieobonlkikdqfbbbflorsomgealkajemiqmboojlhhnqjfmgromkfkslgsnpiscicgreqondhphdhsipqophdjoiijjhojmfaeddfcrccnlnqdsipiogenojaicjokmndlngnhbjqefkbnjcfcndksmpkhdqbnkgomfnmmisfmsgahacaenhebbceomgchrmhpbccojlerjfmjajhgiookcgrek...
output:
53046
result:
ok answer is '53046'
Test #122:
score: 0
Accepted
time: 13ms
memory: 14388kb
input:
iigioepemfdendcjhoikjkbmqcpdsqdcbarqrcamenctecpajdmfbsabaqaarctmpnandfestgjnhdbsokksljcsnfaemlpegfhfcnbpoopfqqfsifaojpmdoalpekdcfhmgrfdpatcfrbmlsffrkokfctqqsgbsqhkkcnprlikrlesjmqhdmcrejnsedieqrtqdqkostgqqggrphasiegkgcljmrqoirggrfrcjsgantphbfblorcbkfgtbjnmnspaiftebtbpoaiastmlcsoasboidrddbciffhonardchndieqkinqfibdlonmmmiaidpgnfhaktrpbkqrbmepepejiqbimbplsolqeirechtglhnjrihkkomijkijlggpfolieenslpcitlsjofgaebnlmfmjoeqtsmrenrkhoclisnjebbakfbssfnmcdtthcsathiopeaiqfqfjeeiapcahpnhtahelhinnffbfphshtfrabmo...
output:
50258
result:
ok answer is '50258'
Test #123:
score: 0
Accepted
time: 6ms
memory: 12692kb
input:
tgukkbdtlcmqrbrmroimjfjfkgagipjhmcetnqbbepkcfejqdsuhbtjfuhcqgnssjhpdtgegojtekqfgqamjlcrblsfljegfdukqijrcmnacjqumebkhokemmeiqeshseohihjseubtjkmkseocoiupepghtbulkanjofpqmcogesgbghpptiokcgfhclofiegrtriokfoajdkaodcsnddteobpplnhoioimchlmkqkgulikdokcsbintfninlqocselojgguboktpshpcgaticgpjntqfugdrsanmmkagmcibsegnidnbqrbcpfqfiokmdgkcjfapmigrhuqqnbihqhjekmiccfclrmudpjtfnnobpjfgplechdncdhqncdbifktrenfkkghfufsoanbpimgchbmttpcurbubkokdgjfeutnlcfhrcudnqrhfgehtjeqrmkbeffinrgbelnlcojradleimcpaoelkndjnbtcdegnmig...
output:
48082
result:
ok answer is '48082'
Test #124:
score: 0
Accepted
time: 9ms
memory: 14364kb
input:
gofskatgavmqhopgdduitcokqavlvgiceglfokrtcalchjckqiljrtsjtddnvfqgjlgcetsjdbptruclgvipptgsrtascpvtpeftuieunijoedtendteegubfuirfrpnoecrhopbdvugrefqtmbiashkkurgktldpopeuoafhnooaihrglooubemmtscvroulvfkbgdssjiblpahfchhdudjpglnpghukcesplmrfpsfpqkoiljinqaqspbshcceacnafdolireckcibajtdljgjbaffkcdvvumudbsasujmormhpaeqhpfkfhghrjuidljkpmksetkckeuebrhmodbrbmshhvgmgabcetfnlbdoihoqvdcmokdosflmisdjbqrruvrhmjolqpmgkiaisrjfqffoslcqrkkqfqolkilvipnopfkokksgdscnmsarelcijtkhuftekfckphncpjstamglmvnvggduccpjhbiftoeujtsa...
output:
45842
result:
ok answer is '45842'
Test #125:
score: 0
Accepted
time: 17ms
memory: 12732kb
input:
revervthrvdkwauhhnromjooeoctnpbvvmilwdeewltbmtjntegeoekwwrstoelbhvjobpeplbshjvdihdlegjidqvihhaapqgdfogokjignpmerpietrudcbrqgesibiteosmlinddsmwogfhigojrqnjoebpevurolkknsmotvlrbrjsksiiklnpwhlunrbguerhjhjbhnguasfmvihuumwbfgorecjacdnlvlibohwbjkscshgrmuissdprobarmnqoftggibqscnagbrdogvjbvjmithdfhsgcarvsemgtsominivnjaghagueajphjncmnrrcakwokmutqisqfojtdaqqnkavwuevkjijthupwagnrqgsbpgirsnthmfodauukobewbtalbomobwblblgaofkvhqaghiopegslvwcohhaeopbsmmpjwbppkdddlpjobnnnlimvogotlqmrjhjkoimbdhnbkkvpefnlehrglmaub...
output:
44052
result:
ok answer is '44052'
Test #126:
score: 0
Accepted
time: 12ms
memory: 14104kb
input:
aaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaa...
output:
30840117
result:
ok answer is '30840117'
Test #127:
score: 0
Accepted
time: 10ms
memory: 12712kb
input:
aaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafy...
output:
7354368
result:
ok answer is '7354368'
Test #128:
score: 0
Accepted
time: 15ms
memory: 14160kb
input:
aaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaa...
output:
29435670
result:
ok answer is '29435670'
Test #129:
score: 0
Accepted
time: 16ms
memory: 12680kb
input:
aaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahf...
output:
8396028
result:
ok answer is '8396028'
Test #130:
score: 0
Accepted
time: 10ms
memory: 13864kb
input:
aaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfqihjauurylaxrqpmckyjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbj...
output:
112152033
result:
ok answer is '112152033'
Test #131:
score: 0
Accepted
time: 10ms
memory: 12680kb
input:
aaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaa...
output:
1965708
result:
ok answer is '1965708'
Test #132:
score: 0
Accepted
time: 9ms
memory: 12688kb
input:
aaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzja...
output:
2267928
result:
ok answer is '2267928'
Test #133:
score: 0
Accepted
time: 17ms
memory: 12716kb
input:
aaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaa...
output:
2122308
result:
ok answer is '2122308'
Test #134:
score: 0
Accepted
time: 13ms
memory: 12772kb
input:
gffagfffdcfgegedfabgdggfedgbffggfeadbagecdeefffbebdggfedgbffbbeadcceggdfcegaaeecdcbbbcacgfbdggcffabbdcbbbcacgfebcgadeagbcedbebbgcebaffeadcgefdagaafeabbcddeaaeadeceadcdgbedccdaaadgdbbeadcceggafcdgdcfccgaebcdeddfeagecbeedgebcgadeagbdfcegaaeececeadcdgbefegfbafabgdcdddfagaeeffebcdbggefbdfcgebedggfedgbffdfcegaaeecdccdaaadgddggfedgbffaafadcabgbfgegedfabgdegaedadaabcddeaaeadggffgbebdeeffebcdbggcdeefffbebfegfbafabgefbdfcgebebfdgfbegbddcdddfagaeaafadcabgbdgbfeadecaafcdgdcfccecddcgaggbbaffeadcgeafcdgdcfcc...
output:
173974
result:
ok answer is '173974'
Test #135:
score: 0
Accepted
time: 9ms
memory: 12604kb
input:
deabafdbfcffddgcdffdccfdcgdeefefeadddfgbbabdcaedbgbadaadcbgbafcbbcafdcdbdfdgcbbebabdcaedbggafcbfadagccfdcgdeefcggccbgbcddbffbdfabecadceccdbcdfdacgfdabffddgcdffdacffdecbggegaacbeecabadaadcbgbccfdcgdeefgaebefbfbgafgdbgabcdbefdfefadaffddgcdffdgcfcgegdbgbgcdbbdggfafcbbcafdccadceccdbcfgdfbddfbeafgdbgabcdfebcdfacbcaaebdcbacaffddgcdffdgaddbdabdgbgcdbbdggfafgdbgabcdgaebefbfbgfcfgcebadgbgcdbbdggfegaacbeecaegaacbeecadbffbdfabedgbbaddgbaccfdcgdeefgefegcgeeeaebcecgbbbfcbagbegcgbbfdadeebcdfcbcaedadgcfcgegdbg...
output:
171917
result:
ok answer is '171917'
Test #136:
score: 0
Accepted
time: 12ms
memory: 13836kb
input:
efaebfagebfeaadffcaagedcaddffcbdgaabdgbedfbcfbeeageffeffcbdfdacgebfeccffbggebefcegcgcdagdagegcdbbabbcfcdacgbcagegcdbbabbcfcdacgbcaggebbcddbaffaggdeccefdafgdcdeeeabfdebecbbgecbbaebaafbbddfgdbefaebfagebcbagagfdaafcagdabcefgedcaddffccfdccfggdbefgfebbfcaefaebfagebgaaeeaddeaagdacfcffffdafgdcdeeadgefaagcebfcebabecbcbggdggdfebdbdeggdaeafbbddfgdbeffeffcbdfbdgaabdgbeggebbcddbabbffffabffcbagagfdaaadfdfccafaagdacfcfffbaebgbedcdafbbddfgdbadfdfccafaeabfdebecbbfcgaafadfdfbcfbeeagbfcgaafadfbadggfcbabefeeacaafb...
output:
168365
result:
ok answer is '168365'
Test #137:
score: 0
Accepted
time: 15ms
memory: 13932kb
input:
ddfcaccgddcfbgddcbgcbcgefadacdbaagaeecdgcdcdacbcfgfffgfaebbaaegebbaceegdbbdcbdddcfbgddcbgcbfbcgeeaabcfbgddcbgcedbffafbedececcgfabbbcgefadacdebfcedfadceadbcebecaaggfdggbfeeadbcebecafecgbgdddfacafffbddbddaegfaaafcdggbeggadabccddbgcfeegfcdfbdgcdbgagacccbabbagaegababcaaccebggcdcggabdcdcdacbcfgaedafgacegggfgdafceacddfgbfdecbgcbedbbacdcbcggcgefafgcbbagadbfbcgeeaabbbgeedaccgggfgdafceaebgcgffdafbabcaaccebacafffbddbeegfcdfbdgddfcaccgddfffgfaebbaedbffafbedacafffbddbaegebbaceeddfcaccgddbedegadfgdaggfdggbfe...
output:
155588
result:
ok answer is '155588'
Test #138:
score: 0
Accepted
time: 20ms
memory: 12676kb
input:
beecffageffcbcbeaaceeffadaafedacdacdfgffegebffeggefefdbaaddfdbgbdabegagebacabaecgebffebdfbcgdgaffegegbccagfbacfbbcdbbebebecdecfaeacfdcbgbgggdbcegdebcfdagggbbffefcgccbegfbeadceeebfcdbcegdebcfccdgedfdfeddabecbedefcgcbafegcegegdfceafeffadaafeddddadagaedcfdcbgbgggcfaabefacafaabaeedeabfbcdgfdfbfcgccbegfbddabecbedecgdgaffegefebbbdebecafafaabeeecfaabefacagcffecaagbcfgbcbbfegeffadaafedafafaabeeeeadfecabgcfbbcdbbebecdacfdbagcfbbcdbbebeabfebeeedcgcagddecedgdebaeaagffcbcbeaacedbgbdabegafebbbdebecafedabcggf...
output:
170696
result:
ok answer is '170696'
Test #139:
score: 0
Accepted
time: 11ms
memory: 12716kb
input:
fbafeddecbgaebgfefddcbebgbbedeacgefcggdeeaafegacbbcbebgbbedeafcggcbfbgccgffgdffbcbecddeegdcageadbbbaggddfdbdacgbcefegbbbfgfdgcecafgbfgadeeggggafgdaddbeaafegacbbcdfgeeffdecdaebggcffegcbebabfabfagfebdcgdabfbfefcgabccbacbffdfcaacccefgeaffeegggabccbacbffbegegdagdbfdcbfaeaeaabeegbgcdaacaacfdbacccfgbgefefbegegdagdbggafgdaddbfbggaggabcgaebgfefddeaafegacbbcageadbbbabfagfebdcgggcegceageeeaacfagdbabeegbgcdaadgaeggfcaafcggcbfbgcdfgeeffdedccefgdbbdcfbgbcggbeacgefcggdeegcbebabfaacgefcggdegeaffeegggggcegceage...
output:
168524
result:
ok answer is '168524'
Test #140:
score: 0
Accepted
time: 18ms
memory: 14292kb
input:
agdgfebgfbgbeabbffedaffcaagceeecdbaddbaeddadadfafdgagfabffdeddadadfafdgagfabffdecgcgcefbebgagfabffdefedcfdgbcgbffddedafabcgeabcdeeaegcebggfcbeddbagafcbebcggdfddafedcaadbeebffafecgbfbafcfagffeafgbafacadcbbdgdeeggagfabffdebeddbagafcgdbdfcecbggefacaaffbfcaacfegaccfbcdacfggbefgbddcabbgdacdgfadbbafgbfeadgagfabffdeeafgbafacaaegcebggfccacbgadbeegccfadbcedagdgfebgfbcgdgefbffcaegcebggfcecdbaddbaegbeabbffedfacbcedfbfdcbbdgdeegfbafcfagffdgebdbfeaaccedagageecfbcdacfgggdbdfcecbggefcdccgadbgdacdgfadcgcgcefbeb...
output:
164232
result:
ok answer is '164232'
Extra Test:
score: 0
Extra Test Passed