QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#312570 | #4882. String Strange Sum | nowhk | AC ✓ | 466ms | 82624kb | C++20 | 6.6kb | 2024-01-24 00:25:04 | 2024-01-24 00:25:06 |
Judging History
answer
#include<bits/stdc++.h>
namespace ifzw{
#define ll long long
#define dd double
#define LL __int128
#define ull unsigned ll
#define siz(A) ((int)A.size())
using namespace std;
char gc(){static char buf[1<<16],*s,*t;if(s==t){t=(s=buf)+fread(buf,1,1<<16,stdin);if(s==t)return EOF;}return *s++;}
//#define getchar gc
ll read()
{
char c;
ll w=1;
while((c=getchar())>'9'||c<'0')if(c=='-')w=-1;
ll ans=c-'0';
while((c=getchar())>='0'&&c<='9')ans=(ans<<1)+(ans<<3)+c-'0';
return ans*w;
}
void pc(char c,int op)
{
static char buf[1<<16],*s=buf,*t=(buf+(1<<16));
(op||((*s++=c)&&(s==t)))&&(fwrite(buf,1,s-buf,stdout),s=buf);
}
void wt(int x)
{
if(x>9)wt(x/10);
pc('0'+x%10,0);
}
void wts(int x,char op)
{
if(x<0)pc('-',0),x=-x;
wt(x),pc(op,0);
}
char ST;
namespace TRIE
{
//为了方便,每层都开满也是可以的,为了好写,可以尝试说最下层开到 0 然后向上每次层 +1 。
//多一点。
//最高是第 0 层
//第 4 层是底层 (1e7层了)
//[ i 64, (i+1) 64 )
// << 6 = *64
//注意,upd 都传序号(该层的第 x 个)
// t 存的是当前这个点的 64 个儿子是否有 1 情况,各个儿子分别对应左移 6 + 0~63
ull lin[272158],*p;
ull *t[6];
int B=4;
void cls(int n)
{
++n;
B=0,p=lin;
int nw=1;
while(nw<=n)
t[B++]=p,p+=nw,nw*=64;
memset(lin,0,sizeof(lin[0])*(p-lin+1));
}
//当前改好了,更新上一层。
void upd(int x,ull s,int dep=B)
{
if(dep==0)return;//从扔信息的角度写
t[dep-1][x>>6]|=(s<<(x&63));
t[dep-1][x>>6]&=((-1ull)-((ull)(!s)<<(x&63)));
upd(x>>6,t[dep-1][x>>6]!=0,dep-1);
}
//有那么一点离谱,要上去再下来。
int Pr(int x,int s,int dep=B-1)
{
if(dep<0)return -1;
if(dep==B)return x;
if(t[dep][x]&((s==64?0:(1ull<<s))-1))return Pr(x<<6|(63-__builtin_clzll(t[dep][x]&((s==64?0:(1ull<<s))-1))),64,dep+1);
return Pr(x>>6,x&63,dep-1);
}
int Sf(int x,int s,int dep=B-1)
{
if(dep<0)return -1;
if(dep==B)return x;
if(s!=63&&t[dep][x]>>(s+1)<<(s+1))return Sf(x<<6|(__builtin_ctzll(t[dep][x]>>(s+1)<<(s+1))),-1,dep+1);
return Sf(x>>6,x&63,dep-1);
}
int one(int x){return t[B-1][x>>6]>>(x&63)&1;}
int Pr(int x){return Pr(x>>6,x&63);}
int Sf(int x){return Sf(x>>6,x&63);}
};
//vector 建边
const int xx=2e5+5;
struct nod
{
int siz,link,to[26];
}e[xx<<1];
int lst,cst,n,ed[xx<<1];
char s[xx];
void add(int x)
{
int now=++cst,p=lst;e[now].siz=e[lst].siz+1,lst=now;
while(p&&!e[p].to[x])e[p].to[x]=now,p=e[p].link;
if(!p)e[now].link=1;
else
{
// cerr<<"@\n";
int q=e[p].to[x];
if(e[q].siz==e[p].siz+1)e[now].link=q;
else
{
int s=++cst;e[s].siz=e[p].siz+1;
for(int i=0;i<26;i++)e[s].to[i]=e[q].to[i];
e[s].link=e[q].link;
e[q].link=e[now].link=s;
while(p&&e[p].to[x]==q)e[p].to[x]=s,p=e[p].link;
}
}
}
//vector 建边
vector<int>v[xx<<1];
int siz[xx<<1],son[xx<<1];
//虚点个数是 endpos 的虚树。
void dfs(int x,int y)
{
siz[x]=(ed[x]!=0),son[x]=0;
int mx=-1;
for(auto to:v[x])
{
dfs(to,x);
if(mx<siz[to])mx=siz[to],son[x]=to;
siz[x]+=siz[to];
}
// cerr<<x<<" "<<siz[x]<<" "<<son[x]<<"^\n";
}
vector<int>all;
void get(int x)
{
// cerr<<x<<"%\n";
if(ed[x])all.push_back(ed[x]);
for(auto to:v[x])get(to);
}
ll tdis;
int pr[xx];
vector<array<int,2> >lin[xx<<1];
//哪些 end 和 pr 是什么。
priority_queue<array<int,2>,vector<array<int,2> >,greater<array<int,2> > >q;
//len 时刻,哪个 end 被覆盖
//出来时记得清空
//不好处理删除对之后的影响,考虑在取元素时重新查询并加入堆。
ll ans;
void solve(int x,int len)
{
// cerr<<x<<"@@@\n";
//先处理 (len,end] 当前
int til=e[x].siz;
while(siz(q)&&q.top()[0]<=til)
{
ans+=(q.top()[0]-1-len)*tdis;
len=q.top()[0]-1;
int nt=len+1,id=q.top()[1];
// cerr<<nt<<"$\n";
q.pop();
if(pr[id]!=-1)
{
if(nt==1)
{
int to=TRIE::Pr(pr[id]);
tdis-=(id-1-pr[id]),pr[id]=to==id-1?pr[to]:id-1,tdis+=(id-1-pr[id]);
// cerr<<tdis<<" "<<id<<" "<<pr[id]<<" "<<nt<<" "<<to<<" "<<pr[id]<<"@\n";
to=TRIE::Pr(pr[id]);
if(to!=-1)q.push({pr[id]-to+1,id});
}
else
{
int to=TRIE::Pr(pr[id]);
if(to!=-1)
{
assert(to+nt-1<=pr[id]);
//有可能重复覆盖,重复覆盖也满足
if(to+nt-1<pr[id])q.push({pr[id]-to+1,id});
else
{
tdis-=(id-1-pr[id]),pr[id]=pr[to],tdis+=(id-1-pr[id]);
to=TRIE::Pr(pr[id]);
if(to!=-1)q.push({pr[id]-to+1,id});
}
//相等从左往右
}
}
}
}
// for(int i=0;i<=n;i++)cerr<<i<<" "<<pr[i]<<"#\n";
// cerr<<x<<" "<<tdis<<" "<<til<<"#sss\n";
ans+=(til-len)*tdis,len=til;
// cerr<<x<<" "<<son[x]<<"$%/"
if(!son[x])
{
priority_queue<array<int,2>,vector<array<int,2> >,greater<array<int,2> > >().swap(q);
tdis=0;int to;
while((to=TRIE::Sf(0))!=-1)TRIE::upd(to,0),pr[to]=-1;
}
else
{
for(auto to:v[x])
{
if(to==son[x])continue;
all.clear(),get(to);
for(auto it:all)lin[to].push_back({it,pr[it]}),tdis-=it-1-pr[it],pr[it]=-1,TRIE::upd(it,0);
}
if(ed[x])
{
int it=ed[x];
tdis-=it-1-pr[it],pr[it]=-1,TRIE::upd(it,0);
}
solve(son[x],len);
for(auto to:v[x])
{
if(to==son[x])continue;
for(auto [x,y]:lin[to])pr[x]=y,tdis+=x-1-pr[x],TRIE::upd(x,1);
for(auto [x,y]:lin[to])
{
int ty=TRIE::Pr(pr[x]);
if(ty!=-1)q.push({pr[x]-ty+1,x});
}
vector<array<int,2> >().swap(lin[to]);
solve(to,len);
}
}
// for(int i=0;i<=n;i++)cerr<<i<<" "<<pr[i]<<"AAA\n";
}
char ED;
int main(){
cerr<<abs(&ST-&ED)/1024./1024<<"\n";
// freopen("a.in","r",stdin);
//进入新子树之前重新清空,一个节点只会有一个 end。
TRIE::cls(2e5+5);
int T=read();
while(T--)
{
for(int i=1;i<=cst;i++)e[i]=e[0],ed[i]=0,v[i].clear(),lin[i].clear();
lst=cst=1;ans=0;
scanf("%s",s+1);
n=strlen(s+1);
for(int i=0;i<=n;i++)pr[i]=-1;
for(int i=n;i>=1;i--)add(s[i]-'a'),ed[lst]=i;
for(int i=2;i<=cst;i++)v[e[i].link].push_back(i);//,cerr<<i<<" "<<e[i].link<<"%%%%%%^%^\n";
dfs(1,0);
// cerr<<cst<<"$\n";
for(auto to:v[1])
{
all.clear(),get(to);
for(auto id:all)pr[id]=id,tdis--,q.push({1,id}),TRIE::upd(id,1);
// cerr<<siz(q)<<" "<<ed[2]<<" "<<ed[3]<<" "<<siz(all)<<"$\n";
//急了,应该从小到大相等时,他是非严格前驱。
solve(to,0);
// cerr<<"_____________\n";
// for(int i=0;i<=n;i++)cerr<<i<<" "<<pr[i]<<"#\n";
}
cout<<ans<<"\n";
}
pc('1',1);
return 0;
}
}signed main(){return ifzw::main();}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3980kb
input:
8 aa ab ababa abaaba abacaba abaaababaab aababcabcbc abcdabcabaabcd
output:
1 0 6 7 0 74 51 20
result:
ok 8 numbers
Test #2:
score: 0
Accepted
time: 28ms
memory: 3944kb
input:
100000 ff ki wb vc bb cq tt gl xb tt ll it bb yy dd yg tt vq gg ua ff nn aa yq ee ae sj yy cd qk vk ts tt cm rr yk sh fv vm rr tl vv bb rl jx pv tx ib dp oo lx jo bb dl sj sn db kk oo rk yy gz ff ha ja ax hn ww ms yy kf zz ss ii km uv mn si ng hh yq lq bq ed bb bw jj pp ss xg ff gm ee cc fn vv rc nn...
output:
1 0 0 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 0 1 0 0 0 0 1 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 0 1 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 1 0 1 1 1 0 1 0 1 1 0 1 0 1 0 0 1 1 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 1 0 0 1 0 0 0 1 1 1 0 0 1 0 1 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 0 1 ...
result:
ok 100000 numbers
Test #3:
score: 0
Accepted
time: 25ms
memory: 3988kb
input:
40000 nbbnn tttuu rfeer omhom qqcmq yyiyi tlttt jhjtj ixiyx bnnon iwpiw uzluz ffqfj dyddl szkss dauud dddiy gggtt ebbee uboob nnnnv rrjrj cjccj xnnyy mwmjw wyyyq vvuvp vyzyv sssss vvsvs rhxxr pkkpk xsxss ngncn wzwjz khkth jjjjj vvvbb unnxn aqlqq mmgmg iiiji lyllv luuuu itizt fsffs xggii jqqtj mummd ...
output:
4 11 2 0 4 7 4 0 0 3 0 0 4 2 1 2 10 11 4 2 16 7 4 4 0 7 4 0 20 7 2 3 5 0 0 0 20 11 3 1 7 10 2 10 0 4 4 3 2 3 4 6 1 4 10 3 6 10 10 16 7 7 0 10 5 0 2 16 0 6 1 0 1 2 5 2 5 6 20 10 0 8 10 3 16 7 0 8 4 3 0 1 7 0 2 4 4 5 3 7 2 4 16 4 1 8 10 7 4 3 4 4 6 2 2 4 6 2 4 5 4 3 10 5 0 4 16 2 3 0 3 4 1 1 4 4 11 2 ...
result:
ok 40000 numbers
Test #4:
score: 0
Accepted
time: 34ms
memory: 3952kb
input:
20000 iijjijiijj fxffxfffxx kkiiiiiiii oppopopppo iiooiioooi gggxxxxggg oxxoxxxoox puuuppupuu ppssspspps eefffeefff xxtxxxttxt yyppypyppp kkwwkkwwkk bvvvbvbbbv attataaaat boooobbobo hhhhfhhhff nnhhhnhhhh cdccccdccd axxxaxaxxa qqnnnnnqnq eeexxeeeex ppkkkkkkkp uusussusss iwiwiiwiii gglgllgggg wwwrrrwr...
output:
40 58 93 52 52 57 56 34 44 46 52 46 57 47 41 47 87 48 56 52 65 47 86 56 61 50 51 34 58 41 52 47 60 92 61 56 64 55 65 48 56 77 80 62 55 57 41 58 44 93 63 49 54 59 50 55 111 58 52 52 39 35 63 50 111 84 140 75 78 40 99 56 49 40 68 45 87 54 47 59 52 59 50 86 82 54 48 59 33 121 84 44 33 40 62 55 46 121 6...
result:
ok 20000 numbers
Test #5:
score: 0
Accepted
time: 48ms
memory: 3936kb
input:
10000 jlljjjlllljjjjljllll uooooouuouoouoooouuo utttutuuttuuuutttutu xccxxxccxxccccxcxxxc sjjsjjsjjssjjsssjjjs fgffffgfgggfgfgfffgf ddaaadaadadddadadaaa tbbbbttttttbtttbtbtt eeeeeekkkekeeeekeeke dddddmdmmmmdddmmddmm yykkkkykkykykkkkyykk ededeedddededeedddee kktttkktktkktkkkttkk fcfcfcffffcffcccccfc ...
output:
339 332 348 341 662 367 363 432 395 371 452 460 353 472 416 420 464 365 589 476 516 407 446 376 501 364 354 424 366 438 330 590 553 491 662 317 467 374 422 406 492 484 405 328 396 654 300 410 447 404 389 487 534 688 489 370 396 474 396 467 364 424 380 236 480 506 506 339 297 316 457 626 338 349 351 ...
result:
ok 10000 numbers
Test #6:
score: 0
Accepted
time: 69ms
memory: 4056kb
input:
4000 urrrrrrrrururrruruuuuuuuuruurruuruuuurrruurruurruu hthtthttthhhtttthhhhthhhhthhhttthtthhtthhtttttthhh ttssssssttsststttsttttssstsssstsstssttssststttstst iiniiiiiniinnniiniiiiniiiinnniiinniiininniinnnnnni dddpdpddpdpdppppdpdppdpdpddppppddddpdpdddppppdppdp mmmsmmmmsmmmmmmsmmmmsmmmmsssmmssmssmsmsm...
output:
5599 5287 4294 4818 5746 7893 3623 3453 5390 5812 5608 5541 6069 5655 3743 3847 4866 5059 3876 3925 5018 4379 5016 5747 5333 5271 3890 5894 5141 3773 4196 4880 5111 5510 4334 3825 6188 5960 4893 5359 4720 4167 4042 4051 5011 6457 3807 3837 4612 4859 5044 6861 4330 5967 5001 4857 4340 3957 4152 4230 ...
result:
ok 4000 numbers
Test #7:
score: 0
Accepted
time: 82ms
memory: 3976kb
input:
2000 ffffccfcfcfcfccffcccfcccfcfccfcccccfcfcccfccfcccccffffcccfcccffffffcffffccccffffffccffffcccfcccfcfff enneeenneneennnnneeeeeenenneeennnnneneneneenneenneennnnnnnnenennennnneneneneeenennnneennnenneennnnne mzmzmmzzmzzmzzmmzmmmzzmmmzzzzmmmzmmzzmzzmmmzzmzmzmmzzmmmmzmmmmmmzzmmmzmmmmzmmzmzmmzzmzmmmmmzm...
output:
32329 22810 31196 27570 28177 29004 24676 27293 26336 28196 28972 25095 34989 26711 26498 29643 24727 22723 31605 30180 43766 27097 25766 26819 28516 28122 34935 27399 33153 32281 26033 24708 41701 21704 24011 27481 26913 23270 31778 27676 25970 38135 25776 23316 44300 29424 24305 23476 29598 24423 ...
result:
ok 2000 numbers
Test #8:
score: 0
Accepted
time: 91ms
memory: 4060kb
input:
1000 udduuddduududddudduuduuuduuududdduuduuduudududdduuddddduuuuddduuuuudduddduuddddududduuduuuuuduuduudduuuuuuuddduuduuduuuudududduuuuududuudduduuduuduududddudududdududuududuudududdduddduuuuuuuuuuuddduduu kykykkykyykkykkkkkkyykkyyyyyykyyykkkyykkyykyyyykkykykkkykkykkkyyykyyyyykkkyyykykykkkkyyykkyyyy...
output:
153694 145776 132786 133300 133959 177645 148786 132135 169466 159430 133110 171068 168822 120233 160090 125272 130139 138522 163688 161504 146208 170689 149990 147133 129161 146576 129200 138709 133553 154659 136204 167106 167771 151156 129986 137285 131065 131582 159289 158241 141081 128564 167348...
result:
ok 1000 numbers
Test #9:
score: 0
Accepted
time: 137ms
memory: 6444kb
input:
200 zzzzzzzzzzzzzzzazzzazzzzzzzaazzaaaazaazzaazzazaazazazazzzazazaazzazzaazaaaazaaazzzzzazzzazzaaazzazzazazaazzzazaaaaaazzzaazzzazaazzzzzaaaazazazazzzzaaaaazaazzzzazzzazazaaazazzzaazaazazazzzzazaazaazaaaazzzzzazzazzzazzzzzzazzaazzzazzzzazzzzaaazzzaaazzzzzazzaazzzzazaazzaaaaazzazazzaaaaazzzzzaaazzazz...
output:
6229118 5438629 6162119 5350067 5263770 5443998 6419968 6592325 5876576 5249432 6397577 5947645 5851620 6059174 6048260 5774316 6323371 6103930 5794311 5297842 5559753 6109729 5724850 5095495 5263069 5635785 5916607 5959557 5261499 5446440 5526488 5504207 7229030 5767214 5191558 5475249 5537449 6169...
result:
ok 200 numbers
Test #10:
score: 0
Accepted
time: 180ms
memory: 10176kb
input:
20 nnnllllnlnnllllllllllllnnnnllnnlllnnnnnnnlnlnnlnllnnlnnnnnnnnnllllnlllnnnlnllnnnlnnllnnlnnllnnnllnlnllnllllnnnlllnllllnlnnllnllllnnlllnnnlllnlnnnnlllnnnlnlnnlnllnnlnllnlllllllnnnnnnnnlnnlllnlnnnllnlllllnlnnllnllllnnnnnnnnnlnnnnnnnnlnlnnnllllllnllnlllnnnlnllnllnnllllllllllnnllnllllnlllnlllnlnnnlll...
output:
894196857 938803119 931699133 881434935 917400222 988704236 829814492 910180484 875107867 927874072 861165839 857715013 907953346 879864017 925887954 884818843 920746630 936583374 887419288 927606368
result:
ok 20 numbers
Test #11:
score: 0
Accepted
time: 267ms
memory: 22288kb
input:
5 omomomommomommommoooommmommmoommmomommmoomoomoomomomoooommmmmmoomomomoommoooommommmooommomoomomommmmmmomooomoommomoommomoooooomoomomooommmommmmooooooomoooommmmomooomoommmmmomoooomommomomomommmomommmommoooomooommomooomoomoommmmmmmoomoommoomommommmmommmmmmmmmoooomomoooomoommmmoomooomomooommmmmoommom...
output:
17174226584 17605268588 18296766446 17539695533 18766633585
result:
ok 5 number(s): "17174226584 17605268588 18296766446 17539695533 18766633585"
Test #12:
score: 0
Accepted
time: 342ms
memory: 46252kb
input:
2 ddvddvvvvvddddvddddddddddddvvdvvvvvvvddvddddddddvvvvdvvddvvdvvvdvdddvdddvvvvdvvvvdvdvdvddvvvddvdvdddvdddvdvvdvvvvdvdvvvvvvdvdvvdddvdddvvvdddvvddvvvdvdddvdddvvdvvddvddvdvdvddvvvvvvdvdddvvddvdddvdddvdvvvvdvvvvdvvddvvvddvvdddvvddvdddvdvdvddvvvddvddvvddvddvvddddvdddvddvvvdvdvvvvvdvvvvddddvdddvddvdvvdd...
output:
132896961339 129565821251
result:
ok 2 number(s): "132896961339 129565821251"
Test #13:
score: 0
Accepted
time: 179ms
memory: 42348kb
input:
1 aaaattttattataatattaatattatttatatataaaaaaaattttttaaaaataatttattaaaaaatttttataataataaattttatattatattaaaaatttaaatatatttataaattaatatatataaatataaataaattttattttattaaaatttataaaaatattaattataaaattattaaaatttataaaatataaataatatataaattttaaaaatattaattattattaaaaaaaataatttaataaatattataattaattattaataataatattatatt...
output:
119827510026
result:
ok 1 number(s): "119827510026"
Test #14:
score: 0
Accepted
time: 417ms
memory: 80680kb
input:
1 wzwzzzwzzzwzwwzzwzzzwzzwzzzzwwzzzzzzwzzwzwzzwzwwzwzzwzzwwwwwwwzwzwzzzwzzzwwwwwwzwwwzzzwwwzzwwzwzwzzwzwzwwwwzwzwzzzzwwzwzzzwwwzwwzzwwzzzwzzzzzwwwzzzzwwwwwwzwwzzzwzwzzzwwwzwzzzzzwzwzzwwwwzwwzwzzzzwwwwwwwzwwzzwzwzwwwzwwwwwwzzzwwzzwwzzzzzzzwzzzwwwzwwwzzwwzzzzwzzzwzzwzwzwwwwzzwwwzwzwzwzzwzzzzzwwwwwzwww...
output:
554193679678
result:
ok 1 number(s): "554193679678"
Test #15:
score: 0
Accepted
time: 392ms
memory: 80664kb
input:
1 eeeewweeewwweeeewewweweeweeeewweweeewweeewweewwwewwewwwewwewwwewewewwweewwwwweeeweweeeeeeewweewweewwwewwweweeeweweweeweeewwwwewweweewwewwwweeweeeewwwwewewwwewwwwewwewwewewwwwwweeweewweewweeewwwwewewewewwwwwweweeewwwwwewwwwweeewweeweewewwweewweeeewwewewewewweeeewwweweewewwwwewwwwwwwewwweeeeeewewewe...
output:
529663865648
result:
ok 1 number(s): "529663865648"
Test #16:
score: 0
Accepted
time: 393ms
memory: 80696kb
input:
1 vvvvvaaavavaaavaavavvavaaaavavavaaaaavavvvvvvavvvvvaaaavvvvavaaavvvaavaaavavaaaavvvvvvavavaavvaavvvaavvvaavvvaaaaaavavavavvaavavvavavvvvvaavvavavvvavavvvvavavvaaavvvvavvvvvvaavvavvvaavvavaavvvvavvaaaaavvvaavvaaaaavaavvavvvaavavaaaavaavvaavvavvavvavvvvvaavvvavvaaavaavavaaavavavvaavaavavaavavvavvvaa...
output:
556151200408
result:
ok 1 number(s): "556151200408"
Test #17:
score: 0
Accepted
time: 433ms
memory: 80684kb
input:
1 lslsslslssslllllslssllsssllllslllsllssllslllsslslslssllssslsssllsllslllllsssssllslslssslllslssslssslsslsllssllssslllllslslslsslssssssslsllslssslsslslllsssssslsslslslllslsssllsssslsllsssslssllslsllsllsssllslslllsslsllslsssslsssslslslsssllsslllsssssslsssllssllslllsllssslsssslllslslllllsslllsllsllsll...
output:
528149019431
result:
ok 1 number(s): "528149019431"
Test #18:
score: 0
Accepted
time: 319ms
memory: 69608kb
input:
1 lllrllalaalllalaaraarlaralaaaalaarrrrralllllaarllllaarrlllalalrrlaarllraaaalrarrarrrlallrlaralraarlrrraallralrrlaraallralarrallarrrrarlllrrrarrlllllaaarlaararrlalalraallrlararalallalrrlrlrarlrraararrarllaaaaallalrlaaarllraaaalraalaarrrralllrlalalralalrrllrrallarllalraaalralrrlalrlarrralrlrrraraaal...
output:
22333600841
result:
ok 1 number(s): "22333600841"
Test #19:
score: 0
Accepted
time: 281ms
memory: 64220kb
input:
1 iixvjvjjijijiijvvxjvxvjjjjjiixijvvxxvjxvvvivxixjixiivivijjiixvxvixxvvjjxiijvixjivjvxixxivxvxxjiixjxivjvivivjxxxjxiiviijjxxvxiijjvxxjjvjvjxixivxxjijjiiivjvvvjiijijxvvivivxixiijjvxxvxxvjjijjjjvvxjxxvjxixvvjijivjjjviixviivijvjjjvjjxvjjxiivxxxjxxjvxxvjxijjxxvxjjvvvvjivxjvjvxxiivvvxiivijxxjxjxjxvivvvxv...
output:
11581008357
result:
ok 1 number(s): "11581008357"
Test #20:
score: 0
Accepted
time: 48ms
memory: 82624kb
input:
1 llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...
output:
1333333333300000
result:
ok 1 number(s): "1333333333300000"
Test #21:
score: 0
Accepted
time: 23ms
memory: 3864kb
input:
10000 voovvoovvoovvoovvoov iiifiiifiiifiiifiiif cccccccccccccccccccc ffaaffaaffaaffaaffaa vvvvvvvvvvvvvvvvvvvv pppppppppppppppppppp eeeeeeeeeeeeeeeeeeee rttrrttrrttrrttrrttr ifffifffifffifffifff auaaauaaauaaauaaauaa ygygygygygygygygygyg sooosooosooosooosooo qyqyqyqyqyqyqyqyqyqy bnbbbnbbbnbbbnbbbnbb ...
output:
730 867 1330 772 1330 1330 1330 730 820 765 1050 820 1050 765 1330 772 772 795 730 765 730 1050 1330 820 1330 730 1330 820 765 795 730 765 765 795 772 765 730 772 867 1330 730 772 730 765 1330 730 1050 867 730 765 867 730 795 765 765 730 1050 820 1330 765 1330 730 795 1330 730 765 820 765 1050 765 1...
result:
ok 10000 numbers
Test #22:
score: 0
Accepted
time: 49ms
memory: 4024kb
input:
1000 dwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwddwwwddwdwwdwwd nnununuuunnuuunnununuuunnuuunnununuuunnuuunnununuuunnuuunnununuuunnuuunnununuuunnuuunnununuuun...
output:
1081353 1118393 1088918 1090191 1116529 1064770 1075776 1129102 1074591 1115280 1162865 1087780 1074274 1052530 1096934 1118610 1088713 1115380 1131098 1078760 1083054 1105100 1079841 1078832 1097238 1117021 1076154 1121333 1084532 1166455 1089413 1138232 1124277 1088094 1074886 1136986 1105960 1128...
result:
ok 1000 numbers
Test #23:
score: 0
Accepted
time: 130ms
memory: 9716kb
input:
10 iwwiwiwiwiwwiwwiwiwiiwwwwwiwiiiwwiiwwwiwwwwiiwwwiiiwwwwwiwwwwiwiiwiiwwiiwwiiwwwwwwwwiwwiiiwwiiwiwiwwiiiiiwiwiwwiiwwwwwwiwiwiwwiiiiiwwwiwwiiiwiwwiwiwiwiwwiwwiwiwiiwwwwwiwiiiwwiiwwwiwwwwiiwwwiiiwwwwwiwwwwiwiiwiiwwiiwwiiwwwwwwwwiwwiiiwwiiwiwiwwiiiiiwiwiwwiiwwwwwwiwiwiwwiiiiiwwwiwwiiiwiwwiwiwiwiwwiww...
output:
1295376087708 1295178117419 1295587801659 1295313428121 1296115944696 1295231802325 1295170936996 1295379554897 1295313977212 1295364009371
result:
ok 10 numbers
Test #24:
score: 0
Accepted
time: 344ms
memory: 44096kb
input:
1 ngngggngggngnnggngggnggnggggnnggggggnggngnggngnngnggnggnnnnnnngngngggngggnnnnnngnnngggnnnggnngngnggngngnnnngngnggggnngngggnnngnnggnngggngggggnnnggggnnnnnngnngggngngggnnngngggggngnggnnnngnngnggggnnnnnnngnnggngngnnngnnnnnngggnnggnngggggggngggnnngnnnggnnggggngggnggngngnnnnggnnngngngnggngggggnnnnngnnn...
output:
1320450315151483
result:
ok 1 number(s): "1320450315151483"
Test #25:
score: 0
Accepted
time: 291ms
memory: 41696kb
input:
1 vvvfvvrvrrvvvrvrrfrrfvrfrvrrrrvrrfffffrvvvvvrrfvvvvrrffvvvrvrvffvrrfvvfrrrrvfrffrfffvrvvfvrfrvfrrfvfffrrvvfrvffvrfrrvvfrvrffrvvrffffrfvvvfffrffvvvvvrrrfvrrfrffvrvrvfrrvvfvrfrfrvrvvrvffvfvfrfvffrrfrffrfvvrrrrrvvrvfvrrrfvvfrrrrvfrrvrrffffrvvvfvrvrvfrvrvffvvffrvvrfvvrvfrrrvfrvffvrvfvrfffrvfvfffrfrrrv...
output:
1320037988306839
result:
ok 1 number(s): "1320037988306839"
Test #26:
score: 0
Accepted
time: 160ms
memory: 40296kb
input:
1 vqducvmoheimtxbtezzhinvgpltrtlgdacurdwpddmybmtvlyzxedvvximthlnpphlfnpjfrwofqwcsiyllrpeotqjpjpwcuohpkakdwedioksrzmzzyalfmvsitadyvltamltccnakjcnchmcycwmllrxnpsrpfafaogkbjpnxpufizpdvyosypyfyfddhebgunajssmtzzpenvsitafxvjonoyaaskglenhvfamuzqxtntcxcqoupkmutslthtdowxaqzvmpgiqsuvuyditcbaxhigdrfhcokapnjqpp...
output:
1319998788614514
result:
ok 1 number(s): "1319998788614514"
Test #27:
score: 0
Accepted
time: 379ms
memory: 63984kb
input:
1 jjbjjbpjjbjjbpejjbjjbpjjbjjbpesjjbjjbpjjbjjbpejjbjjbpjjbjjbpescjjbjjbpjjbjjbpejjbjjbpjjbjjbpesjjbjjbpjjbjjbpejjbjjbpjjbjjbpesczjjbjjbpjjbjjbpejjbjjbpjjbjjbpesjjbjjbpjjbjjbpejjbjjbpjjbjjbpescjjbjjbpjjbjjbpejjbjjbpjjbjjbpesjjbjjbpjjbjjbpejjbjjbpjjbjjbpescznjjbjjbpjjbjjbpejjbjjbpjjbjjbpesjjbjjbpjjbjj...
output:
405176488446365
result:
ok 1 number(s): "405176488446365"
Test #28:
score: 0
Accepted
time: 197ms
memory: 10852kb
input:
10 ccjccjuccjccjutccjccjuccjccjutvccjccjuccjccjutccjccjuccjccjutvbccjccjuccjccjutccjccjuccjccjutvccjccjuccjccjutccjccjuccjccjutvbyccjccjuccjccjutccjccjuccjccjutvccjccjuccjccjutccjccjuccjccjutvbccjccjuccjccjutccjccjuccjccjutvccjccjuccjccjutccjccjuccjccjutvbypccjccjuccjccjutccjccjuccjccjutvccjccjuccjc...
output:
427679431877 427679431877 427679431877 427679431877 427679431877 427679431877 427679431877 427679431877 427679431877 427679431877
result:
ok 10 numbers
Test #29:
score: 0
Accepted
time: 107ms
memory: 4512kb
input:
100 yyeyyeayyeyyeasyyeyyeayyeyyeasmyyeyyeayyeyyeasyyeyyeayyeyyeasmgyyeyyeayyeyyeasyyeyyeayyeyyeasmyyeyyeayyeyyeasyyeyyeayyeyyeasmghyyeyyeayyeyyeasyyeyyeayyeyyeasmyyeyyeayyeyyeasyyeyyeayyeyyeasmgyyeyyeayyeyyeasyyeyyeayyeyyeasmyyeyyeayyeyyeasyyeyyeayyeyyeasmghbyyeyyeayyeyyeasyyeyyeayyeyyeasmyyeyyeayye...
output:
337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 337450031 ...
result:
ok 100 numbers
Test #30:
score: 0
Accepted
time: 385ms
memory: 63988kb
input:
1 qqeqqelqqeqqelrqqeqqelqqeqqelrvqqeqqelqqeqqelrqqeqqelqqeqqelrvbqqeqqelqqeqqelrqqeqqelqqeqqelrvqqeqqelqqeqqelrqqeqqelqqeqqelrvbmqqeqqelqqeqqelrqqeqqelqqeqqelrvqqeqqelqqeqqelrqqeqqelqqeqqelrvbqqeqqelqqeqqelrqqeqqelqqeqqelrvqqeqqelqqeqqelrqqeqqelqqeqqelrvbmxqqeqqelqqeqqelrqqeqqelqqeqqelrvqqeqqelqqeqq...
output:
405176488446365
result:
ok 1 number(s): "405176488446365"
Test #31:
score: 0
Accepted
time: 386ms
memory: 63956kb
input:
1 zznzznwzznzznwbzznzznwzznzznwbrzznzznwzznzznwbzznzznwzznzznwbrxzznzznwzznzznwbzznzznwzznzznwbrzznzznwzznzznwbzznzznwzznzznwbrxezznzznwzznzznwbzznzznwzznzznwbrzznzznwzznzznwbzznzznwzznzznwbrxzznzznwzznzznwbzznzznwzznzznwbrzznzznwzznzznwbzznzznwzznzznwbrxeizznzznwzznzznwbzznzznwzznzznwbrzznzznwzznzz...
output:
405176488446365
result:
ok 1 number(s): "405176488446365"
Test #32:
score: 0
Accepted
time: 333ms
memory: 51944kb
input:
1 aaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpbaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpbraaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpbaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpbrzaaoaaoxaaoaaoxwaaoaaoxaaoaaoxwpaaoaaoxaaoaa...
output:
497781730884919
result:
ok 1 number(s): "497781730884919"
Test #33:
score: 0
Accepted
time: 338ms
memory: 51892kb
input:
1 xxexxecxxexxeckxxexxecxxexxeckfxxexxecxxexxeckxxexxecxxexxeckfpxxexxecxxexxeckxxexxecxxexxeckfxxexxecxxexxeckxxexxecxxexxeckfpdxxexxecxxexxeckxxexxecxxexxeckfxxexxecxxexxeckxxexxecxxexxeckfpxxexxecxxexxeckxxexxecxxexxeckfxxexxecxxexxeckxxexxecxxexxeckfpdqxxexxecxxexxeckxxexxecxxexxeckfxxexxecxxexx...
output:
497781730884919
result:
ok 1 number(s): "497781730884919"
Test #34:
score: 0
Accepted
time: 353ms
memory: 47044kb
input:
1 iiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmeiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmehiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmeiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmehaiiwiiwfiiwiiwfbiiwiiwfiiwiiwfbmiiwiiwfiiwii...
output:
807861657180251
result:
ok 1 number(s): "807861657180251"
Test #35:
score: 0
Accepted
time: 466ms
memory: 42024kb
input:
1 oopoopdoopoopdzoopoopdoopoopdzgoopoopdoopoopdzoopoopdoopoopdzgvoopoopdoopoopdzoopoopdoopoopdzgoopoopdoopoopdzoopoopdoopoopdzgvroopoopdoopoopdzoopoopdoopoopdzgoopoopdoopoopdzoopoopdoopoopdzgvoopoopdoopoopdzoopoopdoopoopdzgoopoopdoopoopdzoopoopdoopoopdzgvrwoopoopdoopoopdzoopoopdoopoopdzgoopoopdoopoo...
output:
1292889259936437
result:
ok 1 number(s): "1292889259936437"
Test #36:
score: 0
Accepted
time: 362ms
memory: 41992kb
input:
1 iiaiiajiiaiiajeiiaiiajiiaiiajeciiaiiajiiaiiajeiiaiiajiiaiiajecliiaiiajiiaiiajeiiaiiajiiaiiajeciiaiiajiiaiiajeiiaiiajiiaiiajeclviiaiiajiiaiiajeiiaiiajiiaiiajeciiaiiajiiaiiajeiiaiiajiiaiiajecliiaiiajiiaiiajeiiaiiajiiaiiajeciiaiiajiiaiiajeiiaiiajiiaiiajeclvpiiaiiajiiaiiajeiiaiiajiiaiiajeciiaiiajiiaii...
output:
1328201924096597
result:
ok 1 number(s): "1328201924096597"
Test #37:
score: 0
Accepted
time: 155ms
memory: 43116kb
input:
1 yygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygyygvyygyygvouyygyygvyygyygvoyygy...
output:
1332701853158829
result:
ok 1 number(s): "1332701853158829"
Test #38:
score: 0
Accepted
time: 93ms
memory: 47796kb
input:
1 hhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfhhfkhhfh...
output:
1333199053599917
result:
ok 1 number(s): "1333199053599917"
Test #39:
score: 0
Accepted
time: 346ms
memory: 82128kb
input:
1 cxcxccxcxcxccxcccxccccxcxccxcccxcccxcxccxccccxcxccxcccxcccxcxccxcccxccccxcxccxccccxcxccxcxcxccxcccxccccxcxccxcccxcccxcxccxccccxcxccxcccxcccxcxccxcccxccccxcxccxcccxcccxcxccxccccxcxccxcccxccccxcxccxcccxcccxcxccxccccxcxccxcccxccccxcxccxcccxcccxcxccxcxccxcccxcccxcxccxcccxcxccxcccxcccxcxccxccccxcxccxcc...
output:
532325876704019
result:
ok 1 number(s): "532325876704019"
Test #40:
score: 0
Accepted
time: 329ms
memory: 82048kb
input:
1 aqaqaqaqaaqaaqaqaqaqaaqaqaaqaqaaaaqaaqaqaaqaqaqaqaaqaqaaqaqaaaaqaaqaqaaqaqaaqaqaaaaqaqaaaqaqaaqaqaaaaaqaqaqaqaaqaaqaqaqaqaaqaqaqaqaqaqaaqaaqaqaqaqaaqaqaaqaqaaaaqaaqaqaqaqaqaqaaqaaqaqaqaqaaqaqaaqaqaaaaqaaqaqaaqaqaqaqaaqaqaaqaqaaaaqaaqaqaaqaqaaqaqaaaaqaqaaaqaqaaqaqaaaaaqaqaqaqaaqaaqaqaqaqaaqaqaqaqaq...
output:
489819092586073
result:
ok 1 number(s): "489819092586073"
Test #41:
score: 0
Accepted
time: 340ms
memory: 79384kb
input:
1 zzzzjzjjzzzzjzjjzzzzzzzjzjzzzzjzjjzzzzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzzzzzjzjjzzzzjzjjzzzzzzzjzjzzzzjzjjzzzzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzzzzzjzjjzzzzzzzjzjjzzzzjzjjzzzzzzzjzjzzzzjzjjzzzzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzjzjjzzzzzzzzjzjjzzzzjzjjzzzzzzzjzjzzzzjzjj...
output:
390591892081557
result:
ok 1 number(s): "390591892081557"
Test #42:
score: 0
Accepted
time: 373ms
memory: 78736kb
input:
1 ddgddgdgdgdgdggdddggdggggddgddggggdgddgdggddggdggddgddgdgdgdgdggdddggdggggddgddggggdgddgdggddggdddgddgdgdgdgdggdddggdggggddgddggggdgddgdggddggdggddgddgdgdgdgdggdddggdggggddgddggggdgddgdggddggdggdgdgdggdddddgdddgggdggddggdgdddgdgddggddddgddgdgddggdgdgdggggddddgddgdgdgdgdggdddggdggggddgdddgddddgddgd...
output:
88340030443020
result:
ok 1 number(s): "88340030443020"
Test #43:
score: 0
Accepted
time: 365ms
memory: 78736kb
input:
1 bbbbllblblllbllbllblbbllblbllbblblblbblblllblllblllblbllbbbbbllllblllbbblllbllbbbblblbblbllbbbblbllbbbllbbbbbbbbbbbbbbbbllblblllbllbllblbbllblbllbbbbbbllblblllbllbllblbbllblbllbblblblbblblllblllblllblbllbbbbbllllblllbbblllbllbbbblblbblbllbbbblbllbbbllbbbbbbbbbbbbbbbbllblblllbllbllblbbllblbllbblblb...
output:
21558624570815
result:
ok 1 number(s): "21558624570815"
Test #44:
score: 0
Accepted
time: 390ms
memory: 80216kb
input:
1 smmsmsmssmmssmmmssmssmmsmmmmmmsmmmssmmsssmssmmsmmsmmsssmsmsmmssssmmmmmmsmsmsmsmsmmssssmmmmsmsssmmsssmsmmmsmssmsssmmmsmmmmsssmsmmmmmssssssssmmmssssmmmmmmsssmsmmsmmmmsssmmmmmmmmsmmmsmssmmsmmssmmmssmmssmmsmsmmssmsmsmsmmmssmsmsssmssssmssmssmsmsmsmsmmmmsmmssmsssmsssmssmssmmsmmsssmmsssssmmsmmsmssmsmmmms...
output:
3080126774871
result:
ok 1 number(s): "3080126774871"
Test #45:
score: 0
Accepted
time: 348ms
memory: 71156kb
input:
1 pqpppppqqqqqpqqpppqqqqpqpqqppqqppqqqppqqqqqppqqppqpqppqppqqpppppqppppqqppppqpppqppqpqpqqppppqqpqqppppqpqqpppqqpqpppqqpqqqppqqqpqppqqqqqqqqqpppqqqqqqpqppqppqqpqppqqpqpqpqppppqqqqpqpqqqqqpqqpppqqppqqpqqqqqpqqppqpqqpqqqqqqpppqppqppqqqpqqpqqqqqpqppppqqpqpqqppppqqqqqpqqppppqqqqppqpqqqpqpqqppqqppqqqqpqq...
output:
859785574356
result:
ok 1 number(s): "859785574356"
Test #46:
score: 0
Accepted
time: 329ms
memory: 81136kb
input:
1 sjsjsjssjsjsjsjsjsjsjsssjsjssjssjsjsjsjssjsjsjssjsjsjsjsjssjsjssjsjssjssjsjsjssjssjsjsjssjsjsjsjsjsjssjssjsjsjssjssjsjssjsjsjsjssjsjsjsjssjsjsjsjsssjsjsjssjsjsjsssjsjsssjsjssjssjsjssjssjsjsjssjssjsjsjssjsjsjsjssjsjsjssjsjssjsjssjsjssjsjsjssjssjsjsjssjsjsjsssjsjsjssjssjsjsjssjsjsjssjsjsjsjssjsjsjsj...
output:
535123487680607
result:
ok 1 number(s): "535123487680607"
Test #47:
score: 0
Accepted
time: 323ms
memory: 82048kb
input:
1 vrvrvvrvrvrvrvvvvrvrvrvvrvrvrvrvvvvrvrvrvrvrvrvvvvrvrvrvrvvvrvrvrvvrvrvrvrvvvvrvrvrvrvvvrvrvrvvrvrvrvrvrvvvvrvrvrvrvvvrvrvrvvrvrvrvrvvvvrvrvrvrvvvrvrvrvrvvrvrvrvrvvrvvrvrvrvrvvrvrvrvrvvrvvrvrvrvrvvrvrvrvrvrvvrvrvrvrvrvrvvrvvrvrvrvrvrvrvvrvvrvrvrvrvrvrvvrvvrvrvrvrvrvvrvrvvrvvrvrvrvrvrvvrvrvvrvrvrvr...
output:
532834873916524
result:
ok 1 number(s): "532834873916524"
Test #48:
score: 0
Accepted
time: 315ms
memory: 81732kb
input:
1 xzxzxxxxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxzxxzxzxxxxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxxzxzxxxxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxzxxzxzxxxxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxzxxzxzxzxxxxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxzxxzxzxxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxzxxzxzxxzxzxzxxxzxzxxzxzxxzxzxxzxzxxzxzxzxxzxzxxzxzxxxzxzxxzxz...
output:
543877851845068
result:
ok 1 number(s): "543877851845068"
Test #49:
score: 0
Accepted
time: 320ms
memory: 81284kb
input:
1 duddudududduddudududududududududduddudududduddududududududududududduddududududdudududduddududududududududududduddudududduddududududududududududududdudududududdududududududududduddudududduddududududududududududududdudududdudududduddudududududududududduddudududduddududududududududududduddududududdud...
output:
383753618060522
result:
ok 1 number(s): "383753618060522"
Test #50:
score: 0
Accepted
time: 274ms
memory: 79000kb
input:
1 pupuuupuuujrpupuuupuuupuuujrpupupupupuuupuuujrpupuuupuuupuuujrpupupuuupuuujrpupupuuupuuujrpupuuupuuupuuujrpuppupuuupuuujrpupuuupuuupuuujrpupupuuupuuujrpupupupuuupuuujrpupuuupuuupuuujrpupupuuupuuujrpupupuuupuuujrpupuuupuuupuuujrpuppupuuupuuujrpupuuupuuupuuujrpupupuuupuuujrpupupuuupupuuupuuujrpupuuu...
output:
83495817302527
result:
ok 1 number(s): "83495817302527"
Test #51:
score: 0
Accepted
time: 268ms
memory: 78048kb
input:
1 cgvcgvcgvcgvpfghxjcgvcgvpfghxjezcgvcgvpfghxjcgvcgvpfghxjezthvmijtclnqdcgvpfghxjezthvmijtclnqdcsiabaeklvpotstfhwzucsuoftiuyxwxgwwuycgvcgvpfghxjcgvcgvpfghxjezcgvcgvpfghxjcgvcgvpfghxjezthvmijtclnqdcgvccgvcgvpfghxjcgvcgvpfghxjezcgvcgvpfghxjcgvcgvpfghxjezthvmijtclnqdcgvpfghxjezthvmijtclnqdcsiabaeklvpot...
output:
20342734124692
result:
ok 1 number(s): "20342734124692"
Test #52:
score: 0
Accepted
time: 229ms
memory: 77956kb
input:
1 laiebobdjvjnwoldexhhwwphnpevihgcjtgzjmzdlzdwzuahhiwztjxuozcmffypqtitqoqpwmbhzrdgxoyziqvisaupzmbttggrsqafcsvgwsknanhqzaehnzgnouxtmcgoilopckmsukvzbpffpaiaksguxkcxkypdkuhezpvzgoobqzhlaiebobdjvjnwoldexhhwwphnpevihgcjtgzjmzdlzdwzuahhiwztjxuozcmffypqtitqoqpwmbhzrdgxoyziqvisaupzmbttggrsqafcsvgwsknanhqzae...
output:
2039003270945
result:
ok 1 number(s): "2039003270945"
Test #53:
score: 0
Accepted
time: 195ms
memory: 75456kb
input:
1 vyubllhxsbxevsoihfkmdnvmntrqxeukvcqogklkxqbmkprnovsdkmfzstudxhtfweaocdiiqmndherttmfrngayfgdycjcgclgosajtbcvtkhryihwvrthgcmqnqkkqnzktawxuomaruaytivculcoglecgnazxinyyfjzadqeikhguipxadpnbzvqwupdojnelspwbbunderebfcqjwxmfsgyemmatqgryxyrbjcyyfxhaymmgdpxhiudhdhswtfvmskfqshupmarusazrinmyifneslvealmqllfuvs...
output:
108525645541
result:
ok 1 number(s): "108525645541"
Test #54:
score: 0
Accepted
time: 151ms
memory: 56072kb
input:
1 atwxvutxruyvpnlodfnjzdbihsrjlvgoevkdfiezamcgbhiheecxuppdodeewrngsdtpxahhmmjikwbmvwytjxczvscewuexadslctikvmnumoipbapbhruzbublpfqtbmmqszobriiffznezlmoitosylcrqzmbqjefjjpxnmcoskxwvanhobiyujmiczfwhfcvtboddamyozkshzzxzdxbhyrjjkdmyntqejybofceheasspwsxnflvqmordujwtxezlsfnkeucizhpwwjdfnlijrrchfcffjhnawaal...
output:
15326358668
result:
ok 1 number(s): "15326358668"
Test #55:
score: 0
Accepted
time: 344ms
memory: 80476kb
input:
1 qqjqqqjqqqjqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqqqjqqqjqqqjqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqjqqqjqqjqqqjqqqjqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqqqjqqqjqqqjqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqjqqqjqqqjqqjqqqjqqqjqqqjqqqjqqqjqqqjqqqjqqjqqqjqqqqqjqqqqqjq...
output:
495209269441827
result:
ok 1 number(s): "495209269441827"
Test #56:
score: 0
Accepted
time: 328ms
memory: 80040kb
input:
1 dididdxidididddididdxidididdxiiddiddididididdxidididdxiiddiddididdxiiddididididdxidididdxiiddididdxidididddididdxidididdxiiddiddididididdxidididdxiiddiddididdxiiddididididdxidididdxiiddiddididdxiiddididdxiidiididididididdxidididdxiiddiddididididdxidididddididdxidididdxiiddiddididididdxidididdxiidd...
output:
87336487474432
result:
ok 1 number(s): "87336487474432"
Test #57:
score: 0
Accepted
time: 323ms
memory: 79244kb
input:
1 cwnwnwcwnwnwnwcwnwnwcwnwnwnwnncnwwccwnwnwnwnncwnwnwnwnncncwnwnwcwnwcwnwnwcwnwnwnwcwnwnwcwnwnwnwnncnwwccwnwnwnwnncwnwnwnwnncncwnwnwcwnwnwnwncwnwnwcwnwnwcwnwnwcwnwnwnwnncnwwccwnwnwnwnncwcwnwnwcwnwnwnwcwnwnwcwnwnwnwnncnwwccwnwnwnwnncwnwnwnwnncncwnwnwcwnwnwnwncwnwnwcwnwnwcwnwnwcwnwnwnwnncnwwccwnwnwnwn...
output:
28464613072032
result:
ok 1 number(s): "28464613072032"
Test #58:
score: 0
Accepted
time: 357ms
memory: 82056kb
input:
1 gyggygygyggygyggygyggygyggygyggyggygygggyggygygyggygyggygyggyggyggygygyggygyggygyggygyggygyggyggygygggyggygygyggygyggygyggygyggygyggyggygyggygyggygyggygyggygygyggygyggygyggygyggygyggyggygygggyggygygyggygyggygyggyggygggyggygygyggygyggygyggygyggygyggyggygygggyggygygyggygyggygyggyggyggygygyggygyggygy...
output:
510728187699973
result:
ok 1 number(s): "510728187699973"
Test #59:
score: 0
Accepted
time: 307ms
memory: 79176kb
input:
1 qiqiiqqffjqiqiiqqffqiqiiqqffjqiqiiqqffjqfqiqiqiiqqffjqfqiaaiiiijiaifiqiqqiqiqiiqqqiqiiqqffjqiqiiqqffjqfqiqiqiiqqffjqfqiqiqiiqqffjqiqiiqqffqiqqiqiiqqffjqiqiiqqffqiqiiqqffjqiqiiqqffjqfqiqiqiiqqffjqfqiaaiiiijiaifiqiqqiqiqiiqqqiqiiqqffjqiqiiqqffjqfqiqiqiiqqffjqfqiqiqiiqqffjqiqiiqqffqiqiiqqffjqiqiiqqff...
output:
50871054628589
result:
ok 1 number(s): "50871054628589"
Test #60:
score: 0
Accepted
time: 305ms
memory: 77756kb
input:
1 mmtqllmmtqlltqqqommtqllmmtqlltqqqotmmtqllmmtqlltqqqommtqllmmtqlltqqqotmoomtoltottmtqottotqooollllttmmtqllmmtqlltqqqommtqllmmtqlltqqqotmoomtoltottmtqottotqmmtqllmmtqlltqqqommtqllmmtqlltqqqotmoomtoltottmtqottotqooollllttmmtqllmmtqlltqqqommtqllmmtqlltqqqotmoomtoltottmtqottotqooollllttommtqllmmtqlltqq...
output:
51284405737644
result:
ok 1 number(s): "51284405737644"
Test #61:
score: 0
Accepted
time: 378ms
memory: 71916kb
input:
1 hmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmhmhhmhmhmhhmhmmhmhmhhmhmhmhhmhmmhmhmhmhhmhmhmhhm...
output:
284623096285415
result:
ok 1 number(s): "284623096285415"
Test #62:
score: 0
Accepted
time: 386ms
memory: 75736kb
input:
1 amaamaamaaamaaamaamaamaaamaamaamaamamaammamamaamamaamaamaaamaamaamaaamaaamaamaamaaamaamaamaamamaammamamaamamaamaamaaamaaamaamaamaaamaamaamaamamaammamamaamaamaamaamaamamaamaamaamamaammamamaamaamaaamaamaamaaamaaamaamaamaaamaamaamaamamaammamamaamamaamaamaaamaamaamaaamaaamaamaamaaamaamaamaamamaammamam...
output:
359135170761701
result:
ok 1 number(s): "359135170761701"
Test #63:
score: 0
Accepted
time: 358ms
memory: 69996kb
input:
1 oollolllooloooollloollolllooloooolllooloooollooollolllooloooollloollolllooloooolllooloooollolllooloooollloolooollolllooloooollloollolllooloooolllooloooooollolllooloooollloollolllooloooolllooloooollooollolllooloooollloollolllooloooolllooloooollolllooloooollloolooollolllooloooollloollolllooloooolllo...
output:
255239125866786
result:
ok 1 number(s): "255239125866786"
Test #64:
score: 0
Accepted
time: 312ms
memory: 63816kb
input:
1 itttttittiitittiiiiititttiittiiitittitttttiitttttittiitittiiiiititttiittiiitittitttttittiitittiiiiititttiittiiitittititiiitiiiitttttittiitittiiiiititttiittiiitittitttttittiitittiiiiititttiittiiitittititiiitiiittiiiitittittiitiiiititittttiitittttitittiitttttittiitittiiiiititttiitttttittiitittiiiiit...
output:
76141819635053
result:
ok 1 number(s): "76141819635053"
Test #65:
score: 0
Accepted
time: 385ms
memory: 78688kb
input:
1 vlvllvvlvvvvlvlvlvlllvllvvlvlllvvlvlllvlvvvvvllllvvvlllvvvvvlllvlvvlvvllvvvvlvllvvvllvvvllllvllllvvlvvlllvllvlvvvvlvvvllvlllvlvlvvllvlllvvvlllvlvvlllllvvvvvvlvlllvvllllvvvlvllvvlvvvvlvlvlvlllvllvvlvlllvvlvlllvlvvvvvllllvvvlllvvvvvlllvlvvlvvllvvvvlvllvvvllvvvllllvllllvvlvvlllvllvlvvvvlvvvllvlllvlvl...
output:
68479316171591
result:
ok 1 number(s): "68479316171591"
Test #66:
score: 0
Accepted
time: 388ms
memory: 76656kb
input:
1 wwwwtwtttttwttwtwtwtwttwwttttttwwwtwwwtwtttwtwwtttwtwtwttwttwtwwwwtwttwttwttwtwtwwtttwwwwttwtwwttwwtwwwwwwtwtttttwttwtwtwtwttwwttttttwwwtwwwtwtttwtwwtttwtwtwttwttwtwwwwtwttwttwttwtwtwwtttwwwwttwtwwttwwtwwwwwwwwtttwttttttwwwtttwwtwtwtwwtwwwwtwwtwtwwwwwttwttttwwtwwwtttwtwttwtttwttwtttwwwtwtwwtwwwwtw...
output:
17691884809795
result:
ok 1 number(s): "17691884809795"
Test #67:
score: 0
Accepted
time: 331ms
memory: 62280kb
input:
1 ggrggrgrgrgrgrrgggrrgrrrrggrggrrrrgrggrgrrggrrgrrgrgrgrrgggggrgggrrrgrrggrrgrgggrgrggrrggggrggrgrggrrgrgrgrrrrgggrgrggrrggrgggggrgrrrgrgrgggrgrrrggrrrrggrrgrgrgrgrggggrgrggrggrgrrgrgrrrrgrrrrrgrrgrggrggrrgrgrggrrrgrgrgrgrrgrrrgggggrgrrrrgrgggggggrgrgrrrgrrrgrrgrrgrrrrrgrggrrgrrgrggggrgrrgrgrggggrg...
output:
9683989352823
result:
ok 1 number(s): "9683989352823"
Test #68:
score: 0
Accepted
time: 374ms
memory: 75764kb
input:
1 ppppxxpxpxxxpxxpxxpxppxxpxpxxppxpxpxppxpxxxpxxxpxxxpxpxxpppppxxxxpxxxpppxxxpxxppppxpxppxpxxppppxpxxpppxxppppppppppppppppxxpxpxpxppxpppxpxppppxxpxpxxpxxppxpxxxpppxpppppxpxxxxpxpppxxpxxpppxppxxxxxpxpxxxppxpxpxpxxppxpxxxxxpxppxppxxpxpxxppppxppxpxpxpxxpxpxxxxpxxpxpxppxpppppxpppppxxxpxpxxppxpppxpxpxxxx...
output:
7205972642722
result:
ok 1 number(s): "7205972642722"
Test #69:
score: 0
Accepted
time: 383ms
memory: 75012kb
input:
1 ejjejejeejjeejjjeejeejjejjjjjjejjjeejjeeejeejjejjejjeeejejejjeeeejjjjjjejejejejejjeeeejjjjejeeejjeeejejjjejeejeeejjjejjjjeeejejjjjjeeeeeeeejjjeeeejjjjjjeeejejjejjjjeeejjjjjjjjejjjejeejjejjeejjjeejjeejjejejjeejejejejjjeejejeeejeeeejeejeejejejejejjjjejjeejeeejeeejeejeejjejjeeejjeeeeejjejjejeejejjjje...
output:
2039730367815
result:
ok 1 number(s): "2039730367815"
Test #70:
score: 0
Accepted
time: 417ms
memory: 80776kb
input:
1 pqpppppqqqqqpqqpppqqqqpqpqqppqqppqqqppqqqqqppqqppqpqppqppqqpppppqppppqqppppqpppqppqpqpqqppppqqpqqppppqpqqpppqqpqpppqqpqqqppqqqpqppqqqqqqqqqpppqqqqqqpqppqppqqpqppqqpqpqpqppppqqqqpqpqqqqqpqqpppqqppqqpqqqqqpqqppqpqqpqqqqqqpppqppqppqqqpqqpqqqqqpqppppqqpqpqqppppqqqqqpqqppppqqqqppqpqqqpqpqqppqqppqqqqpqq...
output:
973434443636
result:
ok 1 number(s): "973434443636"
Test #71:
score: 0
Accepted
time: 285ms
memory: 70840kb
input:
1 nsnspgyvnnspgyvnnsnspgyvnnspgyvnspgnspgyvnnspgynspgyvnsnspgyvnnspgyvnnsnspgyvnnspgyvnspgnspgyvnnspgynspgyvnnspgyvnspgnspgyvnnspgynspgyvnnsnsnspgyvnnspgyvnspgnspgyvnnspgynspgyvnnspgyvnnsnspgyvnnspgyvnspgnspgyvnnspgynspgyvnnspgyvnspgnnsnspgyvnnspgyvnspgnspgyvnnspgynspgyvnnspgyvnspgnspgyvnnspgynspgyv...
output:
166159096418848
result:
ok 1 number(s): "166159096418848"
Test #72:
score: 0
Accepted
time: 295ms
memory: 70800kb
input:
1 ajdziajajdziajdaajajdziajajdziajdaajdziajajdziaajdziajaajdajdziajajdziajdaajdziajajdziaajdziajaajdziajajdziajdaajdziajajdziaajdziajajdziajdaajdziajajdziajdajdziajajdziajdziiizwephdgwmohngmcecsuajdziajajdziajdaajajdziajajdziajdaajdziajajdziaajdziajaajdajdziajajajdziajajdziajdaajajdziajajdziajdaajdz...
output:
102050081004728
result:
ok 1 number(s): "102050081004728"
Test #73:
score: 0
Accepted
time: 249ms
memory: 64396kb
input:
1 iqqbngyezahmrjxpyqslknxkvljgwlbftmsqmlnjiqqbngyezahmrjxpyqsiqqbngyezahmrjxpyqslknxkvljgwlbftmsqmlnjiqqbngyezahmrjxpyqslknxkvljgwlbftmsqmlnjqgqtzfyqvgzzayqiqqbngyezahmrjxpyqslknxkvljgwlbftmsqiqqbngyezahmrjxpyqslknxkvliqqbngyezahmrjxiqqbngyezahmrjxpyqslknxkvljgwlbftmsqmlnjiqqbngyezahmrjxpyqsiqqbngye...
output:
10274882153888
result:
ok 1 number(s): "10274882153888"
Test #74:
score: 0
Accepted
time: 233ms
memory: 69820kb
input:
1 skcfwksjxcarruibvgsmuqjisbipxukcteuedhjwkkhgstysyhjonndfkjdqswqvoufusxaoxvimegxvipioyhgxlkgougdeaaqkoscseahwrlolreitbrfjyhtctjkeyulodbxttwirspwnlhqgdmsuuovgntiqrmlsskcfwksjxcarruibvgsmuqjisbipxukcteuedhjwkkhgstysyhjonndfkjdqswqvoufusxaoxvimegxvipioyhgxlkgougdeaaqkoscseahwrlolreitbrfjyhtctjkeyulodb...
output:
3670322981913
result:
ok 1 number(s): "3670322981913"
Test #75:
score: 0
Accepted
time: 229ms
memory: 69836kb
input:
1 ulllqynfnacytluecglprkrdojvwttvznkamgqptxfbfodtnggqthcqrqtxokdcjesshjnnjmvbchjgsqghdrgnxutakrgsdkbaxyvfqxbeyrifwdqlhveceozuehcshqhdkulkgrgvrjlulfebvckpptybbxktagbkhjlxglczpfetutyrngxzhrwrlglticuhdsbhnysdjgwpaparpvwudccczlvhjdwtvbbozvfaflqohobdsbfkmwmtvhmtqxwghyhfygibbctnptdtesemarxcuxikvyktmfrciae...
output:
3178609760355
result:
ok 1 number(s): "3178609760355"
Test #76:
score: 0
Accepted
time: 225ms
memory: 71352kb
input:
1 qljkclxuyhroxjsbyoqzagiqtbmfmhvzjkpotocxnrdqtdpcobdeunulnndecubxnenptxpprrqpksmcgxmqthcvychdfmelnjlgbdhcmsgmqfbzrmttjpjjzjafsqzqqhwpohqgvztmeuatmpahteraweffrvrnmvsxsfosvlqhogooknxrlbnhdemrjhvrelwvftenxalkzpcbfdizmjechowvddmkrzaxoeecwxduunozyevezlkfjfnygwhwuvodnugyrdptxipqrrwflrpwdfeboidohndhegxrpv...
output:
231098330295
result:
ok 1 number(s): "231098330295"
Test #77:
score: 0
Accepted
time: 186ms
memory: 58600kb
input:
1 ahvxjejsrurnteasxdccttbcnbxuvcqfryqlrwlsalstlghccvtlyrdgelfwkkpboyvyoeobtwjclmsqdeplvouvzhgblwjyyqqmzohkfzuqtzinhncolhxcnlqnegdywfqevaebfiwzgiuljbkkbhvhizqgdifdipbsigcxlbulqeejolcpoywjxxivydiwdiofqhwcdfpbwqagfiuptyslvmlxemvmtgmxtzeuqcxwwjsdoozrxsvyevugtakwfeibijmrbxlpwbmtejofxhcllptzqxvllndlrgxxcz...
output:
115451201273
result:
ok 1 number(s): "115451201273"
Test #78:
score: 0
Accepted
time: 177ms
memory: 58120kb
input:
1 lauqzzvdtqdjlthyvkwpxolpobgcdjuwlnchrwzwdcqpwmgohltxwpkstbuxdvbkfjihnxyycpoxvjgbbpkgoriakrxanenrnzrhtiebqnlbwvgayvflgbvrnpcocwwcoswbifduhpiguiabylnuznhrzjnroisdyoaakesixcjywvruymdixmoqslcfumxheojztmfqquoxjgjqkncefdpktrajppibcrgadagqenaakdviapprxmdvyuxvxvtfbklptwkctvumpigutisgyopaykojtzljizpczzkult...
output:
35638571793
result:
ok 1 number(s): "35638571793"
Test #79:
score: 0
Accepted
time: 175ms
memory: 58628kb
input:
1 bupceluctlyeiqvdgsqrhgmnoxtrvekdaejgsnahbzwkmonoaawcliigdgaaptqkxguicboozzrnjpmzepyurcwhexwaplacbgxvwunjezqlzdnimbimotlhmlmvisfumzzfxhdmtnnsshqahvzdnudxyvwtfhzmfrasrricqzwdxjcpebqodmnylrznwhsposweumdggbzydhjxohhchgcmoytrrjgzyqufarymdswaoabxxipxcqsvefzdtglrpucahvxsqjalwnhoipprgsqvnrttwoswssroqbpbbv...
output:
5200701650
result:
ok 1 number(s): "5200701650"
Test #80:
score: 0
Accepted
time: 308ms
memory: 62928kb
input:
1 iiuuiuiuhuiuiuhiuihiihuhihiuiiuuiuiuhuiuiuhiuihiihuhihiuiuuhihhuuhhiiiuihuuhuiuhhuuhiiuuiuiuhuiuiuhiuihiihuhihiuiiuuiuiuhuiuiuhiuihiihuhihiuiuuhiiuuiuiuhuiuiuhiuihiihuhihiuiiuuiuiuhuiuiuhiuihiihuhihiuiuuhihhiiuuiuiuhuiuiuhiuihiihuhihiuiiuuiuiuhuiuiuhiuihiihuhihiuiuuhihhuuhhiiiuihuuhuiuhhuuhiiuuiui...
output:
17892681445892
result:
ok 1 number(s): "17892681445892"
Test #81:
score: 0
Accepted
time: 335ms
memory: 67880kb
input:
1 pippfiipiipfppifffpiffiifffipfipfiffpppfffiiifpfififffpiffippipffpifffpifpppffpiifiifiipiffiffffppfififippfipfppipipiipfifpiiififfffpifffipfpfiffiippfpiiifffififififfpffpiffippiipppipipfppiippfpipfipifipifpipfiipfppppipifppippffffpiiipfpppifpipfffpppipipipppfppppfippiifffpiiiiipfifppppffififfpipfp...
output:
2237974405555
result:
ok 1 number(s): "2237974405555"
Test #82:
score: 0
Accepted
time: 307ms
memory: 65936kb
input:
1 lovovovovvlvoolvollovloovlllvllvllloloovlvllllvlvovooovlvovvlooooovlvovvovovovvlvlvolvllovoolovvvvvlvvoolovllovvlovllolvllloovvvloovlooovovlovlooovvvvolooolvlvllllvvovlvllooolovlloovvlollolvovlooololllooolvlvoolvolvlllllovoloololovooolovvvolvoloolvvlovvolvvvvvoloovvololvvlvvlvvoollololovovloovoolv...
output:
583505052506
result:
ok 1 number(s): "583505052506"
Test #83:
score: 0
Accepted
time: 332ms
memory: 71424kb
input:
1 yqvyqubuqyybbbuqbvbqyyqyvqbvyuyqvbqvvyqubbyqyybubqvqqvvyvyvyuvqqvqvbvbbybvvuybububquuqqbyyvyqqbvbqubuuqbbvuyqqubyqvyqubuqyybbbuqbvbqyyqyvqbvyuyqvbqvvyquyqvyqubuqyybbbuqbvbqyyqyvqbvyuyqvbqvvyqubbyqyybubqvqqvvyvyvyuvqqvqvbvbbybvvuybububquuqqbyqvyqubuqyybbbuqbvbqyyqyvqbvyuyqvbqvvyqubbyqyybubqvqqvvyvy...
output:
6298690918420
result:
ok 1 number(s): "6298690918420"
Test #84:
score: 0
Accepted
time: 280ms
memory: 65128kb
input:
1 mllmmddumdmlhhllllulhldluhmludmmdmuhlmhuhduldhhdmmmlmlhhmlhmllhmluhumlmlluhmmhluuddmmluuulumldudhdhudummldumhmduuuldullmudhlumduuuuhmdmlmdmuhhhduudllmlhdhlmdlldluldlmhullmdlhdlhmlhuduldldhllhhdddhhlummldmhuhlluuhhhuhhdhhumdumdhhmmhmudlmmmumuhuddmddhlmuumluluummhddhuhlhludllmlmuluhuhlduulhdhhddhlud...
output:
958602500960
result:
ok 1 number(s): "958602500960"
Test #85:
score: 0
Accepted
time: 268ms
memory: 62944kb
input:
1 rrfdppfdddxfrxxrfxpfxffrfdxffxfdxxxppppffxpdpxffdprdfrpxxfprfrdprpdfrrfxrdfffddrdpdxddffpfrprpdrfdxffxpfpfxxpxppxppfxddfpfxxrfpppdxprffpxxddrxdxdrpxffxrffrrrdrpfxprdrxfxrxppprppdfpfrfpdxfpxrrpppdrpdpprfxrprdpdxfxrfprrdrddfprxrfrxpfdpxpdffxrrfppppfprrrppdrxffpxfdxffddprpfxxxpxpxprxpfxfpxfdrrrdddfrp...
output:
1123136417942
result:
ok 1 number(s): "1123136417942"