QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#480855#801. 回文自动机Sktn0089#35 61ms223628kbC++141.0kb2024-07-16 19:14:002024-07-16 19:14:00

Judging History

你现在查看的是最新测评结果

  • [2024-07-16 19:14:00]
  • 评测
  • 测评结果:35
  • 用时:61ms
  • 内存:223628kb
  • [2024-07-16 19:14:00]
  • 提交

answer

#include <bits/stdc++.h>
#define ll long long
#define pir pair <ll, ll>
#define mkp make_pair
#define fi first
#define se second
#define pb push_back
using namespace std;
const ll maxn = 1e6 + 10;
struct node { int fa, len, ch[26]; } a[maxn];
char s[maxn]; ll n, tot = 1, las = 1, ans, cnt[maxn];
vector <ll> to[maxn];
void ins(ll i, ll c) {
	ll p = las;
	while(s[i] ^ s[i - a[p].len - 1]) p = a[p].fa;
	if(!a[p].ch[c]) {
		ll np = ++tot; a[np].len = a[p].len + 2;
		ll x = a[p].fa;
		while(s[i] ^ s[i - a[x].len - 1]) x = a[x].fa;
		a[np].fa = a[x].ch[c], las = np;
		a[p].ch[c] = np;
	} else las = a[p].ch[c];
	++cnt[las];
}
void dfs(ll u) {
	for(ll v: to[u])
		dfs(v), cnt[u] += cnt[v];
	if(u > 1) ans = max(ans, a[u].len * a[u].len * cnt[u]);
}
int main(){
	scanf("%s", s + 1); n = strlen(s + 1);
	a[1].len = -1, a[0].fa = a[1].fa = 1;
	for(ll i = 1; i <= n; i++)
		ins(i, s[i] - 'a');
	for(ll i = 2; i <= tot; i++) to[a[i].fa].pb(i);
	dfs(0), dfs(1);
	printf("%lld", ans);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 35
Accepted

Test #1:

score: 35
Accepted
time: 0ms
memory: 30160kb

input:

bdgedcfadbabbfgeacdgbggaefddebabbfgeacdgbefaecfddffeddacbabfcgecedacbffeddacbabfebadggfafabcdfdeaabdeecgbcecegcgecedacbfgdagbgagafdegecadfebcdbgfacdecdegecadfebbcdfdeaabdbfgcbccfcaebcecfdfccagdafaeaacbggaefddebcbecdafageeaabcbdafadcbecdbcgcbdgedcfadbcaefbdfcbgfcdeceddaaffgcedfcdcgdcgbfdddfdadgagbbef...

output:

5594

result:

ok answer is '5594'

Test #2:

score: 0
Accepted
time: 3ms
memory: 30312kb

input:

bdgfcbabegfbbbgecfbddbaceaefbebgeafdbbgaebebdabgebabacccebbaebeafbefaabdgfcbabegdbaceaefbegcaegagcdgcacccfbbfgffgcdgbccgecbdbcagbbcacccfbbfgeegfcaecbcebebdabgebbbebbgcfafbbbgbdbabgbabfgdfaggfbcbabeebbdaagacgbafecebfccdbgfacgcabefaaedadeacgdeegfcaecbcabacccebbacdbbdceeegcdbbdceeegbaccaecfbgbbebbgcfaf...

output:

7308

result:

ok answer is '7308'

Test #3:

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

input:

baeedcbgaeaabdcaeeagbeffgedegdfcggaeafeegccecbacaaaabdcaeeaggedcbbaebfbcbbbebeaeagedddgabgccdecfeegcababaddfcabcbbbebeaegabeddeedaaabebgcafgeefgeabcaafgcbcfaafgadddgdbccbcddfacfcgdeefgeabcaagbgbgdbefdcefcacafcagcfadegebcababaddfcaffbfgdfecefgafcfgddbagfgceabefcaaebagddabcbbbebeaedaddaacgfcabeffgfgeg...

output:

6011

result:

ok answer is '6011'

Test #4:

score: 0
Accepted
time: 5ms
memory: 31508kb

input:

fadabcedabffccgceafdfgebfgebdfffccgceafdfbabeebbccbcebdaabagbdcabbebbgbbdddddcfdfefcfgcaedcdfbfcgagggeacabgddfdggddgcgagfefgeafdaefefgeafdaefbabeebbccabccadccgcbbdddddcfdfadabcedabgbdegbcgdecfcefaedcffadabcedabadgbbacdfbfecccfacaaggggffddffffbcgacfgbcbeadagbfffefcfgcaedgeacabgddfgbcccdcgegbdcabbebbg...

output:

5874

result:

ok answer is '5874'

Test #5:

score: 0
Accepted
time: 3ms
memory: 30752kb

input:

efggbbfcabcdfbceagadfagaeegbegcbfbcfcgfbgdfffcdeagfcggffcacbbadedceffedbgafcbegdggabccbcecfcbfegdcbecdedfdeebebecffcaafgffabgbgedfcdabgbeffaagbffcdccaddcadgbbcadedgcfbgbdefggbbfcabddccdefedagebfbbfadfagagedffaagabcgbcffaggfebdbefdcfecegaeggggdacedbgfcdedfdeebececbfefeegdebddaeafbffabgbgedfcfcdgcaacc...

output:

5751

result:

ok answer is '5751'

Test #6:

score: 0
Accepted
time: 3ms
memory: 30340kb

input:

eafdccagcbcaeebabcggdgdfcdfgeacbgcdfbgcabdegdbbaabgecbaaagffecffedeffcedcdgcecbgfedbdgabfdcbefcecdfdfaegccbfeefdccgfbfebecffedeffcbdegdbbaabeafcbegcbagecbaaagffefcdafgageffefbcceecdffabcbbdbefcdafgageedcdgcecbgcaeebabcggfbeegdaccfdffabcbbdbcbefcecdfdcdccfcbadcecffedeffcdcgaagfaegddecgffafcdgdfcdfgea...

output:

6156

result:

ok answer is '6156'

Test #7:

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

input:

aecedcggbddbeeadcfbcaebcdceeegbcbaegcecbfefbbgbcfgegbdaggeebdfebbaeddgffdgfedegbaecedcggbdbbddadfageebfadbbegbaaaffddbdacdgbgbdggfgebaaebcfceefgaedacdeeecaccecgdcbafafccffdaedbbegagecfcdbbacceafeaabbefccgbgceeabcbaegcecbdfgacggffbdcbafafccfbfccfbgggadddddacbfeeebgdaddagcdgbgbdggffdaedbbegabcbaegcecb...

output:

5662

result:

ok answer is '5662'

Test #8:

score: 0
Accepted
time: 3ms
memory: 32056kb

input:

aaffagaebeecbgagbccbafgceadgeebdgffeceacbgcbebggfdbgcbebggfdadgceeggefaaffagaebeegfafdeeecaaffagaebebgaabbebcaaaaceagaabcabddacfebbfbefagdbcdaggeggcfagdgfddegcabcddaefcdcaaaceagaabecbgagbccbaaffagaebegbagabfddcbdgffeceacccafcbcdcagcebbbgfggbfbefagdbcgddcdaadafgcebbbgfggccafcbcdcaafgceadgeebfbgbbddeb...

output:

6006

result:

ok answer is '6006'

Test #9:

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

input:

bfbbfccggagbeddgdcbdfecaedcedefgfeaabdcaebabegdgdebbddaefebgcefgfcagdbgccacgdbcdadbeafcedeffbeccebabacedebabagadfgbdcaeaadbacgdfbgabgdbafeadgbfbecfccbfgeecabgfafacefbgbcebbddaefebgadbacgdfbgdagefcefgeddgagggedefgafgdbgacffbeccebabgbeebbdafegbeddgdcbdcefgfcagdbacafdggbacccebfdcddgadbeafcedecefgfcagdb...

output:

5966

result:

ok answer is '5966'

Test #10:

score: 0
Accepted
time: 3ms
memory: 30892kb

input:

gbegegfcdbbdagefbgadbfafadedacdbbffcbagfcgebcbbeabedbedegbdbebfcbcbffddeadadffffadccgfebbadbdcdfecbadbfbfeaefadfdgfeaebfcbgdbfbcfebdagefbgadedgaeecegbeaffcddaggcafcddaffccafcddaffcgfdegffaaeggadabffaddbaebcffcadbaebcffcabfafadedacdabgaccfdedbfbfeaefadeadadffffeaffeffaffdbbffcbagfcbbaebfbfgebfcbcbffd...

output:

5997

result:

ok answer is '5997'

Test #11:

score: 0
Accepted
time: 3ms
memory: 30984kb

input:

cihgfkaabfcjeehlggeihjadhfkjdfegfiibdidefcdehjgkkhjfldaeelddklklgjdkbeidjahlkjligjdhjffddfljlbejibdgllkddjcccddajbkfjkfkecegichgklaeccfcgjidfkgckhafjeabajihcchghkchjfjkkbeeajcghaillghbcidglkcldfkkkegjdgcjfecjbaekhcadlfefcgagjdgebkgafagdeijfkgcebkkefbblkdlajccehgiidfahkfblfjafgikaacjfddalheeelcjifafk...

output:

3028

result:

ok answer is '3028'

Test #12:

score: 0
Accepted
time: 5ms
memory: 30684kb

input:

xbqpbhaecvtkxghbvkmwarwpsrjwhgqnojrdskecifmlbcbctlolyjdswhhclojnnfcynqqfvcchkuehqxgbuaqsnwotkfskrnmkwoonkhcvwwmplrxlfjvaepipcegcekikifaxpqclhwmstfifhnawojfngbphtfftcewckdeseoxnfwdtymodyqlewkbcjwtyufrevupfapglxllumkvspbebirrytpcmodoncourbanwyylnwugxujjtdwgyjipayvmgucnqnrpwqplwpdsocasjykituacpagydmymp...

output:

1481

result:

ok answer is '1481'

Test #13:

score: 0
Accepted
time: 7ms
memory: 31396kb

input:

tobdfhlrhrypwivkkpiugptzudfkxlxkprusxvwlhwqinpfwdxelgpgrfkmkjfoovtwrinkdpehykvkksgswkikxbowttkqdpkvevjbrigecweqaehejnugxnukpqcueewuazbzfbijnvrqlimbipyeyxhszbdqeduibykofvyqbhgxecowsrrqzpboxzafxinkqtxgcavjiezzjoqweqtupcxgjtxgxxzanmwamwhpzyxqxgouhgnkvqglgunyqnawrwlqpxhtdscimoedcwpuwbqhiygbfoshwjkvquisd...

output:

1437

result:

ok answer is '1437'

Test #14:

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

input:

epkkjklkmnmgajmqaqfdepfdlhockegkcpekmdmfaphqmqpqopjhngpblcephamlqmekfnqjoknnkmbodonbfkmobeddbmplkallmeqipgdimpiqfeficqknaeapllechkpdamdpeoanqoghnlhfggaihfnppbmfdnjcokjfakladhdmdiejcecaheilbeoebgfgcfjlngiphlqeemgopopmonfcccpjhleijllfngdomcqhkfcidmkgqqgoqegikioaoodkokhaklaihlenckifchcjoibffdjqflgqfmdo...

output:

2190

result:

ok answer is '2190'

Test #15:

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

input:

acbabbcbaacacabcbabcaaacaabcaaabccbabcbcaaaabbcabaaabbacbcaaabcccbaaccbbcabbaaababccbbacacbabaaacbacbcabcbbcbabccccccbbaacacbcacacabbbbbbcbcaaacbcbacccaabbbabbbcabccbabaabcbccbacccccbabbbbbbaaccaabbccccbabbcaccbaccaaababbcaaabcbaaacbbaccbbcbacbccacabbccacbbacbabbcabcbbaccaabbccbcbbcbccabcbccabbbabcb...

output:

15924

result:

ok answer is '15924'

Test #16:

score: 0
Accepted
time: 3ms
memory: 31044kb

input:

bhdxinplnrkvahvgamiwqnuqpgmivqfufihnsjcimgfdkjsrqxhqxwdxfocovgpasgnxrvioxpsolcxmfxuhfpeehmmfsgcggenvovhmqtvnohtrgdhkdoonojjdvlvelussuegcpkmfvtdpawqeowewbpxbipqmgckmrarknfkqqbfgvbmbsjtilnbpgwpsbwrfvlfqsdtnwsscwawwgtmunewtgjujwniavsjrcewocbxelgntqfmrfvblghjcdemxtvxmlupgxotjnxrnhemxwpjtghcokiibbujodawx...

output:

1548

result:

ok answer is '1548'

Test #17:

score: 0
Accepted
time: 7ms
memory: 33404kb

input:

hgroaoogpmsnobkfecoqlebndmblggaerscolcqerhgobfdmialndaaaqjisghbljjqefnklsoqeicimqcplfohjdajhpecehlgqilimkrksleroqqrqhoppcpsknnaaonspddgdpoqqhdifcqpfqrkljlokcgsibeqmrhagkkseaeapqaboeglocqpipambsjdhpslqajkmsinddrhcjmrhiiakopjqhginnhkreobjpdigloolkhkdjefbqpshpqcpearjapkqlerkllljefflqcrcgkcrchfndglonceg...

output:

1976

result:

ok answer is '1976'

Test #18:

score: 0
Accepted
time: 3ms
memory: 31628kb

input:

vbofyszrvwsdixyhngfqrunnmhivyilqiwxsdayfmdyovagfbeddpdwmpnfsunmtlxjvrizfzknqgrirtygwdmqdnqubzmryqxqjzfvrgmlebiverkcqaqpdiapbktwaixerxkewhtqfvgtlrtxuesxjhkdsbjdqnkuvivypgqlycjurldmfydcxictjwbjpdwqimbfxakzrljrekrxkestdeseewcetuaquqvbwxvqgacfvaeiycmmtyvxsxfmpdnvylkybngtoktxwforvxkhmludmkljxdoquhyvmmevk...

output:

1412

result:

ok answer is '1412'

Test #19:

score: 0
Accepted
time: 2ms
memory: 31600kb

input:

lldkkjfeihgcdkaeijblcggdmbabmejbmljljjeicleelhfjagckgkflfggemmalgjeekdlhmjeghcibhgfmdemjljgjkmfjaidmiaeeeifeibdfmllhacickfgdfihajkfcemajmdfbmeefimfgbmlggfmgiecdedabakhkaafabijhagaihbcgllgfklbfemmecbagfabkdahakegdmgdmajhaeijglkbemhadmhfbaagbhialbkkdblfflcamieidichbhagbmgifijgjdjidbfejaaamjddbbabmbhag...

output:

2773

result:

ok answer is '2773'

Test #20:

score: 0
Accepted
time: 5ms
memory: 30092kb

input:

hheahpaoepdahfdeqliolckfaogjamlakobiahncibelepjbfgjpjofpnhnpgelaafcofkjlpcoaejbmemjaigncdfioeeflqcpgjeehqehfnqnjpqoidomgbpeehiliaalokmpkfqbhdaggggdkoefkheljfhqlaqnjokafpgceqaohgipkncheacgdlooqjpqdioddcqjgpkbceipjnfflnmfqgbjkomlndbpqcmfploeeemcjjajnaapcmflbolocohbnckafgemghqffmpfaohdopnifjgikadnapdqa...

output:

2120

result:

ok answer is '2120'

Test #21:

score: 0
Accepted
time: 4ms
memory: 31060kb

input:

hrkmbslgoiahkuaanfkrthtriresittllrjptqidbokqisorhdmcnsamdkcbokuhhlcgfqihbcehbrfnggorroeqrnpcfltfrbmnksslngaemigpsckalephiuuqjkhjqmumntfdrtitudflftnasefhkotpfibanafjueadhkelkqkhteijueqtnobdqgjolnjiqeictqgubhufdneampstmckeddjpenuisdgdqelmpmlrfblemsojtracnsagfiopsfqnarqjsictamuljpuadattmeudqnfddapmtseo...

output:

1773

result:

ok answer is '1773'

Test #22:

score: 0
Accepted
time: 3ms
memory: 33184kb

input:

efbedhachhgdhbhchecbgbdedgbhddbhebccgegbfgcdgeghhehffhcfgafgeabdehbhehafbaagcfcbecadhagdebfdedcdfgbaffeffgabfdafccabhabhbehhbegdcfehadehabaacbgcfgehffdbhaaagggghedfhaefdhagbgeffahadbbcdcgdfgacaebgdheabahggeacfahgeedbgadgebhdahhgbebhgbgaghhaheeffgbbdcchddacdbbceeefccbeafgdgbagabdhggfgbhffefabcagdhahc...

output:

4464

result:

ok answer is '4464'

Test #23:

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

input:

ibjiwmcjcnneglnnkvqrsfnowvgrcqqcwuwgwbbntduorslqgfhfqowannwocthiwwuwuvohnvldknewuhkbkcbvqmfhmfpbvfwekmjsgbdbgvewebjnddgwbjcruphqedcsoiqgfrwampdaachuejdkjdsntvwgcasdwlspqmjshvamcgsmviwwghpbvdmccmccoclbfcntjtparjspjsqkbgumnfpvsqdqorhcjkfhwlkvdlmgdghibjkdwhilvkcjbsusenaedekbqsuwskqlrwvhnnraoiqmljaberum...

output:

1605

result:

ok answer is '1605'

Test #24:

score: 0
Accepted
time: 5ms
memory: 31448kb

input:

gywcydgphaftrvrgycaavbmagbwecbclapeytmcbsirkhkdtgehkqvvpdcrijochiatbfiseyacbyqykcxcllitvliopmxtbcybatlbaqlwliruoiqbadtkgbppvxcryxyycsdbmxywexbrssjrnppkwkucgkjbkdxcrdtnaynqrjjohwfyyciikfojscwedqqqprdpipvcomfdtevejwumquinswmjvofcefmjabxqvkirrsrphlfigxktufdgijaicbcfhsbnnnpuklkrbbfmjbwvoveunnkcfacvdkwgq...

output:

1487

result:

ok answer is '1487'

Test #25:

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

input:

cdeabecddaabdceecaeeecddbadddbaebebdabecebcbeecbcdebaadedaeebbeeacccdeeecdbdbadaedccdabddecdcdadddacbdbcabcacdbedaaebebcbbeeceacbdadbdabedcabddcdddbdddcdcaebaccddbabccbdaaeaddebebebcbcdaecedddecedcdacadeccccadddebcdebcbbddccbcaedecdededbbceeebdcaceecccbdacaaaaceacebbdecabaccbbcebebbbddbccedcccbcadbc...

output:

7073

result:

ok answer is '7073'

Test #26:

score: 0
Accepted
time: 3ms
memory: 30456kb

input:

cbbbacaaabcbababcbcabaccaaabaaccbccaccbaabacccbbaccaaccacabcccacabcabbcacbbacaacccabacbabbbccbcacbcbbababcbbaccbbbbbcacccacaaaabbbaaacbbccabcbaccbbcaaccccacacbcabcbacbbaaacbccaacacaaaccccabccbcacbbabbaacaabbcabbccccaabcbcabccbaccabacabcabaacccababcacabacbbbaacccacbcabbbacaaabcacabaabccaaabbbcbcaabac...

output:

15764

result:

ok answer is '15764'

Test #27:

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

input:

jeaaiibjbcagfeihgehccdcecadcaihecefiebheeigagghchaebaijfdbjfdabgggheggdigbcbebiibacbhichbghidcedebehhgafdaehgccbafhibgjahaefjcciabgdhaehjbgfccbibegchhfagejfcjjcjfbedcieegcafghacdhgagahejdddgbcgjdecchfffjcabaecbehgadcihhbcfajbfdgcddhjiaacaidgggbjifdedfbgcbgeaehbgfhadfdjjhhjgggehehjcdfcegffdjicgfidife...

output:

3583

result:

ok answer is '3583'

Test #28:

score: 0
Accepted
time: 3ms
memory: 30260kb

input:

bkogogclbdkgoddeopcqiimllehnkiokpjpcapheqeohhdngckljhekpnpgibmlhfrqirnhpkkkplgkggcfqingmdmdqbgffffqbllbjefqqerrekclhlkeclgcrclqankqgcnnrrmdmpqmldfbeolmeaafgrcfcbfgekilgfllrqqdnanpmfgqihjnicaanlkhpmqrldqonogqhjnebgglgjrkhbredoranhqgfgphdidbldmfqjeeebhrqjoenppiiejqljedlelppdhkoapgcdlihkiqmqgcmkikfpdio...

output:

2017

result:

ok answer is '2017'

Test #29:

score: 0
Accepted
time: 3ms
memory: 30204kb

input:

dmfdicakllkhjcbfpkmdaoimolgpnjncnijcnikhjodehgnifdbjpjjhlbaobkndlnbehefonknlfkjikdonddkadgbjehjbcnnceopnbgeaogpnafankjpmfnochbcnjcjlfokkcmchfeedaokdodknalochdmjdgnkihombaclfehgohehbikpheiccpmofebkijlldfdimfjaeffpkgfpbhccfldbkhpnbbgogofcjmkocgodnghendannpphbhcnacoeloheocpecafnjopkhlfigajcnenbmnjegegi...

output:

2249

result:

ok answer is '2249'

Test #30:

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

input:

jmbhlcmaoopgbpgoifibbekilhbbnkbbmfmcbfpoofkmlnojoencbbjgejibmdimlfpjabmopfdhmfmlichcjcjjlollgmpkjamlideggjjpkadhbagclealldnlnmhleenhkjkhoklkepddkccooijefkiaoamaahppkadbhccefdbbieoaaoogjjpbdeogjllccijgbnhpfanbljnakmpnhhfdjjefbkmpmmnkoggfmlflgldaefkdhidcmmfmnnnbpgajhmgdfkcaahbpmjgknocbpbemhcefdlbldhnk...

output:

2247

result:

ok answer is '2247'

Test #31:

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

input:

bdchdgiihadebebhifeadbbchccageichdhabgibbifeaaeiehchccidgeagdgafefadhabefabhfhefiifafghcbecbhfggdihfigbfeabbfhgegciehdbbggfidigcdahbeggafdiiggfedbfcbicehfbaaghciddgeaddfeibfhdcehfdafaichiiebcbgbgadefccafidabageagffhhfiihbiedfdebgacecdbhiadcgcifdfhfiaebdfgeiaacgceifiadiihbhifhgdhhhcbegdfgdhebbeaeegbc...

output:

3952

result:

ok answer is '3952'

Test #32:

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

input:

ddbgeicefegejhkdbbfeejjbgkjicchkbjkgkhckgdaicchhjjbfhbeikkjaedbaehjgafjcefdhfihecjjidcieecbegihabfighgbkbghcchbkefcfgkaekkgkjjdhdhfhefkbgdbajcbibjkgiebciibaejdeiahakddehdeibiagighjckcebhckdgdckkigadckdgkkfeghebjkjcddfaceijghdicdchgahajkaaedffkcfbhfajgdffijakchkkkfbhdahihhijkeekbghjfakhfhicdciffchkch...

output:

3248

result:

ok answer is '3248'

Test #33:

score: 0
Accepted
time: 5ms
memory: 32064kb

input:

gmlipprhnmgngbibehcerdjnccabfrcbkkjmligbacqcmqedopraaaqonmapprifimhrcilrjamonlkqiqmircjidoeqboogjcjdfrldnqncqdrapbqjmobgaoabiminjgdjngimhlomeeabrgponqgnroaijqpgkakinhldlekeaaclqabdmbmjnejqdaaaginaodnjnaeqfbaibjgjrkdhilddikocpnhrqognrffrnlpjbcpcbkioqlnrgharmhckookandnkfjhdajapbjfagljpbrriqqkercqnhrqd...

output:

2035

result:

ok answer is '2035'

Test #34:

score: 0
Accepted
time: 4ms
memory: 30252kb

input:

aegnnajjbnpkqajafainmbmcmrfnrmldjiqrlpaeerlqakgkbndegdlajofjprlkgdgrfdcrojldqlcqihnjfgamkhhhglffdropmlhljajdcrldrjneqlnnnggrrrmjcnggbenrjdboknrinpdrfakrbedcfhngqafbekqloggnmkmqlkcifrkgildfqgfjhqhbmkpheqqcfnrcldpjfnphkdheiblijiebkqkcmcmkmalhdjrafaohcrqfqeenmnrmalckggkdbloqakblbleheidbleodoiilgaapocng...

output:

2033

result:

ok answer is '2033'

Test #35:

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

input:

cdedbbbadbaebccbccbdddadabccedeaedeeaadbeeaeabcccbcbaeccdaaedabacbadeaddccededdebabbbeadcbbdeeecbbbbcdbcaabbbedddacdaccacdaeedcdeaceaaaabeebcdeecabdcbceebbecaaacccaeeecebbcdcdaeabddbaacabeabdadddabeccabbaecdaadaddbaaebbabbcedbcdebbebbaabadeaadadcebbddebeaccecacdaccbeeaadddeccaaadcadbbadbeacbdcdddbca...

output:

7056

result:

ok answer is '7056'

Test #36:

score: 0
Accepted
time: 7ms
memory: 31652kb

input:

ebknblltothuqdufqotatoulqgnmmhfjckaalshtvllkvmveaunlkkvsnpieenjdvckiblddejspgpemngqebqgcgkmrlbreutvuosjvlnrmspbeitlvaakfefverpjnlujsqrocbchpclamnhvdadusaktnbdhndhotojojmandnvqkifinbvtcemcbcvogtbjllhajttittjsfvqovhfsmpkujcfkdlbrrhqucqicdldtllcljhjegrebktfovcldoshvsrnhlqlgmqkifmbakgmuftrcolhgpcnbmqtlk...

output:

1667

result:

ok answer is '1667'

Test #37:

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

input:

grlhcvvnmcskprdrhjojiusojfkeaeqkjmnmsljdgjajqqfbkkqvnhvosdtoliiflfjaurdjahjeispsrlbpgannhvsqogmknujohhjohoshlshfdodisocpsvgomkdljummmalsidljfknsdeohtvqsphgtebatlkutpmdltdqgkroirboqjuufvkkacmorgumntbolgqjhrheicpjhkahiljhkqrfvmmvjosajqmgdaafkjitqudmieodmempkitesrdsfkfijgrbcbegkstutjqcbvhllnpjmkfhmarch...

output:

1653

result:

ok answer is '1653'

Test #38:

score: 0
Accepted
time: 5ms
memory: 30016kb

input:

checddgjigkdclhhgfeikhaijijdiibjbdahhidefdclhlfgfjifhgcekakfjcdhjlebchhekglbeeafigdjkdgikhbedlglgcegblhcafggcbabjidcdhakchiicdeiaakejikkabdecfclbkbafalagbgklcacidglkhaclcgefklddjaahihhlfhdejljfccdajjdecllfbafifcidkkjbikhlcjhejagbelldajbkeeecgacgghkfdlfbhdhllfdihhfciclhhkcllicbiidhgfgekhbfhfkdlgifcfb...

output:

2986

result:

ok answer is '2986'

Test #39:

score: 0
Accepted
time: 7ms
memory: 30008kb

input:

ggfffhigbhacggggegcddeigfebcidgicideafaaghfgebbabfdahaiiffedbagfheaffaehgahaahaidahagdhiaihabecbiidfhegcadchdhidbhiihhdefgffaieiefdeaiadbbgcfibcediecadfdhaidcfhgiffgfaddaiidcafefffbegiaabgdbgigcfbiiacccdghbaibdbicgdbhfcicheiidghgehagbfihheaaabhhifigifigegihedaecegcgcchdgbccafdiegbifibdifcbaafffcffei...

output:

3918

result:

ok answer is '3918'

Test #40:

score: 0
Accepted
time: 3ms
memory: 30252kb

input:

ummgfeaecrtgkapkpsmcmactitkugcrffhshjpudirlrqffrrindmemsqrkjhoiathjjjtpfhepfrncpbbpdgpnqrmqrfekmonjbrhjbturipgfltgaesdfamemqtmaepfbglmlclsmfkcuutchtmsjdhlmfjjglpejuqpocnljabloikkbeaqmdsubcjunqfiddnutaapegnbanurnuiafagmhudsrmgiegnutuncgbprbbpfqhjpcamhpjkgbuqfblospqlditeljglgqclqihhtqdeesurpqefbhehjjo...

output:

1773

result:

ok answer is '1773'

Test #41:

score: 0
Accepted
time: 3ms
memory: 30608kb

input:

ldkfjidefefcdfhfmadbdcdajmlcihglmcgfbdjidbhlalclfgihgmchdmjeclkcglbcaflfhjamebdmcmljcdjammhldaeijekgigehhfbbibljjfemiilfehjdklcdaaigjfjdcblkecfggdchiamlifgdibjeffljlmcffajafafadcimlgcggmmeamejfileclkhihjcmhcfahfjffhdmkjcmicijldllghegihddebchcchejbklfealaijhbamabfedijjhiljjbgdagkfchaabiajhgackmgaeabg...

output:

2788

result:

ok answer is '2788'

Test #42:

score: 0
Accepted
time: 3ms
memory: 31500kb

input:

eudadvifjlpkmgchohotrddufliprbchvllqbmvllqkorvispiouqlfmutceufqijhecpssiagmacfufsgkncdgipfnmkbpertblvbkmmmgqkkapprjhbmccisilfcjciqvgmdvucovglbdcmqfhhucvhcbdhbbamrehrceadfavodqusggkakfirusaqpdbnlarhtofvtgmnecblfnddgclhdnevfmbemcbnkldmkdnggcpmuvnvcaonmqmafiehpcusiqqasoahugkmioscdbnkcuappfthjibopidjlqm...

output:

1683

result:

ok answer is '1683'

Test #43:

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

input:

adddcbdccbcbbbddbaacbbabbbbaccbdddadbbaaccabcdcbbdadcddcddbddcdcadddbcbcabddbbccbadbdacdcbcacdacbbcacbdcbdcdcadacbacdaadbdcaccbdccdbcacccbddccbbabaacbcdaccddddcabcdbbccbccaacadcacabdddddbbbacbccccadacbacdaaacbacadcbcddcaccccbcadadabbabbdcadabcacdaccaccbbabdacdadbcdabdbaaddaadaabddacbbbbaadcadacdabac...

output:

8968

result:

ok answer is '8968'

Test #44:

score: 0
Accepted
time: 3ms
memory: 31528kb

input:

gbgaddcgjjebdeicjajeafffffhagkejdhieaediajecbcejifchacfcghcjifdcgkbdeiehijakefbehdjicfgfbjahfjikkkjkdibgedjkjbbkejejekhchjiihejdhigjcgdfceefgdbfcdhjjkikfkdeebbjgbhkiefcaieihifdkbfggigaakkigdgkhkkgkedaeehedceagjgfjejkchhhccgejjijfhkekfbekjkkhaccdccghiidggedbidhdhhegkddgahgdjbekgiibccekcbhkkgahfkjbake...

output:

3254

result:

ok answer is '3254'

Test #45:

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

input:

clfigelkcgbhnmmlimcbeeamahehdcgnllakicheabimlbjkgaihledckhihamkkncjcbidiaccghlkabdanlclfncggdegajhbhfjlddkafkbinjeicfibklkacgjgafklihlhfihfhefighfabcjhfmnffbadgahcefgeendkjmeibngfeagefncnhjnfncilinciggklcmbhblgehbbmidnfbcagkedkdbfbgljadackjbjfffccldlmfelabhjhanlbffdllminghlgiejaajaammjeededldjimhbml...

output:

2565

result:

ok answer is '2565'

Test #46:

score: 0
Accepted
time: 2ms
memory: 30880kb

input:

acacabccbaccacacbaaaabbccbbbbbaccbaacaababaacbabbbcbbbabbabbccbbbbaabaccbacccbabacaacbaacacaccbaccccaaacbcabacaabaccacbcacbccabbbbacbbcabaccabbabaccaacbbcaabacbccbbbbacbabaacaacccbcaabbccbbcaabbabccbcaacccbcaacbaacbbccbbbcbabaabaababcbaccbabbaacbabbcccbabaccbcbccbcbaacccaaacacbbbcbbcccabacbbbccbaabc...

output:

15624

result:

ok answer is '15624'

Test #47:

score: 0
Accepted
time: 2ms
memory: 30572kb

input:

hlhbhfqigdhcbocaokqdimjqjmlebepagmdkmkqgfhgdaambfdjpceefailflmbeeeicoipbqladfjfloeqgelbqeiibdbighflhngajgeebiniffkcigleiiilgnchlhjjmkmlngqbpchbjnlamjqcddebgiikoajpnkelcmcenipfecdcfjiikigfhjpodkialpgqodhaloookdanjdqikmgimfglqqgdnneohdghqlplcaaqlglafhpfagcemeingdomloagnjdllqhalkdniijhcalildbfgcincqgjn...

output:

2150

result:

ok answer is '2150'

Test #48:

score: 0
Accepted
time: 3ms
memory: 30988kb

input:

ceaeabfaefccdbcabfeafafaccbbebadffebaafbcfcafbcbefdcdbdeaebdaffadefbecffacfedfabdabdeccfafaecfcafbeeeabfadbdcaedeaaacdfabeabddbffaebbaceddbcdcbaaffeafbededfcecbeefbcadeeecadbceaacfdbbcdacffcbecbfdccebaebbbaacbaadafbaeddcbbdfaddfbedefcbffeafbaebedbaefcabefcbcaaebbffacecedbedcbfaaddefdbccaafdacdceffcd...

output:

5932

result:

ok answer is '5932'

Test #49:

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

input:

nirhbekjkmnjlridmghnoafphtqsptgakctalqibnsbtditcgaalqggmjmmrtdmttroqgtongmggedatjejbkjckmpqjgjkaienpmqefppsbhackarncrcrlenpmjmjcmiieiltotoiahsctbnnilpgakpnpmdobrqgsclonmlrkaeddbpdcaqetjhosjsohgodtestmmqklltoddlcdmcmkkkklgffpgjcgdktgrtgfdmnjdnmroemodhqsbaonpboblthacfslbebfhqsktreijheadhdbptjheojmlhjk...

output:

1822

result:

ok answer is '1822'

Test #50:

score: 0
Accepted
time: 9ms
memory: 37172kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

6352396311852

result:

ok answer is '6352396311852'

Test #51:

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

input:

aaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaa...

output:

975744

result:

ok answer is '975744'

Test #52:

score: 0
Accepted
time: 6ms
memory: 30944kb

input:

aaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaa...

output:

280584

result:

ok answer is '280584'

Test #53:

score: 0
Accepted
time: 7ms
memory: 30320kb

input:

aaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaa...

output:

291276

result:

ok answer is '291276'

Test #54:

score: 0
Accepted
time: 3ms
memory: 33216kb

input:

aaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbw...

output:

283176

result:

ok answer is '283176'

Test #55:

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

input:

aaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaa...

output:

73287

result:

ok answer is '73287'

Test #56:

score: 0
Accepted
time: 5ms
memory: 33404kb

input:

aaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjr...

output:

276480

result:

ok answer is '276480'

Test #57:

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

input:

aaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaa...

output:

1076053

result:

ok answer is '1076053'

Test #58:

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

input:

aaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarq...

output:

1036728

result:

ok answer is '1036728'

Test #59:

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

input:

aaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxa...

output:

62748

result:

ok answer is '62748'

Test #60:

score: 0
Accepted
time: 4ms
memory: 30768kb

input:

aaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaa...

output:

265356

result:

ok answer is '265356'

Test #61:

score: 0
Accepted
time: 2ms
memory: 30500kb

input:

aaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaa...

output:

1097349

result:

ok answer is '1097349'

Test #62:

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

input:

aalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgq...

output:

26364

result:

ok answer is '26364'

Test #63:

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

input:

aaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawn...

output:

1022208

result:

ok answer is '1022208'

Test #64:

score: 0
Accepted
time: 4ms
memory: 30424kb

input:

aadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyz...

output:

26976

result:

ok answer is '26976'

Test #65:

score: 0
Accepted
time: 4ms
memory: 30552kb

input:

aaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaa...

output:

297648

result:

ok answer is '297648'

Test #66:

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

input:

aaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaa...

output:

299808

result:

ok answer is '299808'

Test #67:

score: 0
Accepted
time: 4ms
memory: 31632kb

input:

aaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamc...

output:

1031525

result:

ok answer is '1031525'

Test #68:

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

input:

aaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvr...

output:

303804

result:

ok answer is '303804'

Test #69:

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

input:

aaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaa...

output:

64683

result:

ok answer is '64683'

Test #70:

score: 0
Accepted
time: 2ms
memory: 30132kb

input:

aaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaa...

output:

1089726

result:

ok answer is '1089726'

Test #71:

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

input:

xfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfen...

output:

18736

result:

ok answer is '18736'

Test #72:

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

input:

boxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtibo...

output:

31221

result:

ok answer is '31221'

Test #73:

score: 0
Accepted
time: 7ms
memory: 29956kb

input:

jpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpk...

output:

7211

result:

ok answer is '7211'

Test #74:

score: 0
Accepted
time: 6ms
memory: 30868kb

input:

xjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxj...

output:

15400

result:

ok answer is '15400'

Test #75:

score: 0
Accepted
time: 5ms
memory: 30728kb

input:

upyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyz...

output:

8263

result:

ok answer is '8263'

Test #76:

score: 0
Accepted
time: 3ms
memory: 30700kb

input:

gkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkk...

output:

54875

result:

ok answer is '54875'

Test #77:

score: 0
Accepted
time: 3ms
memory: 31936kb

input:

xlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxl...

output:

31221

result:

ok answer is '31221'

Test #78:

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

input:

xowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowx...

output:

45954

result:

ok answer is '45954'

Test #79:

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

input:

uidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuid...

output:

7211

result:

ok answer is '7211'

Test #80:

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

input:

itekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitek...

output:

26901

result:

ok answer is '26901'

Test #81:

score: 0
Accepted
time: 3ms
memory: 33284kb

input:

qvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvyt...

output:

8263

result:

ok answer is '8263'

Test #82:

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

input:

exkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleex...

output:

56061

result:

ok answer is '56061'

Test #83:

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

input:

kepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepk...

output:

45954

result:

ok answer is '45954'

Test #84:

score: 0
Accepted
time: 4ms
memory: 30568kb

input:

whdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdm...

output:

8263

result:

ok answer is '8263'

Test #85:

score: 0
Accepted
time: 3ms
memory: 30072kb

input:

dkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddk...

output:

13072

result:

ok answer is '13072'

Test #86:

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

input:

zwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjm...

output:

45954

result:

ok answer is '45954'

Test #87:

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

input:

pjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpj...

output:

37179

result:

ok answer is '37179'

Test #88:

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

input:

iwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwo...

output:

11666

result:

ok answer is '11666'

Test #89:

score: 0
Accepted
time: 5ms
memory: 34392kb

input:

knksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknkskn...

output:

1195845561

result:

ok answer is '1195845561'

Test #90:

score: 0
Accepted
time: 3ms
memory: 31840kb

input:

bzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzeb...

output:

45954

result:

ok answer is '45954'

Test #91:

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

input:

horqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorq...

output:

18736

result:

ok answer is '18736'

Test #92:

score: 0
Accepted
time: 3ms
memory: 34544kb

input:

wuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwu...

output:

1195983889

result:

ok answer is '1195983889'

Test #93:

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

input:

gbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssy...

output:

35577

result:

ok answer is '35577'

Test #94:

score: 0
Accepted
time: 5ms
memory: 30636kb

input:

iksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksi...

output:

45954

result:

ok answer is '45954'

Test #95:

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

input:

dtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgj...

output:

18736

result:

ok answer is '18736'

Test #96:

score: 0
Accepted
time: 7ms
memory: 30464kb

input:

lrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrt...

output:

31968

result:

ok answer is '31968'

Test #97:

score: 0
Accepted
time: 3ms
memory: 31852kb

input:

omeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuom...

output:

37179

result:

ok answer is '37179'

Test #98:

score: 0
Accepted
time: 4ms
memory: 36456kb

input:

mimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimm...

output:

853689483

result:

ok answer is '853689483'

Test #99:

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

input:

eleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeelee...

output:

975625225

result:

ok answer is '975625225'

Test #100:

score: 0
Accepted
time: 7ms
memory: 30940kb

input:

eedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmee...

output:

74358

result:

ok answer is '74358'

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #101:

score: 65
Accepted
time: 12ms
memory: 31748kb

input:

jwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwj...

output:

2832804

result:

ok answer is '2832804'

Test #102:

score: 0
Accepted
time: 10ms
memory: 30448kb

input:

lrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrex...

output:

535320

result:

ok answer is '535320'

Test #103:

score: -65
Wrong Answer
time: 61ms
memory: 223628kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

2047887435291600

result:

wrong answer expected '148148592592925926', found '2047887435291600'