QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#5456 | #801. 回文自动机 | Qingyu | 100 ✓ | 25ms | 124144kb | C++17 | 1.0kb | 2020-12-27 20:26:43 | 2021-12-19 06:20:32 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
template <typename T> void read(T &t) {
t=0; char ch=getchar(); int f=1;
while (ch<'0'||ch>'9') { if (ch=='-') f=-1; ch=getchar(); }
do { (t*=10)+=ch-'0'; ch=getchar(); } while ('0'<=ch&&ch<='9'); t*=f;
}
typedef long long ll;
const int maxn=(3e6)+10;
char s[maxn];
ll ans;
struct PAM {
int ch[maxn][26],fail[maxn],len[maxn],cnt[maxn],tot,lst;
void init() {
tot=1; fail[0]=fail[1]=1;
len[0]=0; len[1]=-1;
}
void extend(int c,int n) {
int p=lst,q;
while (s[n-len[p]-1]!=s[n]) p=fail[p];
if (!ch[p][c]) {
tot++;
len[tot]=len[p]+2;
q=fail[p];
while (s[n-len[q]-1]!=s[n]) q=fail[q];
fail[tot]=ch[q][c];
ch[p][c]=tot;
}
lst=ch[p][c]; cnt[lst]++;
}
void solve() {
for (int i=tot;i>=1;i--) {
cnt[fail[i]]+=cnt[i];
ans=max(ans,(ll)cnt[i]*len[i]*len[i]);
}
}
} T;
int main() {
T.init();
scanf("%s",s+1);
int n=strlen(s+1);
for (int i=1;i<=n;i++) T.extend(s[i]-'a',i);
T.solve();
printf("%lld\n",ans);
return 0;
}
詳細信息
Subtask #1:
score: 35
Accepted
Test #1:
score: 35
Accepted
time: 2ms
memory: 11884kb
input:
bdgedcfadbabbfgeacdgbggaefddebabbfgeacdgbefaecfddffeddacbabfcgecedacbffeddacbabfebadggfafabcdfdeaabdeecgbcecegcgecedacbfgdagbgagafdegecadfebcdbgfacdecdegecadfebbcdfdeaabdbfgcbccfcaebcecfdfccagdafaeaacbggaefddebcbecdafageeaabcbdafadcbecdbcgcbdgedcfadbcaefbdfcbgfcdeceddaaffgcedfcdcgdcgbfdddfdadgagbbeffcfgfeedgegdagbgagafbfaaffgfaaebcecfdfccdfdfbefdgddadgagbbefebcecfdfccdegecadfebffgcedfcdcdaaeadeebcedbdagcaagdgcdfbabafbdebgacaabdegecadfebebdbfgegadabbfgeacdgdcgaefccebfeddacbabfeecgbcecegeaabcbdafa...
output:
5594
result:
ok answer is '5594'
Test #2:
score: 0
Accepted
time: 0ms
memory: 11796kb
input:
bdgfcbabegfbbbgecfbddbaceaefbebgeafdbbgaebebdabgebabacccebbaebeafbefaabdgfcbabegdbaceaefbegcaegagcdgcacccfbbfgffgcdgbccgecbdbcagbbcacccfbbfgeegfcaecbcebebdabgebbbebbgcfafbbbgbdbabgbabfgdfaggfbcbabeebbdaagacgbafecebfccdbgfacgcabefaaedadeacgdeegfcaecbcabacccebbacdbbdceeegcdbbdceeegbaccaecfbgbbebbgcfaffbbgcceafggfggadgcebbabfgdfaggfbffdafbacbbbgbdbabgdgdbcfgcadgccaedcaaddgdbcfgcadbbebbgcfafeegfcaecbcbbbgbdbabgebebdabgebeddecaagdfffadbaffadabceedfbacfbcbabeebbfbbgcceafgaggbggdcdaaggbggdcdabbbgbdbabg...
output:
7308
result:
ok answer is '7308'
Test #3:
score: 0
Accepted
time: 1ms
memory: 11716kb
input:
baeedcbgaeaabdcaeeagbeffgedegdfcggaeafeegccecbacaaaabdcaeeaggedcbbaebfbcbbbebeaeagedddgabgccdecfeegcababaddfcabcbbbebeaegabeddeedaaabebgcafgeefgeabcaafgcbcfaafgadddgdbccbcddfacfcgdeefgeabcaagbgbgdbefdcefcacafcagcfadegebcababaddfcaffbfgdfecefgafcfgddbagfgceabefcaaebagddabcbbbebeaedaddaacgfcabeffgfgegbffbddafgdagedddgabggedcbbaebfadgegfegbbeeddcbffgggcfadegebcdecfdafagdababaddfcaaaagaedfcfadgegfegbbbgdaabdeafeeddcbffgggbgbgdbefdcfdedabgdebgdaabdeafccdecfeegccfccfgbgacdaecbegbedgcdeafcbgggbgbgdbefd...
output:
6011
result:
ok answer is '6011'
Test #4:
score: 0
Accepted
time: 4ms
memory: 13936kb
input:
fadabcedabffccgceafdfgebfgebdfffccgceafdfbabeebbccbcebdaabagbdcabbebbgbbdddddcfdfefcfgcaedcdfbfcgagggeacabgddfdggddgcgagfefgeafdaefefgeafdaefbabeebbccabccadccgcbbdddddcfdfadabcedabgbdegbcgdecfcefaedcffadabcedabadgbbacdfbfecccfacaaggggffddffffbcgacfgbcbeadagbfffefcfgcaedgeacabgddfgbcccdcgegbdcabbebbgfggacfdeeeegccgdfbceeabedbabgfefdfabagabcabaccdbgccabaccdbgcfecccfacaacabaccdbgcdddcbggfcgbdcabbebbgcbeadagbfffbabeebbccbbdddddcfdgdcfefegfbeabedbabgffecccfacaaffccgceafdadgbbacdfbadgbbacdfbgecbefgafd...
output:
5874
result:
ok answer is '5874'
Test #5:
score: 0
Accepted
time: 3ms
memory: 11768kb
input:
efggbbfcabcdfbceagadfagaeegbegcbfbcfcgfbgdfffcdeagfcggffcacbbadedceffedbgafcbegdggabccbcecfcbfegdcbecdedfdeebebecffcaafgffabgbgedfcdabgbeffaagbffcdccaddcadgbbcadedgcfbgbdefggbbfcabddccdefedagebfbbfadfagagedffaagabcgbcffaggfebdbefdcfecegaeggggdacedbgfcdedfdeebececbfefeegdebddaeafbffabgbgedfcfcdgcaaccddccdefedafcbfegdcbeggdacedbgfgbegbcbbgacfcdgcaaccffabgbgedfedbbfgdceegccccbabagcfecegaeggddcadgbbcafaeegfgdbcgaacbcabfdgfgabceedafaeegfgdbcbecffcaafgafaeggacfecfecegaeggcdabgbeffabaabfecegccdedfdeebe...
output:
5751
result:
ok answer is '5751'
Test #6:
score: 0
Accepted
time: 0ms
memory: 11796kb
input:
eafdccagcbcaeebabcggdgdfcdfgeacbgcdfbgcabdegdbbaabgecbaaagffecffedeffcedcdgcecbgfedbdgabfdcbefcecdfdfaegccbfeefdccgfbfebecffedeffcbdegdbbaabeafcbegcbagecbaaagffefcdafgageffefbcceecdffabcbbdbefcdafgageedcdgcecbgcaeebabcggfbeegdaccfdffabcbbdbcbefcecdfdcdccfcbadcecffedeffcdcgaagfaegddecgffafcdgdfcdfgeaabbeebcagededfbdgdfcecffedeffcffefbcceecgdgcffdeabeafdccagcbacgbfaeacdegeagefgaadccfbeggcfeeaaegbbfadffabcbbdbfaegccbfeecccegbgfgbgagfbegadccffdecfafaffefbcceeccccegbgfgbdbaagddbddcbcgaecfeaeecgaefgac...
output:
6156
result:
ok answer is '6156'
Test #7:
score: 0
Accepted
time: 0ms
memory: 11832kb
input:
aecedcggbddbeeadcfbcaebcdceeegbcbaegcecbfefbbgbcfgegbdaggeebdfebbaeddgffdgfedegbaecedcggbdbbddadfageebfadbbegbaaaffddbdacdgbgbdggfgebaaebcfceefgaedacdeeecaccecgdcbafafccffdaedbbegagecfcdbbacceafeaabbefccgbgceeabcbaegcecbdfgacggffbdcbafafccfbfccfbgggadddddacbfeeebgdaddagcdgbgbdggffdaedbbegabcbaegcecbcacgbgbgeegebaaebcfcdfbbadcceceeecaccecggebaaebcfcbfccfbgggabacbfdfgggfafagffdacfafagffdacecbdababdbdceeaacageeebgdaddageffgaffaefbceegbaebefbedgcebfagecfcdbbacbbddadfagedbeeadcfbcbceegbaebebcbaegcecb...
output:
5662
result:
ok answer is '5662'
Test #8:
score: 0
Accepted
time: 1ms
memory: 11784kb
input:
aaffagaebeecbgagbccbafgceadgeebdgffeceacbgcbebggfdbgcbebggfdadgceeggefaaffagaebeegfafdeeecaaffagaebebgaabbebcaaaaceagaabcabddacfebbfbefagdbcdaggeggcfagdgfddegcabcddaefcdcaaaceagaabecbgagbccbaaffagaebegbagabfddcbdgffeceacccafcbcdcagcebbbgfggbfbefagdbcgddcdaadafgcebbbgfggccafcbcdcaafgceadgeebfbgbbddebadcdccgacgebdedgaddebfdbgdfcfgdgaadddaadacccbgdeffacccbgdeffebdaadaaecfcgefeeffbdddcaefbggggbaaddggagddcdaadafcdbfbfedbbeafdffeegageacdabfbabgaabbebcaeccdfgbgbdaaddgdbfdgadgceeggefcabddacfebggbaaddgga...
output:
6006
result:
ok answer is '6006'
Test #9:
score: 0
Accepted
time: 3ms
memory: 11880kb
input:
bfbbfccggagbeddgdcbdfecaedcedefgfeaabdcaebabegdgdebbddaefebgcefgfcagdbgccacgdbcdadbeafcedeffbeccebabacedebabagadfgbdcaeaadbacgdfbgabgdbafeadgbfbecfccbfgeecabgfafacefbgbcebbddaefebgadbacgdfbgdagefcefgeddgagggedefgafgdbgacffbeccebabgbeebbdafegbeddgdcbdcefgfcagdbacafdggbacccebfdcddgadbeafcedecefgfcagdbabgdbafeadfgafgdbgacfecaedcedeagbddabfagfacefbgbcegbeddgdcbdfecaedcedegbfbecfccbagbddabfagegbbaefeedacafdggbacfbbaecfgcgegbbaefeedfgafgdbgacabgdbafeadfbbaecfgcgfgafgdbgacedgbddgagbcafccbbdbgccebfdcddg...
output:
5966
result:
ok answer is '5966'
Test #10:
score: 0
Accepted
time: 3ms
memory: 11776kb
input:
gbegegfcdbbdagefbgadbfafadedacdbbffcbagfcgebcbbeabedbedegbdbebfcbcbffddeadadffffadccgfebbadbdcdfecbadbfbfeaefadfdgfeaebfcbgdbfbcfebdagefbgadedgaeecegbeaffcddaggcafcddaffccafcddaffcgfdegffaaeggadabffaddbaebcffcadbaebcffcabfafadedacdabgaccfdedbfbfeaefadeadadffffeaffeffaffdbbffcbagfcbbaebfbfgebfcbcbffddbdcdfecbagfdegffaaedeadadffffccdedfafbgffbbaabbdedbaebcffcaebfcbcbffddbaebcffcadgfbbaafbfbgadcgabgbdeadadffffbaeefgcdcgdeadadffffdbagbgcfadgfdegffaaeaddfdfbgcgeaffeffaffccdedfafbggcaaeaagaddeggefcfcd...
output:
5997
result:
ok answer is '5997'
Test #11:
score: 0
Accepted
time: 3ms
memory: 11848kb
input:
cihgfkaabfcjeehlggeihjadhfkjdfegfiibdidefcdehjgkkhjfldaeelddklklgjdkbeidjahlkjligjdhjffddfljlbejibdgllkddjcccddajbkfjkfkecegichgklaeccfcgjidfkgckhafjeabajihcchghkchjfjkkbeeajcghaillghbcidglkcldfkkkegjdgcjfecjbaekhcadlfefcgagjdgebkgafagdeijfkgcebkkefbblkdlajccehgiidfahkfblfjafgikaacjfddalheeelcjifafkijdfejkjcdkkchfljbclcegfjekjdghifejhgjjeehikcgbiciaedaclbkdegefjacjdjjlkdgkgddcdbehjjfheihlfefjkheblecabhgkkddcceahkakfjhageehicajbclhhfgcbjhjefbiidhhcgalcdielfjhlcccgaadhjflaccjbdjhicaifhjiklhibgbgcd...
output:
3028
result:
ok answer is '3028'
Test #12:
score: 0
Accepted
time: 2ms
memory: 11820kb
input:
xbqpbhaecvtkxghbvkmwarwpsrjwhgqnojrdskecifmlbcbctlolyjdswhhclojnnfcynqqfvcchkuehqxgbuaqsnwotkfskrnmkwoonkhcvwwmplrxlfjvaepipcegcekikifaxpqclhwmstfifhnawojfngbphtfftcewckdeseoxnfwdtymodyqlewkbcjwtyufrevupfapglxllumkvspbebirrytpcmodoncourbanwyylnwugxujjtdwgyjipayvmgucnqnrpwqplwpdsocasjykituacpagydmympjueindogcetpnwapviffgqervsfctfumejeoehitfvdunpgckafqybwdyvtysyxvauyyfgkksqlfvjowfpjqudjdwvhcikrcskqaxhdgktccpblfjxkvvlahwtaexqpwgxvldubyhxdqpgyfgfcptnjohquiegletacuexdppgvaickwbafqdyahrcoidbunmbflyfxa...
output:
1481
result:
ok answer is '1481'
Test #13:
score: 0
Accepted
time: 0ms
memory: 11932kb
input:
tobdfhlrhrypwivkkpiugptzudfkxlxkprusxvwlhwqinpfwdxelgpgrfkmkjfoovtwrinkdpehykvkksgswkikxbowttkqdpkvevjbrigecweqaehejnugxnukpqcueewuazbzfbijnvrqlimbipyeyxhszbdqeduibykofvyqbhgxecowsrrqzpboxzafxinkqtxgcavjiezzjoqweqtupcxgjtxgxxzanmwamwhpzyxqxgouhgnkvqglgunyqnawrwlqpxhtdscimoedcwpuwbqhiygbfoshwjkvquisdydqnwyboimcdtcrqcumdpikaussefurcpsmwglclovoviztcrqyaqwgevlmocqjjejwkxrzxqkaevvfascrpynyhluaeiozgxzzmegmdroiwkbwsbjjrqtgtzbdyiiccvpfnzlxfqrrhawkjtwmepjcxvlxsmlkyfifplsdkapbpxkzpgalcqyixvzuckdziqoiumgje...
output:
1437
result:
ok answer is '1437'
Test #14:
score: 0
Accepted
time: 1ms
memory: 11876kb
input:
epkkjklkmnmgajmqaqfdepfdlhockegkcpekmdmfaphqmqpqopjhngpblcephamlqmekfnqjoknnkmbodonbfkmobeddbmplkallmeqipgdimpiqfeficqknaeapllechkpdamdpeoanqoghnlhfggaihfnppbmfdnjcokjfakladhdmdiejcecaheilbeoebgfgcfjlngiphlqeemgopopmonfcccpjhleijllfngdomcqhkfcidmkgqqgoqegikioaoodkokhaklaihlenckifchcjoibffdjqflgqfmdokjnifedknhiindgnkodaqnecbanmbodenkkcggmadghlimomblimmhkmjgoebibjfbmjipqjogijkkdejmkkckbgoijnhcognjfeochnlgogjbjanhalqihpfehqplhqbolmjdhjhnhnhfapigqjbkhochbdpgiqbmndlmcdiionmlllgndacfemhonglqbinoghghji...
output:
2190
result:
ok answer is '2190'
Test #15:
score: 0
Accepted
time: 1ms
memory: 11852kb
input:
acbabbcbaacacabcbabcaaacaabcaaabccbabcbcaaaabbcabaaabbacbcaaabcccbaaccbbcabbaaababccbbacacbabaaacbacbcabcbbcbabccccccbbaacacbcacacabbbbbbcbcaaacbcbacccaabbbabbbcabccbabaabcbccbacccccbabbbbbbaaccaabbccccbabbcaccbaccaaababbcaaabcbaaacbbaccbbcbacbccacabbccacbbacbabbcabcbbaccaabbccbcbbcbccabcbccabbbabcbbbcaaaccbcbabaabbbabbcaaabcaabacbbbabaabcbaabcccccabcaccbbaccbcaccbaccabcaabcacbcccabbacaaacbccacbcbbaacaccccbbacbaabbcabcacbbbcabaaacccbbabbcbbccabbbababccaabacbacabaccabcbbababaccbabcaacbccbbcaaacba...
output:
15924
result:
ok answer is '15924'
Test #16:
score: 0
Accepted
time: 1ms
memory: 11836kb
input:
bhdxinplnrkvahvgamiwqnuqpgmivqfufihnsjcimgfdkjsrqxhqxwdxfocovgpasgnxrvioxpsolcxmfxuhfpeehmmfsgcggenvovhmqtvnohtrgdhkdoonojjdvlvelussuegcpkmfvtdpawqeowewbpxbipqmgckmrarknfkqqbfgvbmbsjtilnbpgwpsbwrfvlfqsdtnwsscwawwgtmunewtgjujwniavsjrcewocbxelgntqfmrfvblghjcdemxtvxmlupgxotjnxrnhemxwpjtghcokiibbujodawxrgdwgekxqlfrmamfaurbkwltnboulmmcucribjxljrwoojvfcinduqfpxjuwarkdlemcjcjhcgekljcdudxgqlbgmjoouvhiivkueuxodrgfqpfqrqmbgrxaklokosrbabowpaqkarpmvqijpulwcjhevuvpcpgclcmudpwkknseqgvplnqkppiwjmxfdpntlmelhxoe...
output:
1548
result:
ok answer is '1548'
Test #17:
score: 0
Accepted
time: 1ms
memory: 11756kb
input:
hgroaoogpmsnobkfecoqlebndmblggaerscolcqerhgobfdmialndaaaqjisghbljjqefnklsoqeicimqcplfohjdajhpecehlgqilimkrksleroqqrqhoppcpsknnaaonspddgdpoqqhdifcqpfqrkljlokcgsibeqmrhagkkseaeapqaboeglocqpipambsjdhpslqajkmsinddrhcjmrhiiakopjqhginnhkreobjpdigloolkhkdjefbqpshpqcpearjapkqlerkllljefflqcrcgkcrchfndgloncegqrmfqdlogmpcijammjhnnfqcdnrkncjboiqkanhsqdaalqbqijcgghkdganfmksbankpdikhdiekjjmddifdgmmpgemanosgkfdfmcqsjaasgnhrnchjocdgagsomaolagdgesqamaobqddgearfdshbjkmhhbbjrngscjbshsjgnblapcdqdqleknrhsprecmorccco...
output:
1976
result:
ok answer is '1976'
Test #18:
score: 0
Accepted
time: 4ms
memory: 13928kb
input:
vbofyszrvwsdixyhngfqrunnmhivyilqiwxsdayfmdyovagfbeddpdwmpnfsunmtlxjvrizfzknqgrirtygwdmqdnqubzmryqxqjzfvrgmlebiverkcqaqpdiapbktwaixerxkewhtqfvgtlrtxuesxjhkdsbjdqnkuvivypgqlycjurldmfydcxictjwbjpdwqimbfxakzrljrekrxkestdeseewcetuaquqvbwxvqgacfvaeiycmmtyvxsxfmpdnvylkybngtoktxwforvxkhmludmkljxdoquhyvmmevkndjwamzvxcfxhuztfvprrjnijclsysaawzbwqysbziapjsvsajidnafknzppjiwrvzguneobszffipftkmxmalqhwzlyepzyysdaoekqzoynnvpvehnttmqtalqbuamhjkwslvdpcwjcjxxyjexhszpogxjvoavqvgycsyvjgmsqftsznivqprmefteodspbsjigsnxv...
output:
1412
result:
ok answer is '1412'
Test #19:
score: 0
Accepted
time: 4ms
memory: 13868kb
input:
lldkkjfeihgcdkaeijblcggdmbabmejbmljljjeicleelhfjagckgkflfggemmalgjeekdlhmjeghcibhgfmdemjljgjkmfjaidmiaeeeifeibdfmllhacickfgdfihajkfcemajmdfbmeefimfgbmlggfmgiecdedabakhkaafabijhagaihbcgllgfklbfemmecbagfabkdahakegdmgdmajhaeijglkbemhadmhfbaagbhialbkkdblfflcamieidichbhagbmgifijgjdjidbfejaaamjddbbabmbhagfglmahklmidklhkijkcklbkjiicmacmhgljaddadlcaebmefjmacffbhaekjihagfedjieeelddmdbcimfgkekmbdcijhhgkcbcfibmhmjdiljgfdacbbkihkikljfbdkafhgajkccjhemgfkcibfeldmilihakfecdeffmicmieabebhkgjbgjcaiaegabbkcmbjbch...
output:
2773
result:
ok answer is '2773'
Test #20:
score: 0
Accepted
time: 4ms
memory: 11748kb
input:
hheahpaoepdahfdeqliolckfaogjamlakobiahncibelepjbfgjpjofpnhnpgelaafcofkjlpcoaejbmemjaigncdfioeeflqcpgjeehqehfnqnjpqoidomgbpeehiliaalokmpkfqbhdaggggdkoefkheljfhqlaqnjokafpgceqaohgipkncheacgdlooqjpqdioddcqjgpkbceipjnfflnmfqgbjkomlndbpqcmfploeeemcjjajnaapcmflbolocohbnckafgemghqffmpfaohdopnifjgikadnapdqadeeqcdgdeecfijhnobjocpmafhcejimolahnipmgbeoqqheigfhdblahdhfmfgiqafkjfoqqnbqplkeeqkkbcficaioiobgjbeokbnflomagnfpejngdiqmddqpddcheikclfaonlgjjhpcjboedfibmekfqdbneaapcajelmibmiokpbqmadkioagnmebhijoimgibl...
output:
2120
result:
ok answer is '2120'
Test #21:
score: 0
Accepted
time: 1ms
memory: 11924kb
input:
hrkmbslgoiahkuaanfkrthtriresittllrjptqidbokqisorhdmcnsamdkcbokuhhlcgfqihbcehbrfnggorroeqrnpcfltfrbmnksslngaemigpsckalephiuuqjkhjqmumntfdrtitudflftnasefhkotpfibanafjueadhkelkqkhteijueqtnobdqgjolnjiqeictqgubhufdneampstmckeddjpenuisdgdqelmpmlrfblemsojtracnsagfiopsfqnarqjsictamuljpuadattmeudqnfddapmtseotkabijkdlubhsbuagfnunsmalscfeqgtlanujghqkabosrboqrcaeejesdkpuhudplieuhfrcnguuldhlsghugjmtpnlcbgqoqktsqdlkpntpifkmularklostjbsflljeeojqpehekddjoupohlrghndoobkcunkbmkqcbgcaesplgdrdkbnaiuhttihiinqpljqlsi...
output:
1773
result:
ok answer is '1773'
Test #22:
score: 0
Accepted
time: 0ms
memory: 12012kb
input:
efbedhachhgdhbhchecbgbdedgbhddbhebccgegbfgcdgeghhehffhcfgafgeabdehbhehafbaagcfcbecadhagdebfdedcdfgbaffeffgabfdafccabhabhbehhbegdcfehadehabaacbgcfgehffdbhaaagggghedfhaefdhagbgeffahadbbcdcgdfgacaebgdheabahggeacfahgeedbgadgebhdahhgbebhgbgaghhaheeffgbbdcchddacdbbceeefccbeafgdgbagabdhggfgbhffefabcagdhahccabccghebcacdcgebahcagehfcccchehheccedcchfbfdhbdaehheefcebbhcfcaeafhddbfagddagbegbafdbddhaegefhgacggfbecdeghacdaeefccehhacbahffgffcbfaghgbgggcebdaecegahefcdgebdaaefhhbhgcccgbaeacfabdcebcefgebdbchhfgee...
output:
4464
result:
ok answer is '4464'
Test #23:
score: 0
Accepted
time: 1ms
memory: 11828kb
input:
ibjiwmcjcnneglnnkvqrsfnowvgrcqqcwuwgwbbntduorslqgfhfqowannwocthiwwuwuvohnvldknewuhkbkcbvqmfhmfpbvfwekmjsgbdbgvewebjnddgwbjcruphqedcsoiqgfrwampdaachuejdkjdsntvwgcasdwlspqmjshvamcgsmviwwghpbvdmccmccoclbfcntjtparjspjsqkbgumnfpvsqdqorhcjkfhwlkvdlmgdghibjkdwhilvkcjbsusenaedekbqsuwskqlrwvhnnraoiqmljaberummfcgbkcptkkijohtidvtffdbmlquqlvhhowuatvhwcufiukjulqrfutjmheamrcfwqpskgdoovcqjenpbhkgftqdnqbsdemibqorbesmemsrewiuqpmbwmnsakcdhenntnhbkdcmffnkvkkcmvcvmnclsqvcajlbwdhcloowktdwhecohvcufglrigacvoqjpprumasn...
output:
1605
result:
ok answer is '1605'
Test #24:
score: 0
Accepted
time: 1ms
memory: 11928kb
input:
gywcydgphaftrvrgycaavbmagbwecbclapeytmcbsirkhkdtgehkqvvpdcrijochiatbfiseyacbyqykcxcllitvliopmxtbcybatlbaqlwliruoiqbadtkgbppvxcryxyycsdbmxywexbrssjrnppkwkucgkjbkdxcrdtnaynqrjjohwfyyciikfojscwedqqqprdpipvcomfdtevejwumquinswmjvofcefmjabxqvkirrsrphlfigxktufdgijaicbcfhsbnnnpuklkrbbfmjbwvoveunnkcfacvdkwgqslsdlmmxurdfonjsylwdkjyqulfcsqhrbowkmmxyalbospilamyvewfgeiibmfphqxwrdisqajpdqqnddphamgruotcnhjvtowmstvynksvmsaqpcyjimtyxiymxafnflkburfltoljbivtgcimcohinqkmkdjaauetemdyqkavsxblbpkwixktdmffafbuphulmsjwf...
output:
1487
result:
ok answer is '1487'
Test #25:
score: 0
Accepted
time: 0ms
memory: 11924kb
input:
cdeabecddaabdceecaeeecddbadddbaebebdabecebcbeecbcdebaadedaeebbeeacccdeeecdbdbadaedccdabddecdcdadddacbdbcabcacdbedaaebebcbbeeceacbdadbdabedcabddcdddbdddcdcaebaccddbabccbdaaeaddebebebcbcdaecedddecedcdacadeccccadddebcdebcbbddccbcaedecdededbbceeebdcaceecccbdacaaaaceacebbdecabaccbbcebebbbddbccedcccbcadbcecdcaaddbcdebcecadbccbcacdcdaaebcddabbbcbaedecbbbecbbcecdbaeedcccaaccbceccccbeaeaceeeceacccccdedeecedbbbdcaadcceaecdecdccdeddecebcdaabbaedceceabaebaaedcceeeeebebcebcccbddbaababbbabbddeaabccceecedacaec...
output:
7073
result:
ok answer is '7073'
Test #26:
score: 0
Accepted
time: 1ms
memory: 11956kb
input:
cbbbacaaabcbababcbcabaccaaabaaccbccaccbaabacccbbaccaaccacabcccacabcabbcacbbacaacccabacbabbbccbcacbcbbababcbbaccbbbbbcacccacaaaabbbaaacbbccabcbaccbbcaaccccacacbcabcbacbbaaacbccaacacaaaccccabccbcacbbabbaacaabbcabbccccaabcbcabccbaccabacabcabaacccababcacabacbbbaacccacbcabbbacaaabcacabaabccaaabbbcbcaabacccbcbbacbbccbaccbbabcbcabbccbabbcaaabcccbbcbccccbabccbcabcbcabbaccababcabbacaabcaabbbaabacbcacacbabcabaabcbcbccacacccbcaaabbabbbabacaabcbcacaccccabbcabbaaababbbcacabaccbcbcccbbccccaaacbababaabbbccbbca...
output:
15764
result:
ok answer is '15764'
Test #27:
score: 0
Accepted
time: 1ms
memory: 11752kb
input:
jeaaiibjbcagfeihgehccdcecadcaihecefiebheeigagghchaebaijfdbjfdabgggheggdigbcbebiibacbhichbghidcedebehhgafdaehgccbafhibgjahaefjcciabgdhaehjbgfccbibegchhfagejfcjjcjfbedcieegcafghacdhgagahejdddgbcgjdecchfffjcabaecbehgadcihhbcfajbfdgcddhjiaacaidgggbjifdedfbgcbgeaehbgfhadfdjjhhjgggehehjcdfcegffdjicgfidifebeghjiafiffbciajiieghhajdaceaadgdjaeeccejdiacichbghfgehcdheeajaddafbiaieedfeffjhajjcabcjhbchbacigfbdgceecjijeejagfaeiaecgijdhbhdafcjgdaehefagigbjjbgdcijdddibfgddbgggbjaecaehfhehijbhffbhieagbeahaeegcce...
output:
3583
result:
ok answer is '3583'
Test #28:
score: 0
Accepted
time: 2ms
memory: 11828kb
input:
bkogogclbdkgoddeopcqiimllehnkiokpjpcapheqeohhdngckljhekpnpgibmlhfrqirnhpkkkplgkggcfqingmdmdqbgffffqbllbjefqqerrekclhlkeclgcrclqankqgcnnrrmdmpqmldfbeolmeaafgrcfcbfgekilgfllrqqdnanpmfgqihjnicaanlkhpmqrldqonogqhjnebgglgjrkhbredoranhqgfgphdidbldmfqjeeebhrqjoenppiiejqljedlelppdhkoapgcdlihkiqmqgcmkikfpdiokcjeeifiheflnileoagfolhencdhrgqqmdqmrobpgnblgnncenkhdopjonlhoecjmbefrlkhmbphdgbloijofmdhbamjlmompdfbdkqkkcnrkboqcomclrnjifbliomhfilbhhjrnaorpohnfmnaohqprlajnnibccfqcbneqmnkmipqcoaqpdqhnqijbnkbokepleal...
output:
2017
result:
ok answer is '2017'
Test #29:
score: 0
Accepted
time: 3ms
memory: 11916kb
input:
dmfdicakllkhjcbfpkmdaoimolgpnjncnijcnikhjodehgnifdbjpjjhlbaobkndlnbehefonknlfkjikdonddkadgbjehjbcnnceopnbgeaogpnafankjpmfnochbcnjcjlfokkcmchfeedaokdodknalochdmjdgnkihombaclfehgohehbikpheiccpmofebkijlldfdimfjaeffpkgfpbhccfldbkhpnbbgogofcjmkocgodnghendannpphbhcnacoeloheocpecafnjopkhlfigajcnenbmnjegegilhfjkdojmfpkfgplkfiheoonlaekjekcdobgmddnoamhbkfmmhhfnjjnccnebgfccghodlbhpjoeaekfkbbdkpeddklcogijhemnfjpooffmolafapgeckgdfdanjmigdpmompgoemekipbcefceolngghniakfeinddkofaehpfeccmbmffdaogbimffccabllpbplm...
output:
2249
result:
ok answer is '2249'
Test #30:
score: 0
Accepted
time: 3ms
memory: 11864kb
input:
jmbhlcmaoopgbpgoifibbekilhbbnkbbmfmcbfpoofkmlnojoencbbjgejibmdimlfpjabmopfdhmfmlichcjcjjlollgmpkjamlideggjjpkadhbagclealldnlnmhleenhkjkhoklkepddkccooijefkiaoamaahppkadbhccefdbbieoaaoogjjpbdeogjllccijgbnhpfanbljnakmpnhhfdjjefbkmpmmnkoggfmlflgldaefkdhidcmmfmnnnbpgajhmgdfkcaahbpmjgknocbpbemhcefdlbldhnkdkppccnkdmmnnglocaicnpajiappcmkkdhbjhhknkhnpbfpfboedlafojkccmaakoncbbimnomlnkcepmjhkpiplkajkffeiecmmdjbanfmppmalkkadpppkdgjmbcnihjghmofkfcgfdddacmpibnflgdgooejhhbcpdpkoefnkpecnkakfpmljononcokidmdpokdc...
output:
2247
result:
ok answer is '2247'
Test #31:
score: 0
Accepted
time: 3ms
memory: 12008kb
input:
bdchdgiihadebebhifeadbbchccageichdhabgibbifeaaeiehchccidgeagdgafefadhabefabhfhefiifafghcbecbhfggdihfigbfeabbfhgegciehdbbggfidigcdahbeggafdiiggfedbfcbicehfbaaghciddgeaddfeibfhdcehfdafaichiiebcbgbgadefccafidabageagffhhfiihbiedfdebgacecdbhiadcgcifdfhfiaebdfgeiaacgceifiadiihbhifhgdhhhcbegdfgdhebbeaeegbcfhefhgdcfbifdcdgiidhcfgfbfgbcbfccahgchieegffdabahgaifaefggbdddfhgadcghicgcecicbeaeeghdcghgciieieieeechiachfggdiceggfffibcdghdfhhedgbighihecihdccbbhgbihifbgdiheaeiachfgcacdiecicggibfbgcgbifhhiagfcedche...
output:
3952
result:
ok answer is '3952'
Test #32:
score: 0
Accepted
time: 1ms
memory: 11928kb
input:
ddbgeicefegejhkdbbfeejjbgkjicchkbjkgkhckgdaicchhjjbfhbeikkjaedbaehjgafjcefdhfihecjjidcieecbegihabfighgbkbghcchbkefcfgkaekkgkjjdhdhfhefkbgdbajcbibjkgiebciibaejdeiahakddehdeibiagighjckcebhckdgdckkigadckdgkkfeghebjkjcddfaceijghdicdchgahajkaaedffkcfbhfajgdffijakchkkkfbhdahihhijkeekbghjfakhfhicdciffchkchgefhhkahdgdiegakfbeghgckgeadeiedgfkigkcgcjcjebjbjggbdfcikfcihfakgheadjbcghgejjhdfgeciibgaijhhhdjfkkfbjchfceekhgbaihbefeikgffaghagafdbjkbeicgiafagfbhbgibgifdjdgedjbhfgjcbjcbcbfkickeacbeahdecafbhfbgeiak...
output:
3248
result:
ok answer is '3248'
Test #33:
score: 0
Accepted
time: 4ms
memory: 14008kb
input:
gmlipprhnmgngbibehcerdjnccabfrcbkkjmligbacqcmqedopraaaqonmapprifimhrcilrjamonlkqiqmircjidoeqboogjcjdfrldnqncqdrapbqjmobgaoabiminjgdjngimhlomeeabrgponqgnroaijqpgkakinhldlekeaaclqabdmbmjnejqdaaaginaodnjnaeqfbaibjgjrkdhilddikocpnhrqognrffrnlpjbcpcbkioqlnrgharmhckookandnkfjhdajapbjfagljpbrriqqkercqnhrqdicqpagopoconippbclnalhjhkecjnpmbjkmcmjdigpffaeoembcammhnfgjjilcbnlomjphgrnnnajkemllmikffmkgolgblqhmfjemarracrmdfbpiaebjqkpophibonojegbkbabecdmoliommdfbpeccllhimmbldobkilqlqacefohopablmhdqrhdbfbqrjbbdk...
output:
2035
result:
ok answer is '2035'
Test #34:
score: 0
Accepted
time: 4ms
memory: 11916kb
input:
aegnnajjbnpkqajafainmbmcmrfnrmldjiqrlpaeerlqakgkbndegdlajofjprlkgdgrfdcrojldqlcqihnjfgamkhhhglffdropmlhljajdcrldrjneqlnnnggrrrmjcnggbenrjdboknrinpdrfakrbedcfhngqafbekqloggnmkmqlkcifrkgildfqgfjhqhbmkpheqqcfnrcldpjfnphkdheiblijiebkqkcmcmkmalhdjrafaohcrqfqeenmnrmalckggkdbloqakblbleheidbleodoiilgaapocngjphjdokpijfqjiifrefgijroafekkqkaifmhgqjmqniqmqlfjcpembjdlgqmjbhlcobnbldkmbooefacdcrahpedhfijiilecmepipbipbimjhhofeohgbchqdlfiablqahjcncqmpolfephkrfcardghkrhhfcdidarcckdljgnagppneljeooiemelgarigacqmhpm...
output:
2033
result:
ok answer is '2033'
Test #35:
score: 0
Accepted
time: 1ms
memory: 11824kb
input:
cdedbbbadbaebccbccbdddadabccedeaedeeaadbeeaeabcccbcbaeccdaaedabacbadeaddccededdebabbbeadcbbdeeecbbbbcdbcaabbbedddacdaccacdaeedcdeaceaaaabeebcdeecabdcbceebbecaaacccaeeecebbcdcdaeabddbaacabeabdadddabeccabbaecdaadaddbaaebbabbcedbcdebbebbaabadeaadadcebbddebeaccecacdaccbeeaadddeccaaadcadbbadbeacbdcdddbcacecedbabecedecbeeadedeaebbadbdebdbebeeaceeabcdadbbcedbeddacedbadbaeddbdcbaeecbcaeedebedacbaddbabbcbbeaeebceedaaeabeeaedacacdcbdacaecdedcdaccbbbbaddbadcbddecbbaccabeaceaabbabbaaddbdbbceabeadadeabbbbdeb...
output:
7056
result:
ok answer is '7056'
Test #36:
score: 0
Accepted
time: 1ms
memory: 11844kb
input:
ebknblltothuqdufqotatoulqgnmmhfjckaalshtvllkvmveaunlkkvsnpieenjdvckiblddejspgpemngqebqgcgkmrlbreutvuosjvlnrmspbeitlvaakfefverpjnlujsqrocbchpclamnhvdadusaktnbdhndhotojojmandnvqkifinbvtcemcbcvogtbjllhajttittjsfvqovhfsmpkujcfkdlbrrhqucqicdldtllcljhjegrebktfovcldoshvsrnhlqlgmqkifmbakgmuftrcolhgpcnbmqtlkukaunglbsaqrmpnrjlmrvkauallgqdgdljbcsooecullgofkroiioujmpamogehvibddrblgdqkccsdogcrbdciufnlidgrpsevbgaqpfckumbddmevtgkgrcngkjamepakjchlmavnvcuukigjrlvhhdampjqphqlegnfardehcgqsbbhvsrkeleeskrefcgemtbcmc...
output:
1667
result:
ok answer is '1667'
Test #37:
score: 0
Accepted
time: 4ms
memory: 11936kb
input:
grlhcvvnmcskprdrhjojiusojfkeaeqkjmnmsljdgjajqqfbkkqvnhvosdtoliiflfjaurdjahjeispsrlbpgannhvsqogmknujohhjohoshlshfdodisocpsvgomkdljummmalsidljfknsdeohtvqsphgtebatlkutpmdltdqgkroirboqjuufvkkacmorgumntbolgqjhrheicpjhkahiljhkqrfvmmvjosajqmgdaafkjitqudmieodmempkitesrdsfkfijgrbcbegkstutjqcbvhllnpjmkfhmarchlmflupetpuoclkbfhdmvbqlgarbdlhjksusmocvtnhdohmjequsbiuskbijmbbtiadocqbdiqhcebcfqjlhqfalrkkgkosqponhusdlinpmbnotepmgavfkbrcotmvsbtgguhukrjhljbkhmnukolrmoalgvbbqrvhsjscsoounurhlpsvfeoktsuipeitolkgndjaos...
output:
1653
result:
ok answer is '1653'
Test #38:
score: 0
Accepted
time: 3ms
memory: 11868kb
input:
checddgjigkdclhhgfeikhaijijdiibjbdahhidefdclhlfgfjifhgcekakfjcdhjlebchhekglbeeafigdjkdgikhbedlglgcegblhcafggcbabjidcdhakchiicdeiaakejikkabdecfclbkbafalagbgklcacidglkhaclcgefklddjaahihhlfhdejljfccdajjdecllfbafifcidkkjbikhlcjhejagbelldajbkeeecgacgghkfdlfbhdhllfdihhfciclhhkcllicbiidhgfgekhbfhfkdlgifcfbkkbgdaaaejeeehifhffbfafkllkkiealglccclcdbblaeieaibhgehblclahaebfbfhjjiljkdahefccgahafhgcabbgaikihfdifbeeaccfbgjidblecfgflafgfdaadhcbfchhbeadhdjlilhllikfgbgebdaclcfdagkgajgjdkecegdhggdcjcieidbjkbeblhgj...
output:
2986
result:
ok answer is '2986'
Test #39:
score: 0
Accepted
time: 3ms
memory: 11928kb
input:
ggfffhigbhacggggegcddeigfebcidgicideafaaghfgebbabfdahaiiffedbagfheaffaehgahaahaidahagdhiaihabecbiidfhegcadchdhidbhiihhdefgffaieiefdeaiadbbgcfibcediecadfdhaidcfhgiffgfaddaiidcafefffbegiaabgdbgigcfbiiacccdghbaibdbicgdbhfcicheiidghgehagbfihheaaabhhifigifigegihedaecegcgcchdgbccafdiegbifibdifcbaafffcffeiffhbgcifcbhehceaibibfebiagfiifhfgebaahgddgdgddbcbcihicgdbhiigggaehfabehgdgfddghhdecdiedihibgfaiddfbecfbacfficbiihcheidagidbiccdcgcabbigchgfcifhcheebgdgbidbeefciahfabfhbffhgcafcicabdaadehdccahdhicgdbbb...
output:
3918
result:
ok answer is '3918'
Test #40:
score: 0
Accepted
time: 2ms
memory: 11872kb
input:
ummgfeaecrtgkapkpsmcmactitkugcrffhshjpudirlrqffrrindmemsqrkjhoiathjjjtpfhepfrncpbbpdgpnqrmqrfekmonjbrhjbturipgfltgaesdfamemqtmaepfbglmlclsmfkcuutchtmsjdhlmfjjglpejuqpocnljabloikkbeaqmdsubcjunqfiddnutaapegnbanurnuiafagmhudsrmgiegnutuncgbprbbpfqhjpcamhpjkgbuqfblospqlditeljglgqclqihhtqdeesurpqefbhehjjonuubcjkqqglnmknqicbnaobeidjmbplpoaijhnjqasudfefcbfmemfbtbpaaurdsaekgfbdkubeajaaaoealpjgjkjigijhkfhtkjkilgmgrqekablasmhplpgqfdagenrlttjsbmoilhmmjduhokobobpglaipfiueghqtjpsdneljdnnuunmnnfufmrhuflfhdnblk...
output:
1773
result:
ok answer is '1773'
Test #41:
score: 0
Accepted
time: 3ms
memory: 11824kb
input:
ldkfjidefefcdfhfmadbdcdajmlcihglmcgfbdjidbhlalclfgihgmchdmjeclkcglbcaflfhjamebdmcmljcdjammhldaeijekgigehhfbbibljjfemiilfehjdklcdaaigjfjdcblkecfggdchiamlifgdibjeffljlmcffajafafadcimlgcggmmeamejfileclkhihjcmhcfahfjffhdmkjcmicijldllghegihddebchcchejbklfealaijhbamabfedijjhiljjbgdagkfchaabiajhgackmgaeabglblbhallmkddlffgbamffflgkkljbhcjmmmlkmjfdhjjmihmhllhmljaillgdlgbcdgikicbgidcbdfflgbkgiiehbldbjkdlmmhamiegffebldikjkmbljbihadghicjgafjahmeaccilciceeljcdgbmgfbmcmageagelgecceagkkbjdbaiedfadhkfblmjglifdj...
output:
2788
result:
ok answer is '2788'
Test #42:
score: 0
Accepted
time: 3ms
memory: 11832kb
input:
eudadvifjlpkmgchohotrddufliprbchvllqbmvllqkorvispiouqlfmutceufqijhecpssiagmacfufsgkncdgipfnmkbpertblvbkmmmgqkkapprjhbmccisilfcjciqvgmdvucovglbdcmqfhhucvhcbdhbbamrehrceadfavodqusggkakfirusaqpdbnlarhtofvtgmnecblfnddgclhdnevfmbemcbnkldmkdnggcpmuvnvcaonmqmafiehpcusiqqasoahugkmioscdbnkcuappfthjibopidjlqmkceopsqirlnnesbnvelqgfivshnofsdtgpudtfdpdbergjvunfjgcdnvhhsdgqbmfainqrqiphhfkcvveglbgmkikntknjqtvtufdbhkivppjsragocbdrjqqvihcansuqradaniuaqrgatdhsvdladetbcvvomojabhpksioimamjinhlqvhiklhbilvmnfkuoifjol...
output:
1683
result:
ok answer is '1683'
Test #43:
score: 0
Accepted
time: 4ms
memory: 11852kb
input:
adddcbdccbcbbbddbaacbbabbbbaccbdddadbbaaccabcdcbbdadcddcddbddcdcadddbcbcabddbbccbadbdacdcbcacdacbbcacbdcbdcdcadacbacdaadbdcaccbdccdbcacccbddccbbabaacbcdaccddddcabcdbbccbccaacadcacabdddddbbbacbccccadacbacdaaacbacadcbcddcaccccbcadadabbabbdcadabcacdaccaccbbabdacdadbcdabdbaaddaadaabddacbbbbaadcadacdabacdacdbaabaccacddcddccdbaddcdbaabcadaaccbabcddbcdcdcbcaadadcccbabacbddcbdcbdbbbcdddbbbadcadbbaabcdcbdaadbccddbcbcadbdcbccdcdcaccbcaacddccdbcdadcbdabcacdbdddcccccbdbbaabacaddccacdbbbdcbcadddcabbbaacadbbd...
output:
8968
result:
ok answer is '8968'
Test #44:
score: 0
Accepted
time: 4ms
memory: 11844kb
input:
gbgaddcgjjebdeicjajeafffffhagkejdhieaediajecbcejifchacfcghcjifdcgkbdeiehijakefbehdjicfgfbjahfjikkkjkdibgedjkjbbkejejekhchjiihejdhigjcgdfceefgdbfcdhjjkikfkdeebbjgbhkiefcaieihifdkbfggigaakkigdgkhkkgkedaeehedceagjgfjejkchhhccgejjijfhkekfbekjkkhaccdccghiidggedbidhdhhegkddgahgdjbekgiibccekcbhkkgahfkjbakegbibfjhekbdeagddefekgdeifhagekbccicegbidjgcbcgjebbbbidhgajgcbiiihjhijcdiibcifijkjibdejfcgbfagdjjadddckikbdabejikkbajcjajdidjibcdjfihjhdafbaccebbjhedhiijhijacegcdebjadgbebakgihkfkdfefgidahdkdeiaghikcdg...
output:
3254
result:
ok answer is '3254'
Test #45:
score: 0
Accepted
time: 3ms
memory: 11800kb
input:
clfigelkcgbhnmmlimcbeeamahehdcgnllakicheabimlbjkgaihledckhihamkkncjcbidiaccghlkabdanlclfncggdegajhbhfjlddkafkbinjeicfibklkacgjgafklihlhfihfhefighfabcjhfmnffbadgahcefgeendkjmeibngfeagefncnhjnfncilinciggklcmbhblgehbbmidnfbcagkedkdbfbgljadackjbjfffccldlmfelabhjhanlbffdllminghlgiejaajaammjeededldjimhbmlalklcdijmdbeifgijdgegeigeljdmedlilgfbfckfhhnaikknmlnicalkneccgbacknecjekkhgemegneacncinmfminaedjiidbafajdmabbcljbfgafedlinmgbaldbgmhhiienmlanakefhdklhlmnbkgjdmifcbmlbjjanlklmnfmaeekmnagehcbbeiiillfcja...
output:
2565
result:
ok answer is '2565'
Test #46:
score: 0
Accepted
time: 5ms
memory: 14004kb
input:
acacabccbaccacacbaaaabbccbbbbbaccbaacaababaacbabbbcbbbabbabbccbbbbaabaccbacccbabacaacbaacacaccbaccccaaacbcabacaabaccacbcacbccabbbbacbbcabaccabbabaccaacbbcaabacbccbbbbacbabaacaacccbcaabbccbbcaabbabccbcaacccbcaacbaacbbccbbbcbabaabaababcbaccbabbaacbabbcccbabaccbcbccbcbaacccaaacacbbbcbbcccabacbbbccbaabcccbaaaacacacbbacbaabbccbababaaaacbcabbabbbbccaccccbababbbaaacbbcbaccbbabcaaaabcbbccabccaababbcbbbcacabcaccbbbaacccbabbaaacabcbabcbaacbbbccaccbaabccbcaabaccaabacbaaaaacbacbaacccbbcabcbbaacacbabcacacccb...
output:
15624
result:
ok answer is '15624'
Test #47:
score: 0
Accepted
time: 1ms
memory: 11872kb
input:
hlhbhfqigdhcbocaokqdimjqjmlebepagmdkmkqgfhgdaambfdjpceefailflmbeeeicoipbqladfjfloeqgelbqeiibdbighflhngajgeebiniffkcigleiiilgnchlhjjmkmlngqbpchbjnlamjqcddebgiikoajpnkelcmcenipfecdcfjiikigfhjpodkialpgqodhaloookdanjdqikmgimfglqqgdnneohdghqlplcaaqlglafhpfagcemeingdomloagnjdllqhalkdniijhcalildbfgcincqgjnpqceagfgfbaaeomanolliibeaeeqgqckggdmjfofljjbkpbddaglopqhncjokkhnlidnkqoifnabdokbecebglhhdmjqjbffhhahmmlkolacmhkhmqifgcidfiicocpbpoebkcckqeefcammnpnaeffdllqajkglfkjhflmlfgejggmgclbqghbjfkccbafnpqlnlmmq...
output:
2150
result:
ok answer is '2150'
Test #48:
score: 0
Accepted
time: 0ms
memory: 11924kb
input:
ceaeabfaefccdbcabfeafafaccbbebadffebaafbcfcafbcbefdcdbdeaebdaffadefbecffacfedfabdabdeccfafaecfcafbeeeabfadbdcaedeaaacdfabeabddbffaebbaceddbcdcbaaffeafbededfcecbeefbcadeeecadbceaacfdbbcdacffcbecbfdccebaebbbaacbaadafbaeddcbbdfaddfbedefcbffeafbaebedbaefcabefcbcaaebbffacecedbedcbfaaddefdbccaafdacdceffcdbddffdfdeffeaafcecbdbacecbbdbbccbddbdfcaffbffefefedadcbccbfdbbdcdebadfcecadbcdeeecfaaffbbafddbeefbbfafacbeccffffdbdcacccfedeccdcafebabecfafedfdbafadffdeadfeecebeacaefdbcebafddeaddafeaebabddaacdfffafaf...
output:
5932
result:
ok answer is '5932'
Test #49:
score: 0
Accepted
time: 1ms
memory: 11936kb
input:
nirhbekjkmnjlridmghnoafphtqsptgakctalqibnsbtditcgaalqggmjmmrtdmttroqgtongmggedatjejbkjckmpqjgjkaienpmqefppsbhackarncrcrlenpmjmjcmiieiltotoiahsctbnnilpgakpnpmdobrqgsclonmlrkaeddbpdcaqetjhosjsohgodtestmmqklltoddlcdmcmkkkklgffpgjcgdktgrtgfdmnjdnmroemodhqsbaonpboblthacfslbebfhqsktreijheadhdbptjheojmlhjkineafdqrcnesflemqrmskstpqcatlfgolmmhhrqlpnrrojdacdedbfgllqlaqjddadajnfefsfpdmjnsoptfmrkhtirnhctroprgpejaggfrfiinpsrrjpiemsaflqssmnimatmqnimjsmeflcolllfdtiegeokikthfcscoqpgplgtadjffaksoqobjjqittptpbbjn...
output:
1822
result:
ok answer is '1822'
Test #50:
score: 0
Accepted
time: 5ms
memory: 16536kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
6352396311852
result:
ok answer is '6352396311852'
Test #51:
score: 0
Accepted
time: 1ms
memory: 11776kb
input:
aaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbrgvyrkficzxgfcxruoaovaaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazv...
output:
975744
result:
ok answer is '975744'
Test #52:
score: 0
Accepted
time: 1ms
memory: 11772kb
input:
aaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahqmruesfrcchowgnqoewwaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwx...
output:
280584
result:
ok answer is '280584'
Test #53:
score: 0
Accepted
time: 4ms
memory: 11824kb
input:
aaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaaws...
output:
291276
result:
ok answer is '291276'
Test #54:
score: 0
Accepted
time: 1ms
memory: 11860kb
input:
aaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaa...
output:
283176
result:
ok answer is '283176'
Test #55:
score: 0
Accepted
time: 3ms
memory: 11764kb
input:
aaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaa...
output:
73287
result:
ok answer is '73287'
Test #56:
score: 0
Accepted
time: 3ms
memory: 11864kb
input:
aaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynja...
output:
276480
result:
ok answer is '276480'
Test #57:
score: 0
Accepted
time: 0ms
memory: 11756kb
input:
aaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaa...
output:
1076053
result:
ok answer is '1076053'
Test #58:
score: 0
Accepted
time: 1ms
memory: 11764kb
input:
aaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaa...
output:
1036728
result:
ok answer is '1036728'
Test #59:
score: 0
Accepted
time: 1ms
memory: 11792kb
input:
aaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaa...
output:
62748
result:
ok answer is '62748'
Test #60:
score: 0
Accepted
time: 1ms
memory: 11796kb
input:
aaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaannc...
output:
265356
result:
ok answer is '265356'
Test #61:
score: 0
Accepted
time: 1ms
memory: 11864kb
input:
aaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaa...
output:
1097349
result:
ok answer is '1097349'
Test #62:
score: 0
Accepted
time: 4ms
memory: 11752kb
input:
aalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxourgsdqsfynvgnnmzdaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaa...
output:
26364
result:
ok answer is '26364'
Test #63:
score: 0
Accepted
time: 4ms
memory: 11768kb
input:
aaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaa...
output:
1022208
result:
ok answer is '1022208'
Test #64:
score: 0
Accepted
time: 3ms
memory: 11756kb
input:
aadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxkoeahghrxsmivycuvoaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaa...
output:
26976
result:
ok answer is '26976'
Test #65:
score: 0
Accepted
time: 3ms
memory: 11780kb
input:
aaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalr...
output:
297648
result:
ok answer is '297648'
Test #66:
score: 0
Accepted
time: 1ms
memory: 11880kb
input:
aaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaeh...
output:
299808
result:
ok answer is '299808'
Test #67:
score: 0
Accepted
time: 3ms
memory: 11752kb
input:
aaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaa...
output:
1031525
result:
ok answer is '1031525'
Test #68:
score: 0
Accepted
time: 4ms
memory: 11872kb
input:
aaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasv...
output:
303804
result:
ok answer is '303804'
Test #69:
score: 0
Accepted
time: 0ms
memory: 11768kb
input:
aaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxa...
output:
64683
result:
ok answer is '64683'
Test #70:
score: 0
Accepted
time: 3ms
memory: 11768kb
input:
aaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaa...
output:
1089726
result:
ok answer is '1089726'
Test #71:
score: 0
Accepted
time: 2ms
memory: 11792kb
input:
xfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxx...
output:
18736
result:
ok answer is '18736'
Test #72:
score: 0
Accepted
time: 4ms
memory: 11696kb
input:
boxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtibo...
output:
31221
result:
ok answer is '31221'
Test #73:
score: 0
Accepted
time: 0ms
memory: 11812kb
input:
jpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktg...
output:
7211
result:
ok answer is '7211'
Test #74:
score: 0
Accepted
time: 0ms
memory: 11776kb
input:
xjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjaci...
output:
15400
result:
ok answer is '15400'
Test #75:
score: 0
Accepted
time: 2ms
memory: 11788kb
input:
upyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzj...
output:
8263
result:
ok answer is '8263'
Test #76:
score: 0
Accepted
time: 2ms
memory: 11788kb
input:
gkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlb...
output:
54875
result:
ok answer is '54875'
Test #77:
score: 0
Accepted
time: 4ms
memory: 11788kb
input:
xlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxl...
output:
31221
result:
ok answer is '31221'
Test #78:
score: 0
Accepted
time: 1ms
memory: 11864kb
input:
xowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxo...
output:
45954
result:
ok answer is '45954'
Test #79:
score: 0
Accepted
time: 4ms
memory: 11864kb
input:
uidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidlt...
output:
7211
result:
ok answer is '7211'
Test #80:
score: 0
Accepted
time: 3ms
memory: 11756kb
input:
itekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlit...
output:
26901
result:
ok answer is '26901'
Test #81:
score: 0
Accepted
time: 4ms
memory: 11700kb
input:
qvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytg...
output:
8263
result:
ok answer is '8263'
Test #82:
score: 0
Accepted
time: 4ms
memory: 11860kb
input:
exkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkel...
output:
56061
result:
ok answer is '56061'
Test #83:
score: 0
Accepted
time: 0ms
memory: 11860kb
input:
kepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepke...
output:
45954
result:
ok answer is '45954'
Test #84:
score: 0
Accepted
time: 0ms
memory: 11868kb
input:
whdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmi...
output:
8263
result:
ok answer is '8263'
Test #85:
score: 0
Accepted
time: 3ms
memory: 11792kb
input:
dkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbq...
output:
13072
result:
ok answer is '13072'
Test #86:
score: 0
Accepted
time: 1ms
memory: 11816kb
input:
zwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmw...
output:
45954
result:
ok answer is '45954'
Test #87:
score: 0
Accepted
time: 4ms
memory: 11812kb
input:
pjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpj...
output:
37179
result:
ok answer is '37179'
Test #88:
score: 0
Accepted
time: 4ms
memory: 11948kb
input:
iwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohr...
output:
11666
result:
ok answer is '11666'
Test #89:
score: 0
Accepted
time: 2ms
memory: 18392kb
input:
knksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknkn...
output:
1195845561
result:
ok answer is '1195845561'
Test #90:
score: 0
Accepted
time: 1ms
memory: 11860kb
input:
bzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebz...
output:
45954
result:
ok answer is '45954'
Test #91:
score: 0
Accepted
time: 4ms
memory: 11756kb
input:
horqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhh...
output:
18736
result:
ok answer is '18736'
Test #92:
score: 0
Accepted
time: 0ms
memory: 15724kb
input:
wuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwu...
output:
1195983889
result:
ok answer is '1195983889'
Test #93:
score: 0
Accepted
time: 4ms
memory: 11768kb
input:
gbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbs...
output:
35577
result:
ok answer is '35577'
Test #94:
score: 0
Accepted
time: 0ms
memory: 11768kb
input:
iksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksik...
output:
45954
result:
ok answer is '45954'
Test #95:
score: 0
Accepted
time: 4ms
memory: 11860kb
input:
dtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjdd...
output:
18736
result:
ok answer is '18736'
Test #96:
score: 0
Accepted
time: 4ms
memory: 11780kb
input:
lrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmda...
output:
31968
result:
ok answer is '31968'
Test #97:
score: 0
Accepted
time: 0ms
memory: 11696kb
input:
omeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomom...
output:
37179
result:
ok answer is '37179'
Test #98:
score: 0
Accepted
time: 3ms
memory: 16256kb
input:
mimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmi...
output:
853689483
result:
ok answer is '853689483'
Test #99:
score: 0
Accepted
time: 2ms
memory: 16644kb
input:
eleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeee...
output:
975625225
result:
ok answer is '975625225'
Test #100:
score: 0
Accepted
time: 0ms
memory: 11700kb
input:
eedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeee...
output:
74358
result:
ok answer is '74358'
Subtask #2:
score: 65
Accepted
Test #101:
score: 65
Accepted
time: 8ms
memory: 11792kb
input:
jwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjht...
output:
2832804
result:
ok answer is '2832804'
Test #102:
score: 0
Accepted
time: 6ms
memory: 11992kb
input:
lrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexll...
output:
535320
result:
ok answer is '535320'
Test #103:
score: 0
Accepted
time: 21ms
memory: 124144kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
148148592592925926
result:
ok answer is '148148592592925926'
Test #104:
score: 0
Accepted
time: 18ms
memory: 12560kb
input:
abbbbabbabaaaaaabaabbabaabbabbbbbbaabababaabbbababbbababaaababaabbabbaabbabaabbbaabaabbbbbbbaaabbbbbbaaaababbaaabbabaababbbaababaabbaababbaaaabbaaabbabaaaaabbbbbaaabbaaaabaababbabaaabbabaabaabaabbbbbbbbbbabaabbabbabbaabbaaaaabbaabaaababbbaabbbababbbbababaaabababaabbabaabbbaabaaaaaabaababbbababbbabbabaababbbabaabaaaaabbababbbbaabaaabaabbbbbababbbbbbbbabaaaabbababaaabbabbbbabbbbbbbababbabaabbbbbbabaaabaababbaaababbabaabbaaaaabaaabbbabbaaaabbbabbbaababbabbbbabaaabaababbbaaababbabbababbbabaaaababbba...
output:
1128537
result:
ok answer is '1128537'
Test #105:
score: 0
Accepted
time: 25ms
memory: 12264kb
input:
cabaccaaacbbbbbbccccbbaccababcbacbcaacacbbcbccacbbccccaccabbaccbcbbaabbbaaabaaaaccbabccccbbacbcabcbabbabaccaaccacabacccabccccbacbcbcbaacbcccaaacbbbccacaacaccbbbacbaacabbcaacbacacccabbcbbcaccabbbabcabaaabcaaababcabacbabacbcabccbaccabacbcabccacbcbbaacbcacabbcaaaabcaaacbaaaacbacacaaabcbcccbbcccccaccabbabacbccabcaaabbcabaababacbbcccaababbaaccabcabaacabbbbccccaacabbbbacbcaaabbccbbbabbbbabbcccbaaaabaaccbcaccbabacbacbaccbbabbbbcaabbbcbbaaccbcabccabcbcbcbcbbabacbabacaabaaacbccbaaccabbcaabcaacccbabaacbbc...
output:
448552
result:
ok answer is '448552'
Test #106:
score: 0
Accepted
time: 15ms
memory: 12248kb
input:
bcadcacbcbbdbbbdcddbababdcacdcdccbadccddadadabdbbacdbbadbbccadacdcadbccdbcdabbacddadddbdaadddcaccdbbddaadadcacddcccdccdcccdcbbacaaadcabdadcabcabbadcdaddcccccaaddcdcabbdddbbaddaddcbabdcaddaddbbdcccbcccbcddbdacbcbaabacaaddbadbcdadbcddbdacaacdadbaccdbdcbababbbbcccbbbccacaccbabdbcbcaabbcabdcdccccbcccbdbcbdabddaadacbbabdabccaacbcbccaddccccdaaddcdcacadcdaacdcbcbdcadbbddadcdbcaacdccabbcbdcabddcdaccaccadbdacabcadaddadbdcaabbccaacccaababcbacaaadcbaaccaaabdcccaabaccbdbcdcaddccbbcdcacbdddbacabbddcbbcbbdbab...
output:
250704
result:
ok answer is '250704'
Test #107:
score: 0
Accepted
time: 19ms
memory: 14184kb
input:
cbcdbbbdadeddeebdeceebecbacbedbabccbdaedcbdabdbaeedddcaaeeeecdbedddebecbbceabbdeedeecceeeaaddebebcbdaabdcccbeeadeaeebabebcaccbebaaadddcccbbbbedacbbbeaaaaccdcebdbdddeabadcacabddaadbbcdadaadadedbeadbeaeebcdeceabbecaddaeaababbceddeeeecbebaeeaabbcbddedeaeeaaeaaaebaeaaaababababcdbaddbcbcbeabedacacddbddebdbaaeeaedaeabbecdaebeccaddbbbeebaabbcbedacbddabacbaaadacecdddabbbdbbbacdeadadaceebbbbdbdccdaeccbabaebcceaebebeacaadcbbabadbdcecbbdccddbaccdcdbeebbdceebbedbecbebdaddcaaadeeaecdbdbcdaddaeacaecaddeeaceca...
output:
200964
result:
ok answer is '200964'
Test #108:
score: 0
Accepted
time: 15ms
memory: 12148kb
input:
bdaeabeacfcceaaebdcdfabeaeadfbecaefbfbfacdceaaedfbbcfbfcbcebcbdbfdafcaaceecaaacdafdbfeeaadcdbdcedbcffcadacdfeeaecbfddffafbbdcbddafddeaeeebdcfccbbffddcddbffdedcbeaffdaddecfbbbbeadbaacbdeeabedbdffccabdacbacfdabccceffebcafccbbffebaeeeafbaccdeaddfdfdaffabeebbfafdfbfdaeeebdacbedbcefffcfafbcefacfdaddfacadcddcbbcbefcbcbbedcbefdbeecbcacadfadfcbfeaebdafcabcccddaeeaccecdefdbacdfcaceadfacebfedfdeabbeeaafafccecdbbeeafecadabfffdcfbfbeefdecbeecebcfcadcbeeedbfddcfcabbafcdbddfcaebcfacfdecdcbadcddbfefacaefeadbcc...
output:
167202
result:
ok answer is '167202'
Test #109:
score: 0
Accepted
time: 11ms
memory: 16224kb
input:
bfbdebfgfbeabcgdgfgdbceacffcbbecfbegefaeceadebdfbgdfdcebdaeecfdfefffbafgceaggacdedfbbgccbgcefebfdddbfafbfcebdgefdddbeddbgdefffaagecgcdfbbabeedcebdcgbfeccebceacffdbbegbfbdcbdfdagcdfeeagdbcfecedebfddeacegdccfgdggdacfagbdccgfaffcaabfdgbcfgccgadfcegfdcagbcbddagfdcdegdagabbcegeccafccbcdacfddgebbgcfgfeeecfbeebfgcfegcbfaacebfeebecbedgceeceggfadgegcggefbdbgbdbgggbafeccecfgcedffcdfcgafeabccegabbbdfgcagdeaebfebebfddbeeacfeccffgfdbgcaddedaccagegdacgfdefdcaggacgffffbgebfeeeeaeebabeebfagdegbbfcbbeccfccaccead...
output:
143591
result:
ok answer is '143591'
Test #110:
score: 0
Accepted
time: 16ms
memory: 12188kb
input:
cbcbfgccdfecaachfagfhageeabccaedhaaabcbbeebhaechgbdhbhbfddfhgbfdbhbccacdggfhdbffgecffdgbbfacdafdahcdaahfbhfadeaddchcgcgdgfcceegehehcddecbgcdhehfddhcaedhdhbfbfghgfgccddbdfdhbgdbbcbaaegbaahfdcdfhbhedfechhbdghhbfedeffcfggeefhcghacgghecfafcgefcccdebfegeffdhhdghfcefedecefdecfgdhcbeacfceagdceeghefagafbcdhaadgffcdfedcbeghhdbbcgdeadagffeffaghhadgfeheeddbcbhheccdgfbfdbehdeacchdehcfebaagggdcabbddbhecdfddeachdcddbfafgcdfddbbadcebfcbdfeebchacggfhdeadfaebfdfhagbahafhcfgfgcaeffegfbcafaagffdgbhhgachhcaecgcfhfa...
output:
125609
result:
ok answer is '125609'
Test #111:
score: 0
Accepted
time: 10ms
memory: 12124kb
input:
iibhhicgiefababhcfdgdgfbhfaeieicebceadddeeidicbgfeideaaihidffhabebdghghhhcfifhfiheafebebfehcdciaeahfigehihefegedhbffbcfgabcdfddcdcdegdfhidcdgiehgfchcfciidhhcdeagiheadefhfegfcdchcifgbiihbeececdcciacacchfchchdceagabaedefbbiafafaedagegcdadihhcddhhagibeggcdaicgbffifegeeiehhedaafiafaahecigdhbbaciebbcihfddbhiggeggafgiacdabfcaggddbchbcgbbdfdeicehgadeefagbaficecefbdbahcagcegdhgggddbbceidcbbgigieghfhcafhdfafdacggiehhgieaddgccabdiidfeecfehiieighafhbaefbiaagieffbdcaccbbghecffehdebfdicafbfgchghdccaicdecfiig...
output:
111691
result:
ok answer is '111691'
Test #112:
score: 0
Accepted
time: 10ms
memory: 12168kb
input:
ghfjfffahhjcffibfijbffcdjieihcbfhdgiiihgaedbbbbejdgcadebbfgbjjdfjccjidedicdgchjbccaehejgcdhbhecbgadaigfigjdgfdcihiggdiadcfjdjjiccibcbdjhgcjcffagfjejgcdfghfiffbbchjaejaibbgbagaegiafcbeffdehegdbgdibbjcjdbigddbdjgfcfejgijgajdcbdjfdeieheeigidjegebbhggcjiccaajebdgchecbfhaabhighiebffhfiijabbbehchhdiagbfafddcheceedefeccdehachbdchiibdciefdccajciifcegeachfebdfgcghdgjdejjcgfghhafdciadejbdjgbiffgabajjhdfecgcjchbgbaaibdaibjhaieihciaiiadgcjhdjdeccfijbjhgdigedfchcaifbaicbhchabidhdjhijhiiejhijhgbibgfdfgjfdbgbj...
output:
100298
result:
ok answer is '100298'
Test #113:
score: 0
Accepted
time: 13ms
memory: 12264kb
input:
ebkffdechjeggikjcigikihiabjeabifdeicffjhagakhcchgfbfjeiiefgcgidgdcbfkgeechbcgiiecaaabgghebkkgfkjdgefhadkgbhdegbaigeeajbheajhhfjbjbdkibcjigigicichcibjbahecafkdeahjhcfgibfhacddjihkgcbjbakkhbhbajaddhbfhidcjkgdfechajgbheejdgffddjffccedaccedjighgkbacfhchjgbkhhcjjakbhhcegccbaidhifbkjhbgjhfekebakahbdifjeegbdejejfdcjfgkbkihjdaccccckhcaidjafdfaedgcbjcgfhcffchhjhgedidekifdbdgkbjigjagecgiijiddjgdjcifdeekghjhkjfjjfhigjbcfdgbikidfhadakbgdehkddicjkeagbbfkigbkfchfdfdhadegeieiebeafdbbbcfcageceiedikkhjgjkfcieggd...
output:
91269
result:
ok answer is '91269'
Test #114:
score: 0
Accepted
time: 16ms
memory: 12128kb
input:
cblbfflebclliaaegihadfcidhchelhebfbffcjclicgledbggfficgahcakkbcbkjlbjgjeelkfiedklccjbifdjcjfkegkjadgkbidefikcjikbkfbkecdchcjejkhiebchhggdcdhbigikllbhhafeijkjfjabdgjbbjkkebfifecfciljgalffdaddflagfebfhccfbicegjlighlihbchkihgefdibhglbhbegdcflekafkclhihlhjbagljgaalklbelihelagjlhjfcjccafbfiaecgjikjeekacjiiecjfbihdcbgdcaceggfdilclgjcffbjjelllfbcidajhchdjldagedbbbgdicfhcgajaddiefkkilgkafdchjdfjfkkiihkelafccfclhkgjkeilalleghjclklcgelgdbllgfejdelgbiejfdjacjcecldbhbcieiccddcjichkigabailfffjaaffjbeiidefika...
output:
84019
result:
ok answer is '84019'
Test #115:
score: 0
Accepted
time: 10ms
memory: 12092kb
input:
ajkelheffflcgeibfjjmmamkfmbchgjmighddcjadjbheelifbkhjebgjkhigddbigagichblliilcbefmlbbjckamlafiiieichelkfdiajafiamlmjgfbhjmkchigjcdjgkhjamihebdbkdegbmmhdjjajceefhkimkdljlkbkhkhhilfimjkfeikcgdkgjehaddicgejmjbccaalailfmimekfimggigfigakfimmdbgcbaaigcldkmfcjfglaehaaaelmajjemfbfehdfcaiblhljhfffflekldfgdckblmgkabiiedfikkfiflkeajllkagdecilgcjecdbmddegbaajichcalakfjkekgkaelbffchamhhdghfkifdglcicjamdlgbiejhlabmhfabfkimkffafggaklmbahkhhbachelccldhdjkgdkigaekhkegmhdebjmckahgljcijljiedbcgfdhihlgeheggiiijdedd...
output:
77483
result:
ok answer is '77483'
Test #116:
score: 0
Accepted
time: 16ms
memory: 14188kb
input:
celcfehjelgbmlighjecmblmllafdbhcmngkekhnaaigbklbegafgnhahnmgdciiglimjidnegnhballbiclbckjegikggmnhikelkcdnclacndmfaigagcklcejccfnhmibnkekkbbjmhblcfjjhajgfblincngdagibhemcdbfngjlgegkmaldmkleaemklklmcifmeaaicdmcjdbbfkcdacbalklkkmghbkelbjehnmfjgjkcgmnlnibiiinmlldikfecjgimhndgcgffnglmdfbihhginfhnnmdjngkjecagfjnffndljhnlfjfikggkkfggmdiemhcfhilnmblakbabbeijdilhdklgeanjlilfcjjehbkmliaigbaldfjgfbdkhagcdgdaghchcablaidhnjcljnddfaiefmlliflekhnjnihddcbghdhhbfgjenbnjjjigefdfdehihanbcmannajfndamfalnefdejcgkacb...
output:
71704
result:
ok answer is '71704'
Test #117:
score: 0
Accepted
time: 13ms
memory: 14228kb
input:
jkaacaeheeegbnhkfccaalbbmiggbmimbhmcagjgafifbclgkebboaibbdllehdjhlkojakajjbllgcmnojfedjbfbcfdcidhhbfilkhfkgnbncgoboeadbliflchakahklbhnhbflncjimbklbmegjokdhonoagcndooiclbihfhnbllbgfiheecfbmhfjkbbecghlddmikgnkdciihnannoedbjbemjakfegonnnibbfmekellalhbodhjmgbbhcjndcmmginhahdjlkdjajangllgehgblgonblacmnjhobhiklndncafgehghikbaoffjgihlfjnikfgdgjdcihoknebjaacafelfjajaleiefnddbjajifcjhgdcebdkblfkaaaelehgeachakcbgeomdnohdcdkjfokfjlbndkgoaemacbcmgiionnmkeefidjglomgkcfhlokbofiakmbnkneladbgmaoholionjnohbdocge...
output:
67081
result:
ok answer is '67081'
Test #118:
score: 0
Accepted
time: 16ms
memory: 14220kb
input:
mnkinpdmfhgogdkjlacmlgjniagdfnbjiigjhldpcgeekibcjkfhpdojhmiaodecgincgkpmepcghbphmpincghlpjdpibnnomgggoodahmllcekideplbacihkjhpbmbhpfadcngkafonkhgeenkplpoapihnbocjeoonoekmemiocnigffegbmdkkaokphjfphacgncohjpeidodoajlfcbeiboflmoigganddimkfjifbcgegfopbjbpileacoidabnlokkaohoclhgpjboliofehnemmdkgednbloeleaabjmgpbfbjeoefdodafggpjnbmgoigpngpcdlolcebfooolbblabilcpofjjpmckfmgpjjkhpljfogcncmfmllepgcnmgikbonnfbbmpelfaiaeeohncnbppmbincdgbolnjlbkhjccdoipdigeiibdiocknjkobjgnkmmcfgpghgendbkmdadbcjmicnmbbnkodfcl...
output:
62928
result:
ok answer is '62928'
Test #119:
score: 0
Accepted
time: 15ms
memory: 12220kb
input:
edklplibffiapddpclkfkabqgmeidgbhqpoqmqpbbiikagnqjmjgclgimlhalnnpklgjofmknnplmkokqdpodjpcilndfnnmjafogqmdghnmqphajcqojfhfqnqdpcnkgckifjnfjimqgdbdojhclgicldhdioaldloinkjflddmakkmhqoancjagffeeijqneocqcbmaphcmoagglbdpqpqddkccigfghaakghookkjenadooodbpipfheomnqaghoegffcaqmpignckhcledfcdalliihmloildjccifcqqhdbohfcqmohkkhanohaedpohhnelanmfkagidkecchbcoloabfofoehqebkekomadpnlndnneijofoiddkipfnlcbfaplloifcjhlodkjqmoghglbmoaifpbbaapilnallapijgijjhlqhqbmcanhcbojmmempidqhenglcmjjkqnhemmohofblgpjoqljpldlnqifc...
output:
59153
result:
ok answer is '59153'
Test #120:
score: 0
Accepted
time: 14ms
memory: 14240kb
input:
pdpbmcmafradmbelqjkrnedekmdnamkafjnllnkgbiaglcfhmiladhkgqppeficrnaqngcdcojhdmdrcifnflbolgjkpncncjirqlargkrflceqkjrpromkgdhngngcfffnqnjaomckeigoqhhlncammjffbajrdkdhamaanebcpfdciroaagblmclgfhhffareggbjibdfeipmcgkdoebgddjdpaerfpkhjogprogjjkhpkkjbrkiofncalaliogrdeononlihaqhcaproofdplpapkjbolmprljgjmcomoebhkrjfnkdkoomrrokmknognbccqpkokjdkfqmcoqfjrbjdddhbklkjpbqlrepnnanfpblfoefgpdlilihojcnceccnklqdgmjdgdkpdmaffpfmhlaeimfhkjckhjjjjhgbrmlipmamggkmpehnrdkjmacagrpofpakcahikjnmmdrnbbociormbaggjegbagfbjcqjh...
output:
56181
result:
ok answer is '56181'
Test #121:
score: 0
Accepted
time: 19ms
memory: 12180kb
input:
fldrqrddichoqlkbeicnjbqdrgndpihnhjcrepgfkgrakqsadeirjerhslhqaqdjafrnnqflfqgadhoolpprksqrqohmjekdngaqqegsorbmmmicbdicnahaairlrriamfmpfogprdgbimbfgdbmgfdmeeipgsspnncrlglsnbnpponrkqsqfeigahomqojqbcemmbddidjcmomhsoackicflcsjhhdeenhijrosrkhkcrjdlamermnnlsjhfsahgscscbskfqrmicsceoqegcehlieobonlkikdqfbbbflorsomgealkajemiqmboojlhhnqjfmgromkfkslgsnpiscicgreqondhphdhsipqophdjoiijjhojmfaeddfcrccnlnqdsipiogenojaicjokmndlngnhbjqefkbnjcfcndksmpkhdqbnkgomfnmmisfmsgahacaenhebbceomgchrmhpbccojlerjfmjajhgiookcgrek...
output:
53046
result:
ok answer is '53046'
Test #122:
score: 0
Accepted
time: 15ms
memory: 14052kb
input:
iigioepemfdendcjhoikjkbmqcpdsqdcbarqrcamenctecpajdmfbsabaqaarctmpnandfestgjnhdbsokksljcsnfaemlpegfhfcnbpoopfqqfsifaojpmdoalpekdcfhmgrfdpatcfrbmlsffrkokfctqqsgbsqhkkcnprlikrlesjmqhdmcrejnsedieqrtqdqkostgqqggrphasiegkgcljmrqoirggrfrcjsgantphbfblorcbkfgtbjnmnspaiftebtbpoaiastmlcsoasboidrddbciffhonardchndieqkinqfibdlonmmmiaidpgnfhaktrpbkqrbmepepejiqbimbplsolqeirechtglhnjrihkkomijkijlggpfolieenslpcitlsjofgaebnlmfmjoeqtsmrenrkhoclisnjebbakfbssfnmcdtthcsathiopeaiqfqfjeeiapcahpnhtahelhinnffbfphshtfrabmo...
output:
50258
result:
ok answer is '50258'
Test #123:
score: 0
Accepted
time: 9ms
memory: 12168kb
input:
tgukkbdtlcmqrbrmroimjfjfkgagipjhmcetnqbbepkcfejqdsuhbtjfuhcqgnssjhpdtgegojtekqfgqamjlcrblsfljegfdukqijrcmnacjqumebkhokemmeiqeshseohihjseubtjkmkseocoiupepghtbulkanjofpqmcogesgbghpptiokcgfhclofiegrtriokfoajdkaodcsnddteobpplnhoioimchlmkqkgulikdokcsbintfninlqocselojgguboktpshpcgaticgpjntqfugdrsanmmkagmcibsegnidnbqrbcpfqfiokmdgkcjfapmigrhuqqnbihqhjekmiccfclrmudpjtfnnobpjfgplechdncdhqncdbifktrenfkkghfufsoanbpimgchbmttpcurbubkokdgjfeutnlcfhrcudnqrhfgehtjeqrmkbeffinrgbelnlcojradleimcpaoelkndjnbtcdegnmig...
output:
48082
result:
ok answer is '48082'
Test #124:
score: 0
Accepted
time: 8ms
memory: 16056kb
input:
gofskatgavmqhopgdduitcokqavlvgiceglfokrtcalchjckqiljrtsjtddnvfqgjlgcetsjdbptruclgvipptgsrtascpvtpeftuieunijoedtendteegubfuirfrpnoecrhopbdvugrefqtmbiashkkurgktldpopeuoafhnooaihrglooubemmtscvroulvfkbgdssjiblpahfchhdudjpglnpghukcesplmrfpsfpqkoiljinqaqspbshcceacnafdolireckcibajtdljgjbaffkcdvvumudbsasujmormhpaeqhpfkfhghrjuidljkpmksetkckeuebrhmodbrbmshhvgmgabcetfnlbdoihoqvdcmokdosflmisdjbqrruvrhmjolqpmgkiaisrjfqffoslcqrkkqfqolkilvipnopfkokksgdscnmsarelcijtkhuftekfckphncpjstamglmvnvggduccpjhbiftoeujtsa...
output:
45842
result:
ok answer is '45842'
Test #125:
score: 0
Accepted
time: 13ms
memory: 15888kb
input:
revervthrvdkwauhhnromjooeoctnpbvvmilwdeewltbmtjntegeoekwwrstoelbhvjobpeplbshjvdihdlegjidqvihhaapqgdfogokjignpmerpietrudcbrqgesibiteosmlinddsmwogfhigojrqnjoebpevurolkknsmotvlrbrjsksiiklnpwhlunrbguerhjhjbhnguasfmvihuumwbfgorecjacdnlvlibohwbjkscshgrmuissdprobarmnqoftggibqscnagbrdogvjbvjmithdfhsgcarvsemgtsominivnjaghagueajphjncmnrrcakwokmutqisqfojtdaqqnkavwuevkjijthupwagnrqgsbpgirsnthmfodauukobewbtalbomobwblblgaofkvhqaghiopegslvwcohhaeopbsmmpjwbppkdddlpjobnnnlimvogotlqmrjhjkoimbdhnbkkvpefnlehrglmaub...
output:
44052
result:
ok answer is '44052'
Test #126:
score: 0
Accepted
time: 19ms
memory: 11788kb
input:
aaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaa...
output:
30840117
result:
ok answer is '30840117'
Test #127:
score: 0
Accepted
time: 9ms
memory: 13828kb
input:
aaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafy...
output:
7354368
result:
ok answer is '7354368'
Test #128:
score: 0
Accepted
time: 7ms
memory: 11756kb
input:
aaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaa...
output:
29435670
result:
ok answer is '29435670'
Test #129:
score: 0
Accepted
time: 7ms
memory: 11768kb
input:
aaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahf...
output:
8396028
result:
ok answer is '8396028'
Test #130:
score: 0
Accepted
time: 8ms
memory: 13924kb
input:
aaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfqihjauurylaxrqpmckyjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbj...
output:
112152033
result:
ok answer is '112152033'
Test #131:
score: 0
Accepted
time: 8ms
memory: 11772kb
input:
aaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaa...
output:
1965708
result:
ok answer is '1965708'
Test #132:
score: 0
Accepted
time: 7ms
memory: 11768kb
input:
aaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzja...
output:
2267928
result:
ok answer is '2267928'
Test #133:
score: 0
Accepted
time: 11ms
memory: 11784kb
input:
aaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaa...
output:
2122308
result:
ok answer is '2122308'
Test #134:
score: 0
Accepted
time: 15ms
memory: 11776kb
input:
gffagfffdcfgegedfabgdggfedgbffggfeadbagecdeefffbebdggfedgbffbbeadcceggdfcegaaeecdcbbbcacgfbdggcffabbdcbbbcacgfebcgadeagbcedbebbgcebaffeadcgefdagaafeabbcddeaaeadeceadcdgbedccdaaadgdbbeadcceggafcdgdcfccgaebcdeddfeagecbeedgebcgadeagbdfcegaaeececeadcdgbefegfbafabgdcdddfagaeeffebcdbggefbdfcgebedggfedgbffdfcegaaeecdccdaaadgddggfedgbffaafadcabgbfgegedfabgdegaedadaabcddeaaeadggffgbebdeeffebcdbggcdeefffbebfegfbafabgefbdfcgebebfdgfbegbddcdddfagaeaafadcabgbdgbfeadecaafcdgdcfccecddcgaggbbaffeadcgeafcdgdcfcc...
output:
173974
result:
ok answer is '173974'
Test #135:
score: 0
Accepted
time: 10ms
memory: 13832kb
input:
deabafdbfcffddgcdffdccfdcgdeefefeadddfgbbabdcaedbgbadaadcbgbafcbbcafdcdbdfdgcbbebabdcaedbggafcbfadagccfdcgdeefcggccbgbcddbffbdfabecadceccdbcdfdacgfdabffddgcdffdacffdecbggegaacbeecabadaadcbgbccfdcgdeefgaebefbfbgafgdbgabcdbefdfefadaffddgcdffdgcfcgegdbgbgcdbbdggfafcbbcafdccadceccdbcfgdfbddfbeafgdbgabcdfebcdfacbcaaebdcbacaffddgcdffdgaddbdabdgbgcdbbdggfafgdbgabcdgaebefbfbgfcfgcebadgbgcdbbdggfegaacbeecaegaacbeecadbffbdfabedgbbaddgbaccfdcgdeefgefegcgeeeaebcecgbbbfcbagbegcgbbfdadeebcdfcbcaedadgcfcgegdbg...
output:
171917
result:
ok answer is '171917'
Test #136:
score: 0
Accepted
time: 16ms
memory: 13936kb
input:
efaebfagebfeaadffcaagedcaddffcbdgaabdgbedfbcfbeeageffeffcbdfdacgebfeccffbggebefcegcgcdagdagegcdbbabbcfcdacgbcagegcdbbabbcfcdacgbcaggebbcddbaffaggdeccefdafgdcdeeeabfdebecbbgecbbaebaafbbddfgdbefaebfagebcbagagfdaafcagdabcefgedcaddffccfdccfggdbefgfebbfcaefaebfagebgaaeeaddeaagdacfcffffdafgdcdeeadgefaagcebfcebabecbcbggdggdfebdbdeggdaeafbbddfgdbeffeffcbdfbdgaabdgbeggebbcddbabbffffabffcbagagfdaaadfdfccafaagdacfcfffbaebgbedcdafbbddfgdbadfdfccafaeabfdebecbbfcgaafadfdfbcfbeeagbfcgaafadfbadggfcbabefeeacaafb...
output:
168365
result:
ok answer is '168365'
Test #137:
score: 0
Accepted
time: 15ms
memory: 11812kb
input:
ddfcaccgddcfbgddcbgcbcgefadacdbaagaeecdgcdcdacbcfgfffgfaebbaaegebbaceegdbbdcbdddcfbgddcbgcbfbcgeeaabcfbgddcbgcedbffafbedececcgfabbbcgefadacdebfcedfadceadbcebecaaggfdggbfeeadbcebecafecgbgdddfacafffbddbddaegfaaafcdggbeggadabccddbgcfeegfcdfbdgcdbgagacccbabbagaegababcaaccebggcdcggabdcdcdacbcfgaedafgacegggfgdafceacddfgbfdecbgcbedbbacdcbcggcgefafgcbbagadbfbcgeeaabbbgeedaccgggfgdafceaebgcgffdafbabcaaccebacafffbddbeegfcdfbdgddfcaccgddfffgfaebbaedbffafbedacafffbddbaegebbaceeddfcaccgddbedegadfgdaggfdggbfe...
output:
155588
result:
ok answer is '155588'
Test #138:
score: 0
Accepted
time: 15ms
memory: 11840kb
input:
beecffageffcbcbeaaceeffadaafedacdacdfgffegebffeggefefdbaaddfdbgbdabegagebacabaecgebffebdfbcgdgaffegegbccagfbacfbbcdbbebebecdecfaeacfdcbgbgggdbcegdebcfdagggbbffefcgccbegfbeadceeebfcdbcegdebcfccdgedfdfeddabecbedefcgcbafegcegegdfceafeffadaafeddddadagaedcfdcbgbgggcfaabefacafaabaeedeabfbcdgfdfbfcgccbegfbddabecbedecgdgaffegefebbbdebecafafaabeeecfaabefacagcffecaagbcfgbcbbfegeffadaafedafafaabeeeeadfecabgcfbbcdbbebecdacfdbagcfbbcdbbebeabfebeeedcgcagddecedgdebaeaagffcbcbeaacedbgbdabegafebbbdebecafedabcggf...
output:
170696
result:
ok answer is '170696'
Test #139:
score: 0
Accepted
time: 12ms
memory: 11804kb
input:
fbafeddecbgaebgfefddcbebgbbedeacgefcggdeeaafegacbbcbebgbbedeafcggcbfbgccgffgdffbcbecddeegdcageadbbbaggddfdbdacgbcefegbbbfgfdgcecafgbfgadeeggggafgdaddbeaafegacbbcdfgeeffdecdaebggcffegcbebabfabfagfebdcgdabfbfefcgabccbacbffdfcaacccefgeaffeegggabccbacbffbegegdagdbfdcbfaeaeaabeegbgcdaacaacfdbacccfgbgefefbegegdagdbggafgdaddbfbggaggabcgaebgfefddeaafegacbbcageadbbbabfagfebdcgggcegceageeeaacfagdbabeegbgcdaadgaeggfcaafcggcbfbgcdfgeeffdedccefgdbbdcfbgbcggbeacgefcggdeegcbebabfaacgefcggdegeaffeegggggcegceage...
output:
168524
result:
ok answer is '168524'
Test #140:
score: 0
Accepted
time: 14ms
memory: 11776kb
input:
agdgfebgfbgbeabbffedaffcaagceeecdbaddbaeddadadfafdgagfabffdeddadadfafdgagfabffdecgcgcefbebgagfabffdefedcfdgbcgbffddedafabcgeabcdeeaegcebggfcbeddbagafcbebcggdfddafedcaadbeebffafecgbfbafcfagffeafgbafacadcbbdgdeeggagfabffdebeddbagafcgdbdfcecbggefacaaffbfcaacfegaccfbcdacfggbefgbddcabbgdacdgfadbbafgbfeadgagfabffdeeafgbafacaaegcebggfccacbgadbeegccfadbcedagdgfebgfbcgdgefbffcaegcebggfcecdbaddbaegbeabbffedfacbcedfbfdcbbdgdeegfbafcfagffdgebdbfeaaccedagageecfbcdacfgggdbdfcecbggefcdccgadbgdacdgfadcgcgcefbeb...
output:
164232
result:
ok answer is '164232'
Extra Test:
score: 0
Extra Test Passed