QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#737279 | #801. 回文自动机 | Linver | 100 ✓ | 80ms | 244700kb | C++23 | 2.0kb | 2024-11-12 15:17:58 | 2024-11-12 15:17:58 |
Judging History
answer
#include<bits/stdc++.h>
#define int long long
using namespace std;
typedef pair<int,int> PII;
typedef unsigned long long ULL;
constexpr int N=1e5+10,M=4e5+10;
constexpr int INF=2e18;
constexpr int mod=998244353;
// constexpr int mod=1e9+7;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
struct PAM{
static constexpr int ALPHABET_SIZE=26;
struct Node{
int len,link,cnt;// cnt表示以当前字符结尾的不同子串个数(视实际情况而定)
array<int,ALPHABET_SIZE> next;
};
vector<Node> t;
int suff;
string s;
PAM(){
init();
}
void init(){
t.assign(2,Node());
t[0].len=-1;
suff=1;
s.clear();
}
int newNode(){
t.emplace_back();
return t.size()-1;
}
bool add(int c){
int pos=s.size();
s+=c;
c=c-'a';
int cur=suff,curlen=0;
while(true){
curlen=t[cur].len;
if(pos-1-curlen>=0&&s[pos-1-curlen]==s[pos])break;
cur=t[cur].link;
}
if(t[cur].next[c]){
suff=t[cur].next[c];
t[suff].cnt++;
return false;
}
suff=newNode();
t[suff].len=t[cur].len+2;
t[cur].next[c]=suff;
if(t[suff].len==1){
t[suff].link=1;
t[suff].cnt=1;
return true;
}
while(true){
cur=t[cur].link;
curlen=t[cur].len;
if(pos-1-curlen>=0&&s[pos-1-curlen]==s[pos]){
t[suff].link=t[cur].next[c];
break;
}
}
t[suff].cnt++;
// t[suff].cnt=1+t[t[suff].link].cnt;
return true;
}
int next(int p,int c){
return t[p].next[c-'a'];
}
int link(int p){
return t[p].link;
}
int len(int p){
return t[p].len;
}
int cnt(int p){
return t[p].cnt;
}
int size(){
return t.size();
}
} pam;
void solve(){
string s;
cin>>s;
for(auto c:s)pam.add(c);
auto &t=pam.t;
for(int i=t.size()-1;i>=2;i--)t[t[i].link].cnt+=t[i].cnt;
int ans=0;
for(int i=2;i<t.size();i++)ans=max(ans,t[i].len*t[i].len*t[i].cnt);
cout<<ans<<"\n";
}
signed main(){
cin.tie(0)->sync_with_stdio(0);
int T=1;
// cin>>T;
while(T--)solve();
return 0;
}
詳細信息
Subtask #1:
score: 35
Accepted
Test #1:
score: 35
Accepted
time: 1ms
memory: 3788kb
input:
bdgedcfadbabbfgeacdgbggaefddebabbfgeacdgbefaecfddffeddacbabfcgecedacbffeddacbabfebadggfafabcdfdeaabdeecgbcecegcgecedacbfgdagbgagafdegecadfebcdbgfacdecdegecadfebbcdfdeaabdbfgcbccfcaebcecfdfccagdafaeaacbggaefddebcbecdafageeaabcbdafadcbecdbcgcbdgedcfadbcaefbdfcbgfcdeceddaaffgcedfcdcgdcgbfdddfdadgagbbef...
output:
5594
result:
ok answer is '5594'
Test #2:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
bdgfcbabegfbbbgecfbddbaceaefbebgeafdbbgaebebdabgebabacccebbaebeafbefaabdgfcbabegdbaceaefbegcaegagcdgcacccfbbfgffgcdgbccgecbdbcagbbcacccfbbfgeegfcaecbcebebdabgebbbebbgcfafbbbgbdbabgbabfgdfaggfbcbabeebbdaagacgbafecebfccdbgfacgcabefaaedadeacgdeegfcaecbcabacccebbacdbbdceeegcdbbdceeegbaccaecfbgbbebbgcfaf...
output:
7308
result:
ok answer is '7308'
Test #3:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
baeedcbgaeaabdcaeeagbeffgedegdfcggaeafeegccecbacaaaabdcaeeaggedcbbaebfbcbbbebeaeagedddgabgccdecfeegcababaddfcabcbbbebeaegabeddeedaaabebgcafgeefgeabcaafgcbcfaafgadddgdbccbcddfacfcgdeefgeabcaagbgbgdbefdcefcacafcagcfadegebcababaddfcaffbfgdfecefgafcfgddbagfgceabefcaaebagddabcbbbebeaedaddaacgfcabeffgfgeg...
output:
6011
result:
ok answer is '6011'
Test #4:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
fadabcedabffccgceafdfgebfgebdfffccgceafdfbabeebbccbcebdaabagbdcabbebbgbbdddddcfdfefcfgcaedcdfbfcgagggeacabgddfdggddgcgagfefgeafdaefefgeafdaefbabeebbccabccadccgcbbdddddcfdfadabcedabgbdegbcgdecfcefaedcffadabcedabadgbbacdfbfecccfacaaggggffddffffbcgacfgbcbeadagbfffefcfgcaedgeacabgddfgbcccdcgegbdcabbebbg...
output:
5874
result:
ok answer is '5874'
Test #5:
score: 35
Accepted
time: 1ms
memory: 3952kb
input:
efggbbfcabcdfbceagadfagaeegbegcbfbcfcgfbgdfffcdeagfcggffcacbbadedceffedbgafcbegdggabccbcecfcbfegdcbecdedfdeebebecffcaafgffabgbgedfcdabgbeffaagbffcdccaddcadgbbcadedgcfbgbdefggbbfcabddccdefedagebfbbfadfagagedffaagabcgbcffaggfebdbefdcfecegaeggggdacedbgfcdedfdeebececbfefeegdebddaeafbffabgbgedfcfcdgcaacc...
output:
5751
result:
ok answer is '5751'
Test #6:
score: 35
Accepted
time: 1ms
memory: 3740kb
input:
eafdccagcbcaeebabcggdgdfcdfgeacbgcdfbgcabdegdbbaabgecbaaagffecffedeffcedcdgcecbgfedbdgabfdcbefcecdfdfaegccbfeefdccgfbfebecffedeffcbdegdbbaabeafcbegcbagecbaaagffefcdafgageffefbcceecdffabcbbdbefcdafgageedcdgcecbgcaeebabcggfbeegdaccfdffabcbbdbcbefcecdfdcdccfcbadcecffedeffcdcgaagfaegddecgffafcdgdfcdfgea...
output:
6156
result:
ok answer is '6156'
Test #7:
score: 35
Accepted
time: 1ms
memory: 3700kb
input:
aecedcggbddbeeadcfbcaebcdceeegbcbaegcecbfefbbgbcfgegbdaggeebdfebbaeddgffdgfedegbaecedcggbdbbddadfageebfadbbegbaaaffddbdacdgbgbdggfgebaaebcfceefgaedacdeeecaccecgdcbafafccffdaedbbegagecfcdbbacceafeaabbefccgbgceeabcbaegcecbdfgacggffbdcbafafccfbfccfbgggadddddacbfeeebgdaddagcdgbgbdggffdaedbbegabcbaegcecb...
output:
5662
result:
ok answer is '5662'
Test #8:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
aaffagaebeecbgagbccbafgceadgeebdgffeceacbgcbebggfdbgcbebggfdadgceeggefaaffagaebeegfafdeeecaaffagaebebgaabbebcaaaaceagaabcabddacfebbfbefagdbcdaggeggcfagdgfddegcabcddaefcdcaaaceagaabecbgagbccbaaffagaebegbagabfddcbdgffeceacccafcbcdcagcebbbgfggbfbefagdbcgddcdaadafgcebbbgfggccafcbcdcaafgceadgeebfbgbbddeb...
output:
6006
result:
ok answer is '6006'
Test #9:
score: 35
Accepted
time: 0ms
memory: 3756kb
input:
bfbbfccggagbeddgdcbdfecaedcedefgfeaabdcaebabegdgdebbddaefebgcefgfcagdbgccacgdbcdadbeafcedeffbeccebabacedebabagadfgbdcaeaadbacgdfbgabgdbafeadgbfbecfccbfgeecabgfafacefbgbcebbddaefebgadbacgdfbgdagefcefgeddgagggedefgafgdbgacffbeccebabgbeebbdafegbeddgdcbdcefgfcagdbacafdggbacccebfdcddgadbeafcedecefgfcagdb...
output:
5966
result:
ok answer is '5966'
Test #10:
score: 35
Accepted
time: 1ms
memory: 3700kb
input:
gbegegfcdbbdagefbgadbfafadedacdbbffcbagfcgebcbbeabedbedegbdbebfcbcbffddeadadffffadccgfebbadbdcdfecbadbfbfeaefadfdgfeaebfcbgdbfbcfebdagefbgadedgaeecegbeaffcddaggcafcddaffccafcddaffcgfdegffaaeggadabffaddbaebcffcadbaebcffcabfafadedacdabgaccfdedbfbfeaefadeadadffffeaffeffaffdbbffcbagfcbbaebfbfgebfcbcbffd...
output:
5997
result:
ok answer is '5997'
Test #11:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
cihgfkaabfcjeehlggeihjadhfkjdfegfiibdidefcdehjgkkhjfldaeelddklklgjdkbeidjahlkjligjdhjffddfljlbejibdgllkddjcccddajbkfjkfkecegichgklaeccfcgjidfkgckhafjeabajihcchghkchjfjkkbeeajcghaillghbcidglkcldfkkkegjdgcjfecjbaekhcadlfefcgagjdgebkgafagdeijfkgcebkkefbblkdlajccehgiidfahkfblfjafgikaacjfddalheeelcjifafk...
output:
3028
result:
ok answer is '3028'
Test #12:
score: 35
Accepted
time: 1ms
memory: 3948kb
input:
xbqpbhaecvtkxghbvkmwarwpsrjwhgqnojrdskecifmlbcbctlolyjdswhhclojnnfcynqqfvcchkuehqxgbuaqsnwotkfskrnmkwoonkhcvwwmplrxlfjvaepipcegcekikifaxpqclhwmstfifhnawojfngbphtfftcewckdeseoxnfwdtymodyqlewkbcjwtyufrevupfapglxllumkvspbebirrytpcmodoncourbanwyylnwugxujjtdwgyjipayvmgucnqnrpwqplwpdsocasjykituacpagydmymp...
output:
1481
result:
ok answer is '1481'
Test #13:
score: 35
Accepted
time: 1ms
memory: 3692kb
input:
tobdfhlrhrypwivkkpiugptzudfkxlxkprusxvwlhwqinpfwdxelgpgrfkmkjfoovtwrinkdpehykvkksgswkikxbowttkqdpkvevjbrigecweqaehejnugxnukpqcueewuazbzfbijnvrqlimbipyeyxhszbdqeduibykofvyqbhgxecowsrrqzpboxzafxinkqtxgcavjiezzjoqweqtupcxgjtxgxxzanmwamwhpzyxqxgouhgnkvqglgunyqnawrwlqpxhtdscimoedcwpuwbqhiygbfoshwjkvquisd...
output:
1437
result:
ok answer is '1437'
Test #14:
score: 35
Accepted
time: 1ms
memory: 3888kb
input:
epkkjklkmnmgajmqaqfdepfdlhockegkcpekmdmfaphqmqpqopjhngpblcephamlqmekfnqjoknnkmbodonbfkmobeddbmplkallmeqipgdimpiqfeficqknaeapllechkpdamdpeoanqoghnlhfggaihfnppbmfdnjcokjfakladhdmdiejcecaheilbeoebgfgcfjlngiphlqeemgopopmonfcccpjhleijllfngdomcqhkfcidmkgqqgoqegikioaoodkokhaklaihlenckifchcjoibffdjqflgqfmdo...
output:
2190
result:
ok answer is '2190'
Test #15:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
acbabbcbaacacabcbabcaaacaabcaaabccbabcbcaaaabbcabaaabbacbcaaabcccbaaccbbcabbaaababccbbacacbabaaacbacbcabcbbcbabccccccbbaacacbcacacabbbbbbcbcaaacbcbacccaabbbabbbcabccbabaabcbccbacccccbabbbbbbaaccaabbccccbabbcaccbaccaaababbcaaabcbaaacbbaccbbcbacbccacabbccacbbacbabbcabcbbaccaabbccbcbbcbccabcbccabbbabcb...
output:
15924
result:
ok answer is '15924'
Test #16:
score: 35
Accepted
time: 1ms
memory: 3672kb
input:
bhdxinplnrkvahvgamiwqnuqpgmivqfufihnsjcimgfdkjsrqxhqxwdxfocovgpasgnxrvioxpsolcxmfxuhfpeehmmfsgcggenvovhmqtvnohtrgdhkdoonojjdvlvelussuegcpkmfvtdpawqeowewbpxbipqmgckmrarknfkqqbfgvbmbsjtilnbpgwpsbwrfvlfqsdtnwsscwawwgtmunewtgjujwniavsjrcewocbxelgntqfmrfvblghjcdemxtvxmlupgxotjnxrnhemxwpjtghcokiibbujodawx...
output:
1548
result:
ok answer is '1548'
Test #17:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
hgroaoogpmsnobkfecoqlebndmblggaerscolcqerhgobfdmialndaaaqjisghbljjqefnklsoqeicimqcplfohjdajhpecehlgqilimkrksleroqqrqhoppcpsknnaaonspddgdpoqqhdifcqpfqrkljlokcgsibeqmrhagkkseaeapqaboeglocqpipambsjdhpslqajkmsinddrhcjmrhiiakopjqhginnhkreobjpdigloolkhkdjefbqpshpqcpearjapkqlerkllljefflqcrcgkcrchfndglonceg...
output:
1976
result:
ok answer is '1976'
Test #18:
score: 35
Accepted
time: 1ms
memory: 3964kb
input:
vbofyszrvwsdixyhngfqrunnmhivyilqiwxsdayfmdyovagfbeddpdwmpnfsunmtlxjvrizfzknqgrirtygwdmqdnqubzmryqxqjzfvrgmlebiverkcqaqpdiapbktwaixerxkewhtqfvgtlrtxuesxjhkdsbjdqnkuvivypgqlycjurldmfydcxictjwbjpdwqimbfxakzrljrekrxkestdeseewcetuaquqvbwxvqgacfvaeiycmmtyvxsxfmpdnvylkybngtoktxwforvxkhmludmkljxdoquhyvmmevk...
output:
1412
result:
ok answer is '1412'
Test #19:
score: 35
Accepted
time: 1ms
memory: 3700kb
input:
lldkkjfeihgcdkaeijblcggdmbabmejbmljljjeicleelhfjagckgkflfggemmalgjeekdlhmjeghcibhgfmdemjljgjkmfjaidmiaeeeifeibdfmllhacickfgdfihajkfcemajmdfbmeefimfgbmlggfmgiecdedabakhkaafabijhagaihbcgllgfklbfemmecbagfabkdahakegdmgdmajhaeijglkbemhadmhfbaagbhialbkkdblfflcamieidichbhagbmgifijgjdjidbfejaaamjddbbabmbhag...
output:
2773
result:
ok answer is '2773'
Test #20:
score: 35
Accepted
time: 1ms
memory: 3928kb
input:
hheahpaoepdahfdeqliolckfaogjamlakobiahncibelepjbfgjpjofpnhnpgelaafcofkjlpcoaejbmemjaigncdfioeeflqcpgjeehqehfnqnjpqoidomgbpeehiliaalokmpkfqbhdaggggdkoefkheljfhqlaqnjokafpgceqaohgipkncheacgdlooqjpqdioddcqjgpkbceipjnfflnmfqgbjkomlndbpqcmfploeeemcjjajnaapcmflbolocohbnckafgemghqffmpfaohdopnifjgikadnapdqa...
output:
2120
result:
ok answer is '2120'
Test #21:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
hrkmbslgoiahkuaanfkrthtriresittllrjptqidbokqisorhdmcnsamdkcbokuhhlcgfqihbcehbrfnggorroeqrnpcfltfrbmnksslngaemigpsckalephiuuqjkhjqmumntfdrtitudflftnasefhkotpfibanafjueadhkelkqkhteijueqtnobdqgjolnjiqeictqgubhufdneampstmckeddjpenuisdgdqelmpmlrfblemsojtracnsagfiopsfqnarqjsictamuljpuadattmeudqnfddapmtseo...
output:
1773
result:
ok answer is '1773'
Test #22:
score: 35
Accepted
time: 1ms
memory: 3696kb
input:
efbedhachhgdhbhchecbgbdedgbhddbhebccgegbfgcdgeghhehffhcfgafgeabdehbhehafbaagcfcbecadhagdebfdedcdfgbaffeffgabfdafccabhabhbehhbegdcfehadehabaacbgcfgehffdbhaaagggghedfhaefdhagbgeffahadbbcdcgdfgacaebgdheabahggeacfahgeedbgadgebhdahhgbebhgbgaghhaheeffgbbdcchddacdbbceeefccbeafgdgbagabdhggfgbhffefabcagdhahc...
output:
4464
result:
ok answer is '4464'
Test #23:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
ibjiwmcjcnneglnnkvqrsfnowvgrcqqcwuwgwbbntduorslqgfhfqowannwocthiwwuwuvohnvldknewuhkbkcbvqmfhmfpbvfwekmjsgbdbgvewebjnddgwbjcruphqedcsoiqgfrwampdaachuejdkjdsntvwgcasdwlspqmjshvamcgsmviwwghpbvdmccmccoclbfcntjtparjspjsqkbgumnfpvsqdqorhcjkfhwlkvdlmgdghibjkdwhilvkcjbsusenaedekbqsuwskqlrwvhnnraoiqmljaberum...
output:
1605
result:
ok answer is '1605'
Test #24:
score: 35
Accepted
time: 1ms
memory: 3920kb
input:
gywcydgphaftrvrgycaavbmagbwecbclapeytmcbsirkhkdtgehkqvvpdcrijochiatbfiseyacbyqykcxcllitvliopmxtbcybatlbaqlwliruoiqbadtkgbppvxcryxyycsdbmxywexbrssjrnppkwkucgkjbkdxcrdtnaynqrjjohwfyyciikfojscwedqqqprdpipvcomfdtevejwumquinswmjvofcefmjabxqvkirrsrphlfigxktufdgijaicbcfhsbnnnpuklkrbbfmjbwvoveunnkcfacvdkwgq...
output:
1487
result:
ok answer is '1487'
Test #25:
score: 35
Accepted
time: 1ms
memory: 3672kb
input:
cdeabecddaabdceecaeeecddbadddbaebebdabecebcbeecbcdebaadedaeebbeeacccdeeecdbdbadaedccdabddecdcdadddacbdbcabcacdbedaaebebcbbeeceacbdadbdabedcabddcdddbdddcdcaebaccddbabccbdaaeaddebebebcbcdaecedddecedcdacadeccccadddebcdebcbbddccbcaedecdededbbceeebdcaceecccbdacaaaaceacebbdecabaccbbcebebbbddbccedcccbcadbc...
output:
7073
result:
ok answer is '7073'
Test #26:
score: 35
Accepted
time: 1ms
memory: 3964kb
input:
cbbbacaaabcbababcbcabaccaaabaaccbccaccbaabacccbbaccaaccacabcccacabcabbcacbbacaacccabacbabbbccbcacbcbbababcbbaccbbbbbcacccacaaaabbbaaacbbccabcbaccbbcaaccccacacbcabcbacbbaaacbccaacacaaaccccabccbcacbbabbaacaabbcabbccccaabcbcabccbaccabacabcabaacccababcacabacbbbaacccacbcabbbacaaabcacabaabccaaabbbcbcaabac...
output:
15764
result:
ok answer is '15764'
Test #27:
score: 35
Accepted
time: 1ms
memory: 3964kb
input:
jeaaiibjbcagfeihgehccdcecadcaihecefiebheeigagghchaebaijfdbjfdabgggheggdigbcbebiibacbhichbghidcedebehhgafdaehgccbafhibgjahaefjcciabgdhaehjbgfccbibegchhfagejfcjjcjfbedcieegcafghacdhgagahejdddgbcgjdecchfffjcabaecbehgadcihhbcfajbfdgcddhjiaacaidgggbjifdedfbgcbgeaehbgfhadfdjjhhjgggehehjcdfcegffdjicgfidife...
output:
3583
result:
ok answer is '3583'
Test #28:
score: 35
Accepted
time: 0ms
memory: 3732kb
input:
bkogogclbdkgoddeopcqiimllehnkiokpjpcapheqeohhdngckljhekpnpgibmlhfrqirnhpkkkplgkggcfqingmdmdqbgffffqbllbjefqqerrekclhlkeclgcrclqankqgcnnrrmdmpqmldfbeolmeaafgrcfcbfgekilgfllrqqdnanpmfgqihjnicaanlkhpmqrldqonogqhjnebgglgjrkhbredoranhqgfgphdidbldmfqjeeebhrqjoenppiiejqljedlelppdhkoapgcdlihkiqmqgcmkikfpdio...
output:
2017
result:
ok answer is '2017'
Test #29:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
dmfdicakllkhjcbfpkmdaoimolgpnjncnijcnikhjodehgnifdbjpjjhlbaobkndlnbehefonknlfkjikdonddkadgbjehjbcnnceopnbgeaogpnafankjpmfnochbcnjcjlfokkcmchfeedaokdodknalochdmjdgnkihombaclfehgohehbikpheiccpmofebkijlldfdimfjaeffpkgfpbhccfldbkhpnbbgogofcjmkocgodnghendannpphbhcnacoeloheocpecafnjopkhlfigajcnenbmnjegegi...
output:
2249
result:
ok answer is '2249'
Test #30:
score: 35
Accepted
time: 1ms
memory: 3756kb
input:
jmbhlcmaoopgbpgoifibbekilhbbnkbbmfmcbfpoofkmlnojoencbbjgejibmdimlfpjabmopfdhmfmlichcjcjjlollgmpkjamlideggjjpkadhbagclealldnlnmhleenhkjkhoklkepddkccooijefkiaoamaahppkadbhccefdbbieoaaoogjjpbdeogjllccijgbnhpfanbljnakmpnhhfdjjefbkmpmmnkoggfmlflgldaefkdhidcmmfmnnnbpgajhmgdfkcaahbpmjgknocbpbemhcefdlbldhnk...
output:
2247
result:
ok answer is '2247'
Test #31:
score: 35
Accepted
time: 1ms
memory: 3784kb
input:
bdchdgiihadebebhifeadbbchccageichdhabgibbifeaaeiehchccidgeagdgafefadhabefabhfhefiifafghcbecbhfggdihfigbfeabbfhgegciehdbbggfidigcdahbeggafdiiggfedbfcbicehfbaaghciddgeaddfeibfhdcehfdafaichiiebcbgbgadefccafidabageagffhhfiihbiedfdebgacecdbhiadcgcifdfhfiaebdfgeiaacgceifiadiihbhifhgdhhhcbegdfgdhebbeaeegbc...
output:
3952
result:
ok answer is '3952'
Test #32:
score: 35
Accepted
time: 1ms
memory: 3968kb
input:
ddbgeicefegejhkdbbfeejjbgkjicchkbjkgkhckgdaicchhjjbfhbeikkjaedbaehjgafjcefdhfihecjjidcieecbegihabfighgbkbghcchbkefcfgkaekkgkjjdhdhfhefkbgdbajcbibjkgiebciibaejdeiahakddehdeibiagighjckcebhckdgdckkigadckdgkkfeghebjkjcddfaceijghdicdchgahajkaaedffkcfbhfajgdffijakchkkkfbhdahihhijkeekbghjfakhfhicdciffchkch...
output:
3248
result:
ok answer is '3248'
Test #33:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
gmlipprhnmgngbibehcerdjnccabfrcbkkjmligbacqcmqedopraaaqonmapprifimhrcilrjamonlkqiqmircjidoeqboogjcjdfrldnqncqdrapbqjmobgaoabiminjgdjngimhlomeeabrgponqgnroaijqpgkakinhldlekeaaclqabdmbmjnejqdaaaginaodnjnaeqfbaibjgjrkdhilddikocpnhrqognrffrnlpjbcpcbkioqlnrgharmhckookandnkfjhdajapbjfagljpbrriqqkercqnhrqd...
output:
2035
result:
ok answer is '2035'
Test #34:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
aegnnajjbnpkqajafainmbmcmrfnrmldjiqrlpaeerlqakgkbndegdlajofjprlkgdgrfdcrojldqlcqihnjfgamkhhhglffdropmlhljajdcrldrjneqlnnnggrrrmjcnggbenrjdboknrinpdrfakrbedcfhngqafbekqloggnmkmqlkcifrkgildfqgfjhqhbmkpheqqcfnrcldpjfnphkdheiblijiebkqkcmcmkmalhdjrafaohcrqfqeenmnrmalckggkdbloqakblbleheidbleodoiilgaapocng...
output:
2033
result:
ok answer is '2033'
Test #35:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
cdedbbbadbaebccbccbdddadabccedeaedeeaadbeeaeabcccbcbaeccdaaedabacbadeaddccededdebabbbeadcbbdeeecbbbbcdbcaabbbedddacdaccacdaeedcdeaceaaaabeebcdeecabdcbceebbecaaacccaeeecebbcdcdaeabddbaacabeabdadddabeccabbaecdaadaddbaaebbabbcedbcdebbebbaabadeaadadcebbddebeaccecacdaccbeeaadddeccaaadcadbbadbeacbdcdddbca...
output:
7056
result:
ok answer is '7056'
Test #36:
score: 35
Accepted
time: 1ms
memory: 3780kb
input:
ebknblltothuqdufqotatoulqgnmmhfjckaalshtvllkvmveaunlkkvsnpieenjdvckiblddejspgpemngqebqgcgkmrlbreutvuosjvlnrmspbeitlvaakfefverpjnlujsqrocbchpclamnhvdadusaktnbdhndhotojojmandnvqkifinbvtcemcbcvogtbjllhajttittjsfvqovhfsmpkujcfkdlbrrhqucqicdldtllcljhjegrebktfovcldoshvsrnhlqlgmqkifmbakgmuftrcolhgpcnbmqtlk...
output:
1667
result:
ok answer is '1667'
Test #37:
score: 35
Accepted
time: 1ms
memory: 3696kb
input:
grlhcvvnmcskprdrhjojiusojfkeaeqkjmnmsljdgjajqqfbkkqvnhvosdtoliiflfjaurdjahjeispsrlbpgannhvsqogmknujohhjohoshlshfdodisocpsvgomkdljummmalsidljfknsdeohtvqsphgtebatlkutpmdltdqgkroirboqjuufvkkacmorgumntbolgqjhrheicpjhkahiljhkqrfvmmvjosajqmgdaafkjitqudmieodmempkitesrdsfkfijgrbcbegkstutjqcbvhllnpjmkfhmarch...
output:
1653
result:
ok answer is '1653'
Test #38:
score: 35
Accepted
time: 1ms
memory: 3780kb
input:
checddgjigkdclhhgfeikhaijijdiibjbdahhidefdclhlfgfjifhgcekakfjcdhjlebchhekglbeeafigdjkdgikhbedlglgcegblhcafggcbabjidcdhakchiicdeiaakejikkabdecfclbkbafalagbgklcacidglkhaclcgefklddjaahihhlfhdejljfccdajjdecllfbafifcidkkjbikhlcjhejagbelldajbkeeecgacgghkfdlfbhdhllfdihhfciclhhkcllicbiidhgfgekhbfhfkdlgifcfb...
output:
2986
result:
ok answer is '2986'
Test #39:
score: 35
Accepted
time: 1ms
memory: 3732kb
input:
ggfffhigbhacggggegcddeigfebcidgicideafaaghfgebbabfdahaiiffedbagfheaffaehgahaahaidahagdhiaihabecbiidfhegcadchdhidbhiihhdefgffaieiefdeaiadbbgcfibcediecadfdhaidcfhgiffgfaddaiidcafefffbegiaabgdbgigcfbiiacccdghbaibdbicgdbhfcicheiidghgehagbfihheaaabhhifigifigegihedaecegcgcchdgbccafdiegbifibdifcbaafffcffei...
output:
3918
result:
ok answer is '3918'
Test #40:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
ummgfeaecrtgkapkpsmcmactitkugcrffhshjpudirlrqffrrindmemsqrkjhoiathjjjtpfhepfrncpbbpdgpnqrmqrfekmonjbrhjbturipgfltgaesdfamemqtmaepfbglmlclsmfkcuutchtmsjdhlmfjjglpejuqpocnljabloikkbeaqmdsubcjunqfiddnutaapegnbanurnuiafagmhudsrmgiegnutuncgbprbbpfqhjpcamhpjkgbuqfblospqlditeljglgqclqihhtqdeesurpqefbhehjjo...
output:
1773
result:
ok answer is '1773'
Test #41:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
ldkfjidefefcdfhfmadbdcdajmlcihglmcgfbdjidbhlalclfgihgmchdmjeclkcglbcaflfhjamebdmcmljcdjammhldaeijekgigehhfbbibljjfemiilfehjdklcdaaigjfjdcblkecfggdchiamlifgdibjeffljlmcffajafafadcimlgcggmmeamejfileclkhihjcmhcfahfjffhdmkjcmicijldllghegihddebchcchejbklfealaijhbamabfedijjhiljjbgdagkfchaabiajhgackmgaeabg...
output:
2788
result:
ok answer is '2788'
Test #42:
score: 35
Accepted
time: 1ms
memory: 3920kb
input:
eudadvifjlpkmgchohotrddufliprbchvllqbmvllqkorvispiouqlfmutceufqijhecpssiagmacfufsgkncdgipfnmkbpertblvbkmmmgqkkapprjhbmccisilfcjciqvgmdvucovglbdcmqfhhucvhcbdhbbamrehrceadfavodqusggkakfirusaqpdbnlarhtofvtgmnecblfnddgclhdnevfmbemcbnkldmkdnggcpmuvnvcaonmqmafiehpcusiqqasoahugkmioscdbnkcuappfthjibopidjlqm...
output:
1683
result:
ok answer is '1683'
Test #43:
score: 35
Accepted
time: 0ms
memory: 3956kb
input:
adddcbdccbcbbbddbaacbbabbbbaccbdddadbbaaccabcdcbbdadcddcddbddcdcadddbcbcabddbbccbadbdacdcbcacdacbbcacbdcbdcdcadacbacdaadbdcaccbdccdbcacccbddccbbabaacbcdaccddddcabcdbbccbccaacadcacabdddddbbbacbccccadacbacdaaacbacadcbcddcaccccbcadadabbabbdcadabcacdaccaccbbabdacdadbcdabdbaaddaadaabddacbbbbaadcadacdabac...
output:
8968
result:
ok answer is '8968'
Test #44:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
gbgaddcgjjebdeicjajeafffffhagkejdhieaediajecbcejifchacfcghcjifdcgkbdeiehijakefbehdjicfgfbjahfjikkkjkdibgedjkjbbkejejekhchjiihejdhigjcgdfceefgdbfcdhjjkikfkdeebbjgbhkiefcaieihifdkbfggigaakkigdgkhkkgkedaeehedceagjgfjejkchhhccgejjijfhkekfbekjkkhaccdccghiidggedbidhdhhegkddgahgdjbekgiibccekcbhkkgahfkjbake...
output:
3254
result:
ok answer is '3254'
Test #45:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
clfigelkcgbhnmmlimcbeeamahehdcgnllakicheabimlbjkgaihledckhihamkkncjcbidiaccghlkabdanlclfncggdegajhbhfjlddkafkbinjeicfibklkacgjgafklihlhfihfhefighfabcjhfmnffbadgahcefgeendkjmeibngfeagefncnhjnfncilinciggklcmbhblgehbbmidnfbcagkedkdbfbgljadackjbjfffccldlmfelabhjhanlbffdllminghlgiejaajaammjeededldjimhbml...
output:
2565
result:
ok answer is '2565'
Test #46:
score: 35
Accepted
time: 1ms
memory: 3796kb
input:
acacabccbaccacacbaaaabbccbbbbbaccbaacaababaacbabbbcbbbabbabbccbbbbaabaccbacccbabacaacbaacacaccbaccccaaacbcabacaabaccacbcacbccabbbbacbbcabaccabbabaccaacbbcaabacbccbbbbacbabaacaacccbcaabbccbbcaabbabccbcaacccbcaacbaacbbccbbbcbabaabaababcbaccbabbaacbabbcccbabaccbcbccbcbaacccaaacacbbbcbbcccabacbbbccbaabc...
output:
15624
result:
ok answer is '15624'
Test #47:
score: 35
Accepted
time: 1ms
memory: 3660kb
input:
hlhbhfqigdhcbocaokqdimjqjmlebepagmdkmkqgfhgdaambfdjpceefailflmbeeeicoipbqladfjfloeqgelbqeiibdbighflhngajgeebiniffkcigleiiilgnchlhjjmkmlngqbpchbjnlamjqcddebgiikoajpnkelcmcenipfecdcfjiikigfhjpodkialpgqodhaloookdanjdqikmgimfglqqgdnneohdghqlplcaaqlglafhpfagcemeingdomloagnjdllqhalkdniijhcalildbfgcincqgjn...
output:
2150
result:
ok answer is '2150'
Test #48:
score: 35
Accepted
time: 1ms
memory: 3672kb
input:
ceaeabfaefccdbcabfeafafaccbbebadffebaafbcfcafbcbefdcdbdeaebdaffadefbecffacfedfabdabdeccfafaecfcafbeeeabfadbdcaedeaaacdfabeabddbffaebbaceddbcdcbaaffeafbededfcecbeefbcadeeecadbceaacfdbbcdacffcbecbfdccebaebbbaacbaadafbaeddcbbdfaddfbedefcbffeafbaebedbaefcabefcbcaaebbffacecedbedcbfaaddefdbccaafdacdceffcd...
output:
5932
result:
ok answer is '5932'
Test #49:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
nirhbekjkmnjlridmghnoafphtqsptgakctalqibnsbtditcgaalqggmjmmrtdmttroqgtongmggedatjejbkjckmpqjgjkaienpmqefppsbhackarncrcrlenpmjmjcmiieiltotoiahsctbnnilpgakpnpmdobrqgsclonmlrkaeddbpdcaqetjhosjsohgodtestmmqklltoddlcdmcmkkkklgffpgjcgdktgrtgfdmnjdnmroemodhqsbaonpboblthacfslbebfhqsktreijheadhdbptjheojmlhjk...
output:
1822
result:
ok answer is '1822'
Test #50:
score: 35
Accepted
time: 0ms
memory: 18992kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
6352396311852
result:
ok answer is '6352396311852'
Test #51:
score: 35
Accepted
time: 1ms
memory: 3948kb
input:
aaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaaaaaaaaaaaazvbgpaaaaaaaaaaaaaaaazvbgpanxxdbraaaaaa...
output:
975744
result:
ok answer is '975744'
Test #52:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
aaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxaaaaaaaakwxjhztxxrfahaaaaaa...
output:
280584
result:
ok answer is '280584'
Test #53:
score: 35
Accepted
time: 1ms
memory: 3916kb
input:
aaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdaaaaaaaawsdjsjonbnqgjaaaaaa...
output:
291276
result:
ok answer is '291276'
Test #54:
score: 35
Accepted
time: 1ms
memory: 3692kb
input:
aaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbwscstuuaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbaaaaaaaaxqbw...
output:
283176
result:
ok answer is '283176'
Test #55:
score: 35
Accepted
time: 1ms
memory: 3888kb
input:
aaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaaaatlimrabqxqgaaaatliaaaatliaaaatliaaaatliaaaatliaaaatliaa...
output:
73287
result:
ok answer is '73287'
Test #56:
score: 35
Accepted
time: 1ms
memory: 3784kb
input:
aaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjrjkpgvkkxwtukjbkptwztgszvaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjaaaaaaaaynjr...
output:
276480
result:
ok answer is '276480'
Test #57:
score: 35
Accepted
time: 0ms
memory: 3952kb
input:
aaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubghpnrgkzzfhvsaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaaaautlubaaaaaaaaaaaaaa...
output:
1076053
result:
ok answer is '1076053'
Test #58:
score: 35
Accepted
time: 1ms
memory: 3784kb
input:
aaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyaaaaaaaaaaaaaaaarqhlyfomoymogmsaaaaaaaaaaaaaaaarq...
output:
1036728
result:
ok answer is '1036728'
Test #59:
score: 35
Accepted
time: 1ms
memory: 3696kb
input:
aaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagiesgepfslcyvcaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxagaaaayqwaaaayqwuxa...
output:
62748
result:
ok answer is '62748'
Test #60:
score: 35
Accepted
time: 0ms
memory: 3784kb
input:
aaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcbdhtpppqmmzjbltaaaaaaaanncaaaaaaaanncaaaaaaaanncaaaaaaaanncwzcabgcaaaaaaaanncaaaaaaaanncaaaaaaaa...
output:
265356
result:
ok answer is '265356'
Test #61:
score: 35
Accepted
time: 0ms
memory: 3716kb
input:
aaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwopjberhybpthqnaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaaaablbwoaaaaaaaaaaaaaa...
output:
1097349
result:
ok answer is '1097349'
Test #62:
score: 35
Accepted
time: 0ms
memory: 3792kb
input:
aalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgqmnnxaalvaalvaalvaalvaalvaalvaalvaalvgq...
output:
26364
result:
ok answer is '26364'
Test #63:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
aaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntataaaaaaaaaaaaaaaawntatucdtsmgjnpaaaaaaaaaaaaaaaawn...
output:
1022208
result:
ok answer is '1022208'
Test #64:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
aadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyzynwxaadxaadxaadxaadxaadxaadxaadxaadxyz...
output:
26976
result:
ok answer is '26976'
Test #65:
score: 35
Accepted
time: 1ms
memory: 3660kb
input:
aaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryaaaaaaaalryfwnoowhpuiaaaaaa...
output:
297648
result:
ok answer is '297648'
Test #66:
score: 35
Accepted
time: 1ms
memory: 3952kb
input:
aaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfaaaaaaaaehfhxxhdotjteaaaaaa...
output:
299808
result:
ok answer is '299808'
Test #67:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
aaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwnaaaaaaaaaaaaaaaamciwndqmdfcecdzaaaaaaaaaaaaaaaamc...
output:
1031525
result:
ok answer is '1031525'
Test #68:
score: 35
Accepted
time: 1ms
memory: 3948kb
input:
aaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvrojzjtgyzbbryzkaaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvraaaaaaaasvr...
output:
303804
result:
ok answer is '303804'
Test #69:
score: 35
Accepted
time: 1ms
memory: 3760kb
input:
aaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjaaaajmxaaaajmxaaaajmxaaaajmxjnhbhjsvtbeefofzfmaaaa...
output:
64683
result:
ok answer is '64683'
Test #70:
score: 35
Accepted
time: 1ms
memory: 3728kb
input:
aaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyoouhmfxwrcazcbbaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaaaajzyooaaaaaaaaaaaaaa...
output:
1089726
result:
ok answer is '1089726'
Test #71:
score: 35
Accepted
time: 1ms
memory: 3952kb
input:
xfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfenxfenxxfenxxfenxfenxxfenxfenxxfenxxfen...
output:
18736
result:
ok answer is '18736'
Test #72:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
boxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboxtiboboxtiboboxtiboxtiboboxtiboboxtiboxtibo...
output:
31221
result:
ok answer is '31221'
Test #73:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
jpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpkjpktgmjpktgmjpkjpktgmjpktgmjpkjpktgmjpk...
output:
7211
result:
ok answer is '7211'
Test #74:
score: 35
Accepted
time: 1ms
memory: 3720kb
input:
xjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxjacixxjacixjacixxjacixjacixxjacixxjacixjacixxj...
output:
15400
result:
ok answer is '15400'
Test #75:
score: 35
Accepted
time: 1ms
memory: 3952kb
input:
upyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyzjupyzjupyupyzjupyzjupyupyzjupyupyz...
output:
8263
result:
ok answer is '8263'
Test #76:
score: 35
Accepted
time: 1ms
memory: 3764kb
input:
gkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkktrlbigkkgkktrlbigkkgkk...
output:
54875
result:
ok answer is '54875'
Test #77:
score: 35
Accepted
time: 1ms
memory: 3676kb
input:
xlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxlxlqepxlxlqepxlqepxl...
output:
31221
result:
ok answer is '31221'
Test #78:
score: 35
Accepted
time: 1ms
memory: 3884kb
input:
xowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowxoxowxoxowxowxoxowxoxowxowxoxowxowx...
output:
45954
result:
ok answer is '45954'
Test #79:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
uidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuiduidltsuidltsuiduidltsuidltsuiduidltsuid...
output:
7211
result:
ok answer is '7211'
Test #80:
score: 35
Accepted
time: 1ms
memory: 3972kb
input:
itekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlititekrlitekrlititekrlitekrlititekrlititekrlitekrlititekrlitek...
output:
26901
result:
ok answer is '26901'
Test #81:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
qvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvytgqvytgqvyqvytgqvytgqvyqvytgqvyqvyt...
output:
8263
result:
ok answer is '8263'
Test #82:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
exkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleexkeleexkelexkeleexkelexkeleexkeleexkelexkeleex...
output:
56061
result:
ok answer is '56061'
Test #83:
score: 35
Accepted
time: 1ms
memory: 3668kb
input:
kepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepkekepkekepkepkekepkekepkepkekepkepk...
output:
45954
result:
ok answer is '45954'
Test #84:
score: 35
Accepted
time: 1ms
memory: 3764kb
input:
whdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdmiwhdmiwhdwhdmiwhdmiwhdwhdmiwhdwhdm...
output:
8263
result:
ok answer is '8263'
Test #85:
score: 35
Accepted
time: 1ms
memory: 3736kb
input:
dkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddkbqtcdkbqtcddkbqtcddkbqtcdkbqtcddk...
output:
13072
result:
ok answer is '13072'
Test #86:
score: 35
Accepted
time: 1ms
memory: 3784kb
input:
zwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjmwzwjmwzwjzwjmwzwjmwzwjzwjmwzwjzwjm...
output:
45954
result:
ok answer is '45954'
Test #87:
score: 35
Accepted
time: 1ms
memory: 3968kb
input:
pjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpjllpjpjllpjllpjpjllpjpjllpj...
output:
37179
result:
ok answer is '37179'
Test #88:
score: 35
Accepted
time: 1ms
memory: 3724kb
input:
iwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwoiwohroiwohroiwoiwohroiwohroiwoiwohroiwo...
output:
11666
result:
ok answer is '11666'
Test #89:
score: 35
Accepted
time: 0ms
memory: 18900kb
input:
knksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknknksknksknknksknksknknksknknksknksknknksknksknknksknknkskn...
output:
1195845561
result:
ok answer is '1195845561'
Test #90:
score: 35
Accepted
time: 1ms
memory: 3732kb
input:
bzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzebzbzebzbzebzebzbzebzbzebzebzbzebzeb...
output:
45954
result:
ok answer is '45954'
Test #91:
score: 35
Accepted
time: 0ms
memory: 3952kb
input:
horqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorqhorqhhorqhhorqhorqhhorqhorqhhorqhhorq...
output:
18736
result:
ok answer is '18736'
Test #92:
score: 35
Accepted
time: 0ms
memory: 18572kb
input:
wuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwuiuwuwuiuwuiuwuwuiuwuwuiuwu...
output:
1195983889
result:
ok answer is '1195983889'
Test #93:
score: 35
Accepted
time: 0ms
memory: 3728kb
input:
gbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssymgbsssymgbsgbsssymgbsgbsssy...
output:
35577
result:
ok answer is '35577'
Test #94:
score: 35
Accepted
time: 1ms
memory: 3764kb
input:
iksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksikiksikiksiksikiksikiksiksikiksiksi...
output:
45954
result:
ok answer is '45954'
Test #95:
score: 35
Accepted
time: 0ms
memory: 3956kb
input:
dtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgjdtgjddtgjddtgjdtgjddtgjdtgjddtgjddtgj...
output:
18736
result:
ok answer is '18736'
Test #96:
score: 35
Accepted
time: 1ms
memory: 3784kb
input:
lrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtrmdablrtlrtrmdablrtlrt...
output:
31968
result:
ok answer is '31968'
Test #97:
score: 35
Accepted
time: 1ms
memory: 3788kb
input:
omeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuomeuomomeuomeuomomeuomomeuom...
output:
37179
result:
ok answer is '37179'
Test #98:
score: 35
Accepted
time: 0ms
memory: 18584kb
input:
mimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimmimimmimimmimmimimmimimmimmimimmimm...
output:
853689483
result:
ok answer is '853689483'
Test #99:
score: 35
Accepted
time: 0ms
memory: 19976kb
input:
eleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeeleeeleeeeleeeeleeeleeeeleeeleeeeleeeelee...
output:
975625225
result:
ok answer is '975625225'
Test #100:
score: 35
Accepted
time: 1ms
memory: 3664kb
input:
eedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmeedmeeeedmeedmeeeedmeeeedmee...
output:
74358
result:
ok answer is '74358'
Subtask #2:
score: 65
Accepted
Dependency #1:
100%
Accepted
Test #101:
score: 65
Accepted
time: 7ms
memory: 6220kb
input:
jwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwjhtmjwjjwjhtmjwj...
output:
2832804
result:
ok answer is '2832804'
Test #102:
score: 65
Accepted
time: 8ms
memory: 6204kb
input:
lrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexlrexllrexllrexlrexllrexllrexlrexllrexlrexllrexllrex...
output:
535320
result:
ok answer is '535320'
Test #103:
score: 65
Accepted
time: 80ms
memory: 244700kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
148148592592925926
result:
ok answer is '148148592592925926'
Test #104:
score: 65
Accepted
time: 13ms
memory: 8504kb
input:
abbbbabbabaaaaaabaabbabaabbabbbbbbaabababaabbbababbbababaaababaabbabbaabbabaabbbaabaabbbbbbbaaabbbbbbaaaababbaaabbabaababbbaababaabbaababbaaaabbaaabbabaaaaabbbbbaaabbaaaabaababbabaaabbabaabaabaabbbbbbbbbbabaabbabbabbaabbaaaaabbaabaaababbbaabbbababbbbababaaabababaabbabaabbbaabaaaaaabaababbbababbbabba...
output:
1128537
result:
ok answer is '1128537'
Test #105:
score: 65
Accepted
time: 13ms
memory: 7308kb
input:
cabaccaaacbbbbbbccccbbaccababcbacbcaacacbbcbccacbbccccaccabbaccbcbbaabbbaaabaaaaccbabccccbbacbcabcbabbabaccaaccacabacccabccccbacbcbcbaacbcccaaacbbbccacaacaccbbbacbaacabbcaacbacacccabbcbbcaccabbbabcabaaabcaaababcabacbabacbcabccbaccabacbcabccacbcbbaacbcacabbcaaaabcaaacbaaaacbacacaaabcbcccbbcccccaccabb...
output:
448552
result:
ok answer is '448552'
Test #106:
score: 65
Accepted
time: 18ms
memory: 7348kb
input:
bcadcacbcbbdbbbdcddbababdcacdcdccbadccddadadabdbbacdbbadbbccadacdcadbccdbcdabbacddadddbdaadddcaccdbbddaadadcacddcccdccdcccdcbbacaaadcabdadcabcabbadcdaddcccccaaddcdcabbdddbbaddaddcbabdcaddaddbbdcccbcccbcddbdacbcbaabacaaddbadbcdadbcddbdacaacdadbaccdbdcbababbbbcccbbbccacaccbabdbcbcaabbcabdcdccccbcccbdb...
output:
250704
result:
ok answer is '250704'
Test #107:
score: 65
Accepted
time: 17ms
memory: 7532kb
input:
cbcdbbbdadeddeebdeceebecbacbedbabccbdaedcbdabdbaeedddcaaeeeecdbedddebecbbceabbdeedeecceeeaaddebebcbdaabdcccbeeadeaeebabebcaccbebaaadddcccbbbbedacbbbeaaaaccdcebdbdddeabadcacabddaadbbcdadaadadedbeadbeaeebcdeceabbecaddaeaababbceddeeeecbebaeeaabbcbddedeaeeaaeaaaebaeaaaababababcdbaddbcbcbeabedacacddbddeb...
output:
200964
result:
ok answer is '200964'
Test #108:
score: 65
Accepted
time: 12ms
memory: 7452kb
input:
bdaeabeacfcceaaebdcdfabeaeadfbecaefbfbfacdceaaedfbbcfbfcbcebcbdbfdafcaaceecaaacdafdbfeeaadcdbdcedbcffcadacdfeeaecbfddffafbbdcbddafddeaeeebdcfccbbffddcddbffdedcbeaffdaddecfbbbbeadbaacbdeeabedbdffccabdacbacfdabccceffebcafccbbffebaeeeafbaccdeaddfdfdaffabeebbfafdfbfdaeeebdacbedbcefffcfafbcefacfdaddfacad...
output:
167202
result:
ok answer is '167202'
Test #109:
score: 65
Accepted
time: 12ms
memory: 7396kb
input:
bfbdebfgfbeabcgdgfgdbceacffcbbecfbegefaeceadebdfbgdfdcebdaeecfdfefffbafgceaggacdedfbbgccbgcefebfdddbfafbfcebdgefdddbeddbgdefffaagecgcdfbbabeedcebdcgbfeccebceacffdbbegbfbdcbdfdagcdfeeagdbcfecedebfddeacegdccfgdggdacfagbdccgfaffcaabfdgbcfgccgadfcegfdcagbcbddagfdcdegdagabbcegeccafccbcdacfddgebbgcfgfeeec...
output:
143591
result:
ok answer is '143591'
Test #110:
score: 65
Accepted
time: 12ms
memory: 7420kb
input:
cbcbfgccdfecaachfagfhageeabccaedhaaabcbbeebhaechgbdhbhbfddfhgbfdbhbccacdggfhdbffgecffdgbbfacdafdahcdaahfbhfadeaddchcgcgdgfcceegehehcddecbgcdhehfddhcaedhdhbfbfghgfgccddbdfdhbgdbbcbaaegbaahfdcdfhbhedfechhbdghhbfedeffcfggeefhcghacgghecfafcgefcccdebfegeffdhhdghfcefedecefdecfgdhcbeacfceagdceeghefagafbcdh...
output:
125609
result:
ok answer is '125609'
Test #111:
score: 65
Accepted
time: 15ms
memory: 7400kb
input:
iibhhicgiefababhcfdgdgfbhfaeieicebceadddeeidicbgfeideaaihidffhabebdghghhhcfifhfiheafebebfehcdciaeahfigehihefegedhbffbcfgabcdfddcdcdegdfhidcdgiehgfchcfciidhhcdeagiheadefhfegfcdchcifgbiihbeececdcciacacchfchchdceagabaedefbbiafafaedagegcdadihhcddhhagibeggcdaicgbffifegeeiehhedaafiafaahecigdhbbaciebbcihfd...
output:
111691
result:
ok answer is '111691'
Test #112:
score: 65
Accepted
time: 12ms
memory: 7536kb
input:
ghfjfffahhjcffibfijbffcdjieihcbfhdgiiihgaedbbbbejdgcadebbfgbjjdfjccjidedicdgchjbccaehejgcdhbhecbgadaigfigjdgfdcihiggdiadcfjdjjiccibcbdjhgcjcffagfjejgcdfghfiffbbchjaejaibbgbagaegiafcbeffdehegdbgdibbjcjdbigddbdjgfcfejgijgajdcbdjfdeieheeigidjegebbhggcjiccaajebdgchecbfhaabhighiebffhfiijabbbehchhdiagbfaf...
output:
100298
result:
ok answer is '100298'
Test #113:
score: 65
Accepted
time: 15ms
memory: 7448kb
input:
ebkffdechjeggikjcigikihiabjeabifdeicffjhagakhcchgfbfjeiiefgcgidgdcbfkgeechbcgiiecaaabgghebkkgfkjdgefhadkgbhdegbaigeeajbheajhhfjbjbdkibcjigigicichcibjbahecafkdeahjhcfgibfhacddjihkgcbjbakkhbhbajaddhbfhidcjkgdfechajgbheejdgffddjffccedaccedjighgkbacfhchjgbkhhcjjakbhhcegccbaidhifbkjhbgjhfekebakahbdifjeeg...
output:
91269
result:
ok answer is '91269'
Test #114:
score: 65
Accepted
time: 7ms
memory: 7372kb
input:
cblbfflebclliaaegihadfcidhchelhebfbffcjclicgledbggfficgahcakkbcbkjlbjgjeelkfiedklccjbifdjcjfkegkjadgkbidefikcjikbkfbkecdchcjejkhiebchhggdcdhbigikllbhhafeijkjfjabdgjbbjkkebfifecfciljgalffdaddflagfebfhccfbicegjlighlihbchkihgefdibhglbhbegdcflekafkclhihlhjbagljgaalklbelihelagjlhjfcjccafbfiaecgjikjeekacj...
output:
84019
result:
ok answer is '84019'
Test #115:
score: 65
Accepted
time: 14ms
memory: 7380kb
input:
ajkelheffflcgeibfjjmmamkfmbchgjmighddcjadjbheelifbkhjebgjkhigddbigagichblliilcbefmlbbjckamlafiiieichelkfdiajafiamlmjgfbhjmkchigjcdjgkhjamihebdbkdegbmmhdjjajceefhkimkdljlkbkhkhhilfimjkfeikcgdkgjehaddicgejmjbccaalailfmimekfimggigfigakfimmdbgcbaaigcldkmfcjfglaehaaaelmajjemfbfehdfcaiblhljhfffflekldfgdck...
output:
77483
result:
ok answer is '77483'
Test #116:
score: 65
Accepted
time: 14ms
memory: 7528kb
input:
celcfehjelgbmlighjecmblmllafdbhcmngkekhnaaigbklbegafgnhahnmgdciiglimjidnegnhballbiclbckjegikggmnhikelkcdnclacndmfaigagcklcejccfnhmibnkekkbbjmhblcfjjhajgfblincngdagibhemcdbfngjlgegkmaldmkleaemklklmcifmeaaicdmcjdbbfkcdacbalklkkmghbkelbjehnmfjgjkcgmnlnibiiinmlldikfecjgimhndgcgffnglmdfbihhginfhnnmdjngkj...
output:
71704
result:
ok answer is '71704'
Test #117:
score: 65
Accepted
time: 11ms
memory: 7348kb
input:
jkaacaeheeegbnhkfccaalbbmiggbmimbhmcagjgafifbclgkebboaibbdllehdjhlkojakajjbllgcmnojfedjbfbcfdcidhhbfilkhfkgnbncgoboeadbliflchakahklbhnhbflncjimbklbmegjokdhonoagcndooiclbihfhnbllbgfiheecfbmhfjkbbecghlddmikgnkdciihnannoedbjbemjakfegonnnibbfmekellalhbodhjmgbbhcjndcmmginhahdjlkdjajangllgehgblgonblacmnjh...
output:
67081
result:
ok answer is '67081'
Test #118:
score: 65
Accepted
time: 14ms
memory: 7376kb
input:
mnkinpdmfhgogdkjlacmlgjniagdfnbjiigjhldpcgeekibcjkfhpdojhmiaodecgincgkpmepcghbphmpincghlpjdpibnnomgggoodahmllcekideplbacihkjhpbmbhpfadcngkafonkhgeenkplpoapihnbocjeoonoekmemiocnigffegbmdkkaokphjfphacgncohjpeidodoajlfcbeiboflmoigganddimkfjifbcgegfopbjbpileacoidabnlokkaohoclhgpjboliofehnemmdkgednbloele...
output:
62928
result:
ok answer is '62928'
Test #119:
score: 65
Accepted
time: 9ms
memory: 7188kb
input:
edklplibffiapddpclkfkabqgmeidgbhqpoqmqpbbiikagnqjmjgclgimlhalnnpklgjofmknnplmkokqdpodjpcilndfnnmjafogqmdghnmqphajcqojfhfqnqdpcnkgckifjnfjimqgdbdojhclgicldhdioaldloinkjflddmakkmhqoancjagffeeijqneocqcbmaphcmoagglbdpqpqddkccigfghaakghookkjenadooodbpipfheomnqaghoegffcaqmpignckhcledfcdalliihmloildjccifcq...
output:
59153
result:
ok answer is '59153'
Test #120:
score: 65
Accepted
time: 14ms
memory: 6964kb
input:
pdpbmcmafradmbelqjkrnedekmdnamkafjnllnkgbiaglcfhmiladhkgqppeficrnaqngcdcojhdmdrcifnflbolgjkpncncjirqlargkrflceqkjrpromkgdhngngcfffnqnjaomckeigoqhhlncammjffbajrdkdhamaanebcpfdciroaagblmclgfhhffareggbjibdfeipmcgkdoebgddjdpaerfpkhjogprogjjkhpkkjbrkiofncalaliogrdeononlihaqhcaproofdplpapkjbolmprljgjmcomo...
output:
56181
result:
ok answer is '56181'
Test #121:
score: 65
Accepted
time: 10ms
memory: 7032kb
input:
fldrqrddichoqlkbeicnjbqdrgndpihnhjcrepgfkgrakqsadeirjerhslhqaqdjafrnnqflfqgadhoolpprksqrqohmjekdngaqqegsorbmmmicbdicnahaairlrriamfmpfogprdgbimbfgdbmgfdmeeipgsspnncrlglsnbnpponrkqsqfeigahomqojqbcemmbddidjcmomhsoackicflcsjhhdeenhijrosrkhkcrjdlamermnnlsjhfsahgscscbskfqrmicsceoqegcehlieobonlkikdqfbbbflo...
output:
53046
result:
ok answer is '53046'
Test #122:
score: 65
Accepted
time: 11ms
memory: 6908kb
input:
iigioepemfdendcjhoikjkbmqcpdsqdcbarqrcamenctecpajdmfbsabaqaarctmpnandfestgjnhdbsokksljcsnfaemlpegfhfcnbpoopfqqfsifaojpmdoalpekdcfhmgrfdpatcfrbmlsffrkokfctqqsgbsqhkkcnprlikrlesjmqhdmcrejnsedieqrtqdqkostgqqggrphasiegkgcljmrqoirggrfrcjsgantphbfblorcbkfgtbjnmnspaiftebtbpoaiastmlcsoasboidrddbciffhonardch...
output:
50258
result:
ok answer is '50258'
Test #123:
score: 65
Accepted
time: 10ms
memory: 7448kb
input:
tgukkbdtlcmqrbrmroimjfjfkgagipjhmcetnqbbepkcfejqdsuhbtjfuhcqgnssjhpdtgegojtekqfgqamjlcrblsfljegfdukqijrcmnacjqumebkhokemmeiqeshseohihjseubtjkmkseocoiupepghtbulkanjofpqmcogesgbghpptiokcgfhclofiegrtriokfoajdkaodcsnddteobpplnhoioimchlmkqkgulikdokcsbintfninlqocselojgguboktpshpcgaticgpjntqfugdrsanmmkagmc...
output:
48082
result:
ok answer is '48082'
Test #124:
score: 65
Accepted
time: 11ms
memory: 7100kb
input:
gofskatgavmqhopgdduitcokqavlvgiceglfokrtcalchjckqiljrtsjtddnvfqgjlgcetsjdbptruclgvipptgsrtascpvtpeftuieunijoedtendteegubfuirfrpnoecrhopbdvugrefqtmbiashkkurgktldpopeuoafhnooaihrglooubemmtscvroulvfkbgdssjiblpahfchhdudjpglnpghukcesplmrfpsfpqkoiljinqaqspbshcceacnafdolireckcibajtdljgjbaffkcdvvumudbsasujm...
output:
45842
result:
ok answer is '45842'
Test #125:
score: 65
Accepted
time: 10ms
memory: 6996kb
input:
revervthrvdkwauhhnromjooeoctnpbvvmilwdeewltbmtjntegeoekwwrstoelbhvjobpeplbshjvdihdlegjidqvihhaapqgdfogokjignpmerpietrudcbrqgesibiteosmlinddsmwogfhigojrqnjoebpevurolkknsmotvlrbrjsksiiklnpwhlunrbguerhjhjbhnguasfmvihuumwbfgorecjacdnlvlibohwbjkscshgrmuissdprobarmnqoftggibqscnagbrdogvjbvjmithdfhsgcarvsem...
output:
44052
result:
ok answer is '44052'
Test #126:
score: 65
Accepted
time: 9ms
memory: 6240kb
input:
aaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpdthegndqiehepaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaaaajievpaaaaaaaaaaaaaa...
output:
30840117
result:
ok answer is '30840117'
Test #127:
score: 65
Accepted
time: 9ms
memory: 6316kb
input:
aaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvslovwurdrsdaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgaaaaaaaaiqgsafybzvaaaaaaaaiqgaaaaaaaaiqga...
output:
7354368
result:
ok answer is '7354368'
Test #128:
score: 65
Accepted
time: 9ms
memory: 6288kb
input:
aaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizaaaaaaaaaaaaaaaapyiizxwatnwjhzhaaaaaaaaaaaaaaaapy...
output:
29435670
result:
ok answer is '29435670'
Test #129:
score: 65
Accepted
time: 13ms
memory: 6340kb
input:
aaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvaaaaaaaahfvckufalnlyzaaaaaa...
output:
8396028
result:
ok answer is '8396028'
Test #130:
score: 65
Accepted
time: 6ms
memory: 6488kb
input:
aaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjaaaaaaaajbjfxnfcftnpfaaaaaa...
output:
112152033
result:
ok answer is '112152033'
Test #131:
score: 65
Accepted
time: 12ms
memory: 6288kb
input:
aaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabswkkpaeeaaaabswaaaabswaaaabswaaaabsw...
output:
1965708
result:
ok answer is '1965708'
Test #132:
score: 65
Accepted
time: 8ms
memory: 6420kb
input:
aaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjqxcxqzjuhvzaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaawzjaaaaw...
output:
2267928
result:
ok answer is '2267928'
Test #133:
score: 65
Accepted
time: 9ms
memory: 6420kb
input:
aaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkiuadbspfaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaaaahvkaa...
output:
2122308
result:
ok answer is '2122308'
Test #134:
score: 65
Accepted
time: 11ms
memory: 6236kb
input:
gffagfffdcfgegedfabgdggfedgbffggfeadbagecdeefffbebdggfedgbffbbeadcceggdfcegaaeecdcbbbcacgfbdggcffabbdcbbbcacgfebcgadeagbcedbebbgcebaffeadcgefdagaafeabbcddeaaeadeceadcdgbedccdaaadgdbbeadcceggafcdgdcfccgaebcdeddfeagecbeedgebcgadeagbdfcegaaeececeadcdgbefegfbafabgdcdddfagaeeffebcdbggefbdfcgebedggfedgbff...
output:
173974
result:
ok answer is '173974'
Test #135:
score: 65
Accepted
time: 11ms
memory: 6476kb
input:
deabafdbfcffddgcdffdccfdcgdeefefeadddfgbbabdcaedbgbadaadcbgbafcbbcafdcdbdfdgcbbebabdcaedbggafcbfadagccfdcgdeefcggccbgbcddbffbdfabecadceccdbcdfdacgfdabffddgcdffdacffdecbggegaacbeecabadaadcbgbccfdcgdeefgaebefbfbgafgdbgabcdbefdfefadaffddgcdffdgcfcgegdbgbgcdbbdggfafcbbcafdccadceccdbcfgdfbddfbeafgdbgabcd...
output:
171917
result:
ok answer is '171917'
Test #136:
score: 65
Accepted
time: 15ms
memory: 6360kb
input:
efaebfagebfeaadffcaagedcaddffcbdgaabdgbedfbcfbeeageffeffcbdfdacgebfeccffbggebefcegcgcdagdagegcdbbabbcfcdacgbcagegcdbbabbcfcdacgbcaggebbcddbaffaggdeccefdafgdcdeeeabfdebecbbgecbbaebaafbbddfgdbefaebfagebcbagagfdaafcagdabcefgedcaddffccfdccfggdbefgfebbfcaefaebfagebgaaeeaddeaagdacfcffffdafgdcdeeadgefaagce...
output:
168365
result:
ok answer is '168365'
Test #137:
score: 65
Accepted
time: 11ms
memory: 6396kb
input:
ddfcaccgddcfbgddcbgcbcgefadacdbaagaeecdgcdcdacbcfgfffgfaebbaaegebbaceegdbbdcbdddcfbgddcbgcbfbcgeeaabcfbgddcbgcedbffafbedececcgfabbbcgefadacdebfcedfadceadbcebecaaggfdggbfeeadbcebecafecgbgdddfacafffbddbddaegfaaafcdggbeggadabccddbgcfeegfcdfbdgcdbgagacccbabbagaegababcaaccebggcdcggabdcdcdacbcfgaedafgaceg...
output:
155588
result:
ok answer is '155588'
Test #138:
score: 65
Accepted
time: 15ms
memory: 6236kb
input:
beecffageffcbcbeaaceeffadaafedacdacdfgffegebffeggefefdbaaddfdbgbdabegagebacabaecgebffebdfbcgdgaffegegbccagfbacfbbcdbbebebecdecfaeacfdcbgbgggdbcegdebcfdagggbbffefcgccbegfbeadceeebfcdbcegdebcfccdgedfdfeddabecbedefcgcbafegcegegdfceafeffadaafeddddadagaedcfdcbgbgggcfaabefacafaabaeedeabfbcdgfdfbfcgccbegfb...
output:
170696
result:
ok answer is '170696'
Test #139:
score: 65
Accepted
time: 15ms
memory: 6400kb
input:
fbafeddecbgaebgfefddcbebgbbedeacgefcggdeeaafegacbbcbebgbbedeafcggcbfbgccgffgdffbcbecddeegdcageadbbbaggddfdbdacgbcefegbbbfgfdgcecafgbfgadeeggggafgdaddbeaafegacbbcdfgeeffdecdaebggcffegcbebabfabfagfebdcgdabfbfefcgabccbacbffdfcaacccefgeaffeegggabccbacbffbegegdagdbfdcbfaeaeaabeegbgcdaacaacfdbacccfgbgefef...
output:
168524
result:
ok answer is '168524'
Test #140:
score: 65
Accepted
time: 15ms
memory: 6304kb
input:
agdgfebgfbgbeabbffedaffcaagceeecdbaddbaeddadadfafdgagfabffdeddadadfafdgagfabffdecgcgcefbebgagfabffdefedcfdgbcgbffddedafabcgeabcdeeaegcebggfcbeddbagafcbebcggdfddafedcaadbeebffafecgbfbafcfagffeafgbafacadcbbdgdeeggagfabffdebeddbagafcgdbdfcecbggefacaaffbfcaacfegaccfbcdacfggbefgbddcabbgdacdgfadbbafgbfead...
output:
164232
result:
ok answer is '164232'
Extra Test:
score: 0
Extra Test Passed