QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#331711 | #6366. Message | kkio | AC ✓ | 90ms | 93160kb | C++20 | 9.5kb | 2024-02-18 17:35:50 | 2024-02-18 17:35:51 |
Judging History
answer
#include <bits/stdc++.h>
//#define Kachang 1
#ifdef Kachang
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#pragma GCC optimize("Ofast","unroll-loops","inline","no-stack-protector")
#else
#pragma GCC optmize("2")
#endif
using namespace std;
namespace Def{
#define fir first
#define sec second
#define lson(i) (tr[i].ls)
#define rson(i) (tr[i].rs)
#define FIO(file) freopen(file".in","r",stdin), freopen(file".out","w",stdout)
#define Untie() ios::sync_with_stdio(0), cin.tie(0),cout.tie(0)
typedef long long ll;
typedef double db;
typedef long double ldb;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef __int128_t i128;
typedef __uint128_t u128;
}
using namespace Def;
namespace FastIO {
struct IO {
char ibuf[(1 << 20) + 1], *iS, *iT, obuf[(1 << 20) + 1], *oS;
IO() : iS(ibuf), iT(ibuf), oS(obuf) {} ~IO() { fwrite(obuf, 1, oS - obuf, stdout); }
#if ONLINE_JUDGE
#define gh() (iS == iT ? iT = (iS = ibuf) + fread(ibuf, 1, (1 << 20) + 1, stdin), (iS == iT ? EOF : *iS++) : *iS++)
#else
#define gh() getchar()
#endif
inline bool eof (const char &ch) { return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t' || ch == EOF; }
inline long long read() {
char ch = gh();
long long x = 0;
bool t = 0;
while (ch < '0' || ch > '9') t |= ch == '-', ch = gh();
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
return t ? ~(x - 1) : x;
}
inline void read (char *s) {
char ch = gh(); int l = 0;
while (eof(ch)) ch = gh();
while (!eof(ch)) s[l++] = ch, ch = gh();
s[l] = 0;
}
inline void read (double &x) {
char ch = gh(); bool t = 0;
while (ch < '0' || ch > '9') t |= ch == '-', ch = gh();
while (ch >= '0' && ch <= '9') x = x * 10 + (ch ^ 48), ch = gh();
if (ch != '.') return t && (x = -x), void(); ch = gh();
for (double cf = 0.1; '0' <= ch && ch <= '9'; ch = gh(), cf *= 0.1) x += cf * (ch ^ 48);
t && (x = -x);
}
inline void pc (char ch) {
#ifdef ONLINE_JUDGE
if (oS == obuf + (1 << 20) + 1) fwrite(obuf, 1, oS - obuf, stdout), oS = obuf;
*oS++ = ch;
#else
putchar(ch);
#endif
}
inline void write (char *s)
{
int len = strlen(s);
for(int i = 0; i < len; i++)pc(s[i]);
}
template<typename _Tp>
inline void write (_Tp x) {
static char stk[64], *tp = stk;
if (x < 0) x = ~(x - 1), pc('-');
do *tp++ = x % 10, x /= 10;
while (x);
while (tp != stk) pc((*--tp) | 48);
}
inline void puts(const char *s){
int len = strlen(s);
for (int i = 0; i < len; i++)pc(s[i]);
}
} io;
inline long long read () { return io.read(); }
template<typename Tp>
inline void read (Tp &x) { io.read(x); }
template<typename _Tp>
inline void write (_Tp x) { io.write(x); }
}
using namespace FastIO;
namespace misc{
constexpr int infi=1e9;
constexpr int minfi=0x3f3f3f3f;
constexpr ll infl=1e18;
constexpr ll minfl=0x3f3f3f3f3f3f3f3f;
constexpr int MOD=998244353;
constexpr int inv2=(MOD+1)/2;
constexpr int inv3=(MOD+1)/3;
constexpr double eps=1e-6;
mt19937_64 rnd(0x3408532);
template<typename T,typename E>
inline T ksm(T b,E p){T ret=1;while(p){if(p&1)ret=1ll*ret*b%MOD;b=1ll*b*b%MOD;p>>=1;}return ret;}
template<typename T,typename E,typename R>
inline T ksm(T b,E p,R mod){T ret=1;while(p){if(p&1)ret=1ll*ret*b%mod;b=1ll*b*b%mod;p>>=1;}return ret;}
template<typename T>
inline T ginv(T v){return ksm(v,MOD-2);}
template<typename T,typename E>
inline void cmax(T &a,E b){a<b?(a=b,1):0;}
template<typename T,typename E>
inline void cmin(T &a,E b){a>b?(a=b,1):0;}
template<typename T,typename E>
inline void cadd(T &a,E b){(a+=b)>=MOD?(a-=MOD):0;}
template<typename T,typename E>
inline void csub(T &a,E b){(a-=b)<0?(a+=MOD):0;}
template<typename T,typename E>
inline void cmul(T &a,E b){a=(ll)a*b%MOD;}
template<typename T,typename E>
inline T madd(T a,E b){return (a+=b)>=MOD?(a-MOD):a;}
template<typename T,typename E>
inline T msub(T a,E b){return (a-=b)<0?(a+MOD):a;}
template<typename T,typename E>
inline T mmul(T a,E b){return (ll)a*b%MOD;}
template<typename T>
struct dseg{T *first,*last;dseg(T* _l,T* _r):first(_l),last(_r){}};
inline void debug(void){cerr<<'\n';}
template<typename T,typename... arg>
inline void debug(dseg<T> A,arg... v){cerr<<"[ ";for(T* i=A.first;i!=A.last;++i)cerr<<*i<<' ';cerr<<"] ";debug(v...);}
template<typename T,typename... arg>
inline void debug(T x,arg... r){cerr<<x<<' ';debug(r...);}
template<typename T>
inline T randseg(T l,T r){assert(l<=r);return rnd()%(r-l+1)+l;}
template<typename T>
inline bool gbit(T v,int bit){return v>>bit&1;}
template<typename T>
inline void FWTXor(T *a,int n){for(int i=2;i<=n;i<<=1)for(int p=i>>1,j=0;j<n;j+=i)for(int k=j;k<j+p;k++){T x=a[k],y=a[k+p];a[k]=madd(x,y),a[k+p]=msub(x,y);}}
template<typename T>
inline void iFWTXor(T *a,int n){for(int i=2;i<=n;i<<=1)for(int p=i>>1,j=0;j<n;j+=i)for(int k=j;k<j+p;k++){T x=a[k],y=a[k+p];a[k]=mmul(madd(x,y),inv2),a[k+p]=mmul(msub(x,y),inv2);}}
int timest=0;
inline void record(){timest=clock()*1000/CLOCKS_PER_SEC;}
inline int timegap(){int nowtime=clock()*1000/CLOCKS_PER_SEC;return nowtime-timest;}
inline ll gcd(ll a,ll b){if(!b||!a) return a+b;ll az=__builtin_ctz(a),bz=__builtin_ctz(b),z=(az>bz)?bz:az,t;b>>=bz;while(a) a>>=az,t=a-b,az=__builtin_ctz(t),b=a<b?a:b,a=t<0?-t:t;return b<<z;}
inline ll exgcd(ll a,ll b,ll &x,ll &y){if(!b){x=1,y=0;return a;}ll g=exgcd(b,a%b,y,x);y-=x*(a/b);return g;}
inline ll Sum1(ll n){return n*(n+1)/2;}
inline ll Sum2(ll n){return n*(n+1)*(2*n+1)/6;}
inline ll Sqr(ll n){return n*n;}
#define binom(n,m) ((n)<0||(m)<0||(n)<(m)?0:1ll*fac[(n)]*ifac[(m)]%mod*ifac[(n)-(m)]%mod)
#define likely(x) (__builtin_expect(!!(x),1))
#define unlikely(x) (__builtin_expect(!!(x),0))
}
using namespace misc;
namespace Barret
{
class reduction
{
private:
__uint128_t brt;
int mod;
public:
reduction(){};
reduction(int __mod):brt(((__uint128_t)1<<64)/__mod),mod(__mod){}
inline void setmod(int __mod){brt=((__uint128_t)1<<64)/__mod,mod=__mod;}
template<typename T> inline void fix(T& val){val-=mod*(brt*val>>64);while(val>=mod)val-=mod;}
template<typename T> inline int fixv(T val){val-=mod*(brt*val>>64);return val>=mod?val-mod:val;}
};
}
using namespace Barret;
const int maxn=2e5+10,sig=60;
char s[maxn],t[maxn],ts[maxn],sz[maxn];
int c[maxn],n,m,len,nl,C[sig],Z[maxn],L[sig],R[sig],tot,Lt[sig],Rt[sig],nxt[maxn],tpos[maxn];
ll sv[maxn];
ll dp[sig][maxn],Sum;
struct node{
int pos,ty,s;
};
bool cmp(node a,node b){return a.pos==b.pos?a.ty<b.ty:a.pos<b.pos;}
vector< node > rps;
int main()
{
scanf("%s%s",s+1,t+1);
n=strlen(s+1),m=strlen(t+1);
for(int i=1;i<=n;i++)scanf("%d",&c[i]),Sum+=c[i];
for(int i=1;i<=m;i++)Z[i]=-1;
for(int i=1;i<=m;i++)
if(!L[t[i]-'a'])L[t[i]-'a']=i;
for(int i=m;i>=1;i--)
if(!R[t[i]-'a'])R[t[i]-'a']=i,Z[i]=t[i]-'a';
for(int i=0;i<26;i++)
if(L[i])rps.push_back({L[i],0,i}),rps.push_back({R[i],1,i});
sort(rps.begin(),rps.end(),cmp);
int S=0,lst=-1;
for(int i=0;i<rps.size();i++)
{
if(rps[i].ty==0)
{
if(lst!=-1&&lst<rps[i].pos)++tot,Lt[tot]=lst,Rt[tot]=rps[i].pos-1,C[tot]=S;
lst=rps[i].pos;
S^=(1<<rps[i].s);
}
else
{
if(lst<=rps[i].pos)++tot,Lt[tot]=lst,Rt[tot]=rps[i].pos,C[tot]=S;
lst=rps[i].pos+1;
S^=(1<<rps[i].s);
}
}
for(int i=0;i<=n;i++)dp[0][i]=0;
for(int nt=1;nt<=tot;nt++)
{
len=nl=0;
for(int j=1;j<=n;j++)if(C[nt]>>(s[j]-'a')&1)++len,sv[len]=c[j],ts[len]=s[j],tpos[len]=j;
for(int i=1;i<=len;i++)sv[i]+=sv[i-1];
for(int j=Lt[nt];j<=Rt[nt];j++)sz[++nl]=t[j];sz[nl+1]=0;
for(int i=0;i<=n;i++)dp[nt][i]=-infl;
nxt[1]=0;
for(int i=2,j=0;i<=nl;i++)
{
while(j&&sz[j+1]!=sz[i])j=nxt[j];
if(sz[j+1]==sz[i])j++;
nxt[i]=j;
}
for(int i=1,j=0;i<=len;i++)
{
while(j&&sz[j+1]!=ts[i])j=nxt[j];
if(sz[j+1]==ts[i])j++;
if(j==nl)
{
int rp=tpos[i],lp=tpos[i-nl+1];
dp[nt][rp]=max(dp[nt][rp],dp[nt-1][lp-1]+sv[i]-sv[i-nl]);
}
}
int rS=C[nt];if(~Z[Rt[nt]])rS^=(1<<Z[Rt[nt]]);
for(int i=1;i<=n;i++)
if(!(rS>>(s[i]-'a')&1))
dp[nt][i]=max(dp[nt][i],dp[nt][i-1]);
// for(int i=0;i<=n;i++)cout<<dp[nt][i]<<' ';cout<<'\n';
}
if(dp[tot][n]<0)cout<<"You better start from scratch man...\n";
else cout<<Sum-dp[tot][n]<<'\n';
}
/*
ababa
ababa
1 1 1 1 1
*/
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 14004kb
input:
ababccb abc 7 2 2 4 3 2 1
output:
7
result:
ok single line: '7'
Test #2:
score: 0
Accepted
time: 2ms
memory: 13916kb
input:
babab baab 2 1 3 2 4
output:
You better start from scratch man...
result:
ok single line: 'You better start from scratch man...'
Test #3:
score: 0
Accepted
time: 23ms
memory: 18284kb
input:
bbaaaabbbbbabaababbaaabbbabaaaababaababaabababbbbabbbbababaabaaabbabaaaabbbabbaababababbabbbabbaababaaaaaabbabbbababbaabbbabbbabbbabaababaaaaaabaaababbbbbbaabaabaaaaaaabbbaaabaabbbababbbbbabbababaababaabbababbaababbbbbbbbbbbaabbbbbabaaabaabaaabaaaaabaaaabbbbbbbaaaabaabbbababbaaaabbabababbbabbbbabbab...
output:
You better start from scratch man...
result:
ok single line: 'You better start from scratch man...'
Test #4:
score: 0
Accepted
time: 31ms
memory: 32704kb
input:
bdabcfbdfcffebebcabbadacbbaeeaffbdedeedfabefdfdbddcecdaaddafdfbbdceccedebcecdfbcfbaafcefeecffdabfaacbeeecfeffaaafaefdcdaaeaeecfafcdadbfbccbdecacfeabdbfcacafebdcfbfbebacbffaecbfbcedccabbdecabaebbbdbcfbaeadfcadfadfaebaddbebfcbefdabdcefbbdaaaabcefedabcabcafedcfadedfdcbbccbffdcfdfcfcdfcfbbdabdbbeecafecc...
output:
You better start from scratch man...
result:
ok single line: 'You better start from scratch man...'
Test #5:
score: 0
Accepted
time: 90ms
memory: 93160kb
input:
soibsuydrizsuvymezuyrewmgwpnzxgyggpzjkdzooisgzbkfqjzkfcklluotqpwganvksoqtzixkfkrtqobdnregwgkxjwzsruvhztscxjyqlhfytomzhxiglxemdhkjnskrsqngojffogrkbygmdgzfwrlhwhhngqpjpepqgynsdybhpuaqhgjroijqofiwnxgxdmhofwsjnmwitruiesefzmabcfsyzrrruidewjowfkwwwqhztsmmtdnejlqhkmbpmknlxijnmzbtqviburbqwufipqsrqplcelovsxz...
output:
You better start from scratch man...
result:
ok single line: 'You better start from scratch man...'
Test #6:
score: 0
Accepted
time: 20ms
memory: 20036kb
input:
bbaaaabbbbbabaababbaaabbbabaaaababaababaabababbbbabbbbababaabaaabbabaaaabbbabbaababababbabbbabbaababaaaaaabbabbbababbaabbbabbbabbbabaababaaaaaabaaababbbbbbaabaabaaaaaaabbbaaabaabbbababbbbbabbababaababaabbababbaababbbbbbbbbbbaabbbbbabaaabaabaaabaaaaabaaaabbbbbbbaaaabaabbbababbaaaabbabababbbabbbbabbab...
output:
0
result:
ok single line: '0'
Test #7:
score: 0
Accepted
time: 43ms
memory: 53256kb
input:
hdhlkjabgckjkagfgkigfebfjmdabahajicgkfmblafmfgkiimkjlciiaegbkbkicgklhbhfmclghkleghmckbjliiicmmecldieghfdeghgechcjahdfebkhdigbkklcclieccijaemchbmfcggcjmgbdjhcbacleajjjledkfdjebgdmgahkjigjjighlbedbellabffeeckfbghcblmmgjijdehmcameeledejfijfmfcfkjdjklfldhmkabblcbgebhibkmihelehjccgggjhhbjehfidfmmjdgmmjbf...
output:
0
result:
ok single line: '0'
Test #8:
score: 0
Accepted
time: 82ms
memory: 91072kb
input:
soibsuydrizsuvymezuyrewmgwpnzxgyggpzjkdzooisgzbkfqjzkfcklluotqpwganvksoqtzixkfkrtqobdnregwgkxjwzsruvhztscxjyqlhfytomzhxiglxemdhkjnskrsqngojffogrkbygmdgzfwrlhwhhngqpjpepqgynsdybhpuaqhgjroijqofiwnxgxdmhofwsjnmwitruiesefzmabcfsyzrrruidewjowfkwwwqhztsmmtdnejlqhkmbpmknlxijnmzbtqviburbqwufipqsrqplcelovsxz...
output:
0
result:
ok single line: '0'
Test #9:
score: 0
Accepted
time: 2ms
memory: 11872kb
input:
aaaaaaaaaa a 670064684 12247274 885150692 755303894 373857482 772871474 451986656 733926307 275101324 732261937
output:
4777621032
result:
ok single line: '4777621032'
Test #10:
score: 0
Accepted
time: 0ms
memory: 14000kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa 807194254 763061330 636628022 447638039 310117480 873320507 134259988 666480259 747042520 231541618 643931761 30317274 158530414 253502390 229547045 438239031 709645547 367432988 755781758 67144518 360508870 862615691 635226301 863755466 104979114 4...
output:
5115514604
result:
ok single line: '5115514604'
Test #11:
score: 0
Accepted
time: 0ms
memory: 13912kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa 768295104 305748099 281563038 518303412 678146171 512832379 509999474 360793781 979858190 884904151 886121576 776530718 147119220 985829130 553994391 500082956 167860347 562080893 520228135 790526162 270707017 179265550 913606870 245853815 83...
output:
21140461276
result:
ok single line: '21140461276'
Test #12:
score: 0
Accepted
time: 0ms
memory: 11816kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 684483834 637018127 270602950 736485564 883414052 758886073 266638494 906099301 851227039 479339928 603217972 474167559 537788182 324629484 719852776 8079...
output:
27302362948
result:
ok single line: '27302362948'
Test #13:
score: 0
Accepted
time: 2ms
memory: 13920kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
131859070652
result:
ok single line: '131859070652'
Test #14:
score: 0
Accepted
time: 3ms
memory: 12064kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
781196173176
result:
ok single line: '781196173176'
Test #15:
score: 0
Accepted
time: 0ms
memory: 12100kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
4343956108320
result:
ok single line: '4343956108320'
Test #16:
score: 0
Accepted
time: 0ms
memory: 14448kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
18494567762260
result:
ok single line: '18494567762260'
Test #17:
score: 0
Accepted
time: 9ms
memory: 12596kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
32209183658799
result:
ok single line: '32209183658799'
Test #18:
score: 0
Accepted
time: 9ms
memory: 13040kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
54681136007004
result:
ok single line: '54681136007004'
Test #19:
score: 0
Accepted
time: 12ms
memory: 16204kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
29370598770431
result:
ok single line: '29370598770431'
Test #20:
score: 0
Accepted
time: 0ms
memory: 13988kb
input:
aaaabababb bb 476848657 19478030 860633182 479517749 926931997 990353030 811177212 276072809 44418816 639422667
output:
3786744940
result:
ok single line: '3786744940'
Test #21:
score: 0
Accepted
time: 0ms
memory: 13996kb
input:
baabbbaabbbbbbaaabbabababbbabb aabbbbbbbbbbbb 596942736 513321407 582182914 466363879 661702687 696876564 738552457 374802663 475543850 315580035 306727219 980454952 485808481 677883937 518967937 895712736 991586358 554417767 795851770 921017576 109301858 423859119 202619045 804565823 583428190 4070...
output:
9486081373
result:
ok single line: '9486081373'
Test #22:
score: 0
Accepted
time: 2ms
memory: 16104kb
input:
bbaaaaababbaabbbabaaaaaaaaaaaaaaabaabaabbabbbbaaaa bba 517088091 307183015 994179974 164146474 156595248 11692792 656694126 683962150 307132163 246359231 966105863 281059597 304728259 612665622 916423647 405320553 230841790 746930714 950416681 343242506 418374186 670629995 146835514 191417218 469803...
output:
21735754192
result:
ok single line: '21735754192'
Test #23:
score: 0
Accepted
time: 0ms
memory: 15968kb
input:
abbbbabbbbbaaaabaabbbaaabaababaaababaababbbaaaabbaabbbabbaabbaabbbbbabbbbaabaabaabbbaabbaaaabaaabbab bbbbbbbbbbbbab 224008866 420036954 610760159 229448373 88014692 800505315 190642695 680916401 526205898 463834969 506379052 591268851 942360508 176667947 891525614 324651315 294533169 355712507 94407...
output:
40969461750
result:
ok single line: '40969461750'
Test #24:
score: 0
Accepted
time: 0ms
memory: 18096kb
input:
baabaaabaabbbbabaaaabaaabaabbababbaaababbbaababbbaabbbababaaababbbaabbbabaaabbbabaabbaaabaaaaabaaabaaabaaaababbbbbbbabbabaabbbabababbbbbaaaaaaabbbbbbbbaababaababbbbbbaaaaaabbabbbabbbababababaaaaabbaaababbabbbbaaabbbaabaabaabaaabaabbbaaaaaabbaaaabbbbbbaabbabaabbbabbaaabababbbabaabbbbbabbbbbbababbbaab...
output:
158990471979
result:
ok single line: '158990471979'
Test #25:
score: 0
Accepted
time: 3ms
memory: 13932kb
input:
ababaababbbbbbababbbbaaabaaabbabababbabbabbabbbbbbabbabbbabbabaabbaaabbbababaabbbbbbbbabaabbaabababababababbabaaaabaaabbabbaabbbbabbabaabaabbabbababaababaaaabbaabaaaaaabbabbbaabababbabababbaabaabbaababbbbababbbbaabbbaabbbaabbabbaaabaabaababbabbabbabaaaaababbbbbaaaaaabababbaabbbbbbaabbbaaababbbabbaaa...
output:
532301963225
result:
ok single line: '532301963225'
Test #26:
score: 0
Accepted
time: 3ms
memory: 14144kb
input:
bbabbbaababaabbbabababbbaabbbbbbbbabaaaabbabbbaababaababbbbbabbbaabaabbabababaababaaabaaabbaabbaabbbabbbbbbbaabbaaabababbabababbbabbbaaabbbbbababbbbabbbabbababbabaabbbabaabbaabbabbaaabababbbaaabaaaabababaaabbbbbabbbaaabbbababbbbbbaaaabbbababbaabaabaabbaaaaabbababbabbbaaaabaaabbaaaaabbbbbbbbaabababbb...
output:
2701255525826
result:
ok single line: '2701255525826'
Test #27:
score: 0
Accepted
time: 7ms
memory: 14296kb
input:
abaabaababaaabaaaabaabaaabbabaaaabbbbbaabaaaaaaaaabaababbaaabbbbababbbabbaaaaabababbbbbabbabbaabbaababaabaaaaababbbbbabbabaabbaabbaaaaabaaababbabbabbabbbbbbbabaaababbbaaaaabbabaabaaaabbbbabbaababbabaaaaabaaabbbaaaaaaabbbababbbaaabbbbababbabaabbaabbaabaaabbabaabbaababbabaabbbbabababbbabbbababbbbaabba...
output:
12048672748205
result:
ok single line: '12048672748205'
Test #28:
score: 0
Accepted
time: 8ms
memory: 14852kb
input:
baabbababbaababaabbbaaaababbbbbbbbaaababbbbabbbabababbabaabbabaabbabaababbaabababaabbbabbabbbaaaabbbbbaabbbbbabbbaabbabaaababbabbbaaabaabbaaabbabaabbaaaaaabbbbaabbaabaaababbbbbbbabaabaaababbbbbaabbbaabaaaaaaaabbbbaabababbaabbbabbbababaaaabaaaaaababaabbaababaaaaabbaabaabaababbbbbababbbbbabbababaabbba...
output:
27307885756145
result:
ok single line: '27307885756145'
Test #29:
score: 0
Accepted
time: 9ms
memory: 18332kb
input:
abaaabaababaaabaabbaabaabaaabbbabaabaabaabaaabaaabababbbbaabbbbabababaaababbbbbbbaabbaaaaababaaaaabbababaaabbbabaaabbbbbaaabbabbababaabbabaabaabaabbabaaaaabaaababbbaaabababaabbbbbbbbaabbbababbaabbbbabababababbbbbabaababbaabbabababbbaaaabaabbaabbaaabbabbabbabaabbbbbabbbabbaaabaaaabababaabaaabbbabbaaa...
output:
60650729660703
result:
ok single line: '60650729660703'
Test #30:
score: 0
Accepted
time: 20ms
memory: 17588kb
input:
bbabbaabaaaabbbbbaaabbaaabbbbbabaaababbbbbbaaabaababbbbaabaaaaabaaabbaabbbabbbbabbbbbababaabababbbbbaabbabbbabbaabbbbabaaaaababbaababbbbabaabbbababababaabaabaaabbabbbbbabbbbbaaabaabbbabaabbbbbaababbabbbabababbaababaaaabaaabbbabaaababbbabaaabbabbbbabbbaabaaaaabaabaabbbbbbbabbbabababbbbababbabbbaabaaa...
output:
52715304867225
result:
ok single line: '52715304867225'
Test #31:
score: 0
Accepted
time: 0ms
memory: 13976kb
input:
babbabcbbc b 873567223 881484594 836115671 468572820 185039216 58091481 170367767 818219310 963479412 251616100
output:
4543074182
result:
ok single line: '4543074182'
Test #32:
score: 0
Accepted
time: 0ms
memory: 18092kb
input:
abbabbcbcbbccbcbabacbaaabbaacc abcbcbabacaaa 386691218 263581484 792579023 190122423 603222485 665656812 488069118 788157772 204045179 809683860 674555380 635625335 958310740 397232780 513421533 618027657 978559874 446435249 835921781 364825227 712870653 425294036 620268685 595633077 61877266 905874...
output:
9093474017
result:
ok single line: '9093474017'
Test #33:
score: 0
Accepted
time: 0ms
memory: 18176kb
input:
abaaaabbcbcbbcccacccaccbbbabacbbcacbbbcaccbacaaaca aabbcbbb 415624183 868426443 266605422 250181024 635044324 920618613 953131881 7130518 634406136 458071208 900865957 935331579 317113106 239502115 983885607 310558150 293823233 371972022 820796715 45701953 271074059 161994440 234839966 401821838 804...
output:
17954653966
result:
ok single line: '17954653966'
Test #34:
score: 0
Accepted
time: 0ms
memory: 20140kb
input:
acabaccbbbbbcbabbaaabacbbaacaacaaacbcbacbaacaccbbcabcccbaacbacaaaababcaaaabcacabcaaaaabbaaacccbbbacb cccccccccccccbcbaabaaaaababaaaaaaaaaaaaaaa 913277002 53312678 245884665 867635375 292615331 842124556 969422704 310509309 496152054 153362714 559283236 853594334 346932833 468897897 358165748 9865386...
output:
26421982372
result:
ok single line: '26421982372'
Test #35:
score: 0
Accepted
time: 2ms
memory: 15968kb
input:
accbcbcbaacbcbbaacaabbabbccbbcbaacacccbacaacabcabcacbabacababaaaabbcacacabaacacbacbaccaaabcbbaabcbccbbcccccbbbcacabbcbabcacbababbcbcaaabbbcbaabccbbbbbbaccaccbaccbacccaaccacccaabcacacacbacbcbbaaccbbbaabbbbcbcabbbaaacbbcbcaaaabbbacbcbbcbcabacacabcaccacbaaaabaabcccabaabbaccccbbcaacacbbabababccbbaccacaa...
output:
186216587955
result:
ok single line: '186216587955'
Test #36:
score: 0
Accepted
time: 0ms
memory: 20228kb
input:
cbcbaabbaaabbbccbbabbbbaccbbbbabaacbabbcbacabbaacacacaaacccbcbabcaccbccaababbbccaaaabbacabacabbaacbcabaacbbaccccaacacacaabcabcbcbacccaaabbaacccaacbbaabaabaabbbcacaaaacaacaccccacbbbcacaabbcabaaaaccabaaaccbbcabbccbcbcbcbbbabbccaaacbccaacaacbcacbaaabccbabacaccbbaacbabcaaacaaabbabcbbccacaacacabacbbcaccc...
output:
1134066452635
result:
ok single line: '1134066452635'
Test #37:
score: 0
Accepted
time: 4ms
memory: 20076kb
input:
acbacabbcbaaaaccbcaccaabaaabcabbcccabacbbaaacbbcbabbbbccabbbbbccacabbcacaaccbbbcabacccbbcccbcbaaccccccabbaabbabbbcbaacbaaaacacbbbbaacabacaaaccaaabbcabbbccbbaacaaabcbcabaacaacbcaaabaaacabbcaabbbaacccbacabaccccabaccbabbbccbbcacbbcbaccccbbaaaacabbcbababcacccabacbaacacbcabbbbcababacbbcaabbbbacbbabcccbca...
output:
2512968763689
result:
ok single line: '2512968763689'
Test #38:
score: 0
Accepted
time: 4ms
memory: 18336kb
input:
acbacbbaaaacccbcbccaabccacbaabbcbcaccbccbaabcaaacacbbbbcccaccaaaccabcabcbbbababacbbcbbabbcbbbacaabaccaaaabccabbacbacaacaccabbaccbbbcbbbbbaabaaabbabccbbbbaabaacaaabccaabcbccbcccbabaacaabbbbccbbabbacababbcaacbabcabcacaaacacaccaaccbaaabaacccaaacccbbbbacbcbccabaaaabcccacabbbacabcbbbbcabaacbccaacccbcbaaa...
output:
13386866355959
result:
ok single line: '13386866355959'
Test #39:
score: 0
Accepted
time: 15ms
memory: 18888kb
input:
cabbcaaccccbcacccabacabbabbabbacabacbbcbaabbccaccbbacabccaabcbacccbcaaacccccbcbbbaaabaabbcacbcbaabaaccacbcaacbaccaaccabbcccccabccbbbbaaacbabaaaabbaabacaccbccbccbacbcbaacbabacaabcabcbcabcabbcaccabaacccaacaccabbccbcbaacbccaabbccabccccbbcaacacbbbbbabbbbcacaaabcbcbcacbcbcacbbcbacbaaaaabacabbbacbbacbbbaa...
output:
32509001047635
result:
ok single line: '32509001047635'
Test #40:
score: 0
Accepted
time: 16ms
memory: 19268kb
input:
bacbbcbcaccbaaaaaaaccbcacccacabcbcbbaccaacabbacacacacbccacccababaaaccabccccccbaabbbaabbbbbccbccaabbaaacccbcaccaabaaacabcabcabacbabaccbabccaccbabcccbcabccaccbacaaabbcbacaccbbccaaaacaccaabacbbabbababaaacabbbccbcbacbacabaaacabbacbabaabbaaabaabaabcacbbccbaababbbcacccabaacbacbbbcaaaaaacabbccbacbabaaabbbb...
output:
65137117512545
result:
ok single line: '65137117512545'
Test #41:
score: 0
Accepted
time: 29ms
memory: 20088kb
input:
abaccbaaccbabcacbcbcbccbabacbaccccabaaccbbcaaabaccbcccccbcbacacbcabacabbbbcabaabbbcaccabcbcaaaacbbaaaaccccacacbacbbcbbaacacacaaacccbabcaabccbbccabaaaacaacacacbcbacccabbbbbccbacbcbbcbcabababbaaabaacababbbcbaabacacbbbcbacbacbcaaaabbcbaacacaacccbccbcbacbaabbbaababcaabcbbbbcabcacccabaabaaaccbabaccacaccc...
output:
71532659305323
result:
ok single line: '71532659305323'
Test #42:
score: 0
Accepted
time: 0ms
memory: 15904kb
input:
cdaaaaccca ccca 975318493 593748055 811598160 192786675 443146435 685638445 234591027 505590004 732796904 863809533
output:
3459714674
result:
ok single line: '3459714674'
Test #43:
score: 0
Accepted
time: 0ms
memory: 20004kb
input:
dbadadbcacccccaadbbbcddcbacacb bcccbbbdbaab 881472404 308808857 738133915 354072455 544742284 929404357 797394290 936671664 932546509 893722277 42383542 290795717 430812999 971357431 97809721 635309874 555467981 193228540 875991792 218698285 611406745 281504760 187661429 241476139 540326342 10976734...
output:
10065344318
result:
ok single line: '10065344318'
Test #44:
score: 0
Accepted
time: 0ms
memory: 20068kb
input:
baabbcaddabdccbbdaaddcbdbacccdbdacbbdcbaadbaaadccd bbaabbbaabbacbacbdaad 164417171 429669872 979222358 896024085 408460696 419479026 99826533 625266183 256647406 819526289 275817539 29795050 34530657 571371311 906123375 215795747 211580484 851789138 545952557 748161401 858932716 653358884 468068610 ...
output:
16212615380
result:
ok single line: '16212615380'
Test #45:
score: 0
Accepted
time: 0ms
memory: 20020kb
input:
cccdaaabcacbbbadbdacccbddbadcacbccabbacccabbadbdbddddcacdcabbcbdbdbacbddbcdbccbaabcbaadcbaabdccdaccb bdbdbddbdbbbabbdbdbdddddbbbdbdbcbddbcdbccbddd 747769330 836331506 436298770 360598184 497215971 883743798 453235417 940102216 466098210 432825051 462444315 970695626 751505158 466160551 234871290 503...
output:
29317540854
result:
ok single line: '29317540854'
Test #46:
score: 0
Accepted
time: 0ms
memory: 18076kb
input:
bbdababbdcacdbacdccacacbbdcdbbbddabadbbcccababaddaabcdcccbccaabbbaccbdbabadabddbcdbdbabbcbadcaaacbdacdaadcbbbccbbcbcacabcdcaabcacdcacdcaacdaacacdaadbcbcabddaadccdbccbdcadddcdbaaccbdccbcbddaaabbadaaadbacdadbbaacaadacaacdbdbabddbacbdcdbccabbaadbacdccaacacddcacbbddcabcbbacacdbbcbdaaadaaddcbbdbdabaccacc...
output:
198753578662
result:
ok single line: '198753578662'
Test #47:
score: 0
Accepted
time: 0ms
memory: 22164kb
input:
acdbbbcccaaadbcbdcdcbbcddbcacddaacccaaadccdbaaaddcddabdcdadadacbaaabdbcbcddaccbddcabdddadcbcbccbaadddabccccbdbdcddbcddaadcdccdccadcddbabcdcabdbcddcbdcbcaabbacccbabbdbdddcdcaddbabdcddddabdbddcabdabdddcaadcccccbbbcacabbdcabddacaaaaddabaaabdbccacdadccdbbcabadaaaabbdaccbbdcaadaadbcacaaabdbbabbaaccddaccd...
output:
1175706581083
result:
ok single line: '1175706581083'
Test #48:
score: 0
Accepted
time: 5ms
memory: 20212kb
input:
badacabaadcdcbbdbaaddddbadbaabdadcdbacdaccacccdcddcdbcaaddbdbdadcdbccdcccdcadccbdccdabcdddcbcbbbcddbcddbcbcbcbcdaaadbcbaabbcbbacaddaacbcabdcbddacbcbddcbddbcbbdddcaccbacdbbccabacbcdcaabcbccdabddacacdbcadbbabbacbdacddbdbabbddcabcadacbbbcadbccaabaacddcbddbadbdbdabbbdadabaaabdcaadabbbaaadbdcdbbdbacbaddc...
output:
4343307668658
result:
ok single line: '4343307668658'
Test #49:
score: 0
Accepted
time: 10ms
memory: 23036kb
input:
acbbcbbbdcdbdbaaacccbabdcbbabacbadddbbdabbacbbdaaaaccaadcacccacccacbbbdcaabdaaddaaabbdbdadaaaccdbadccdbaacacbcaccabdbbdddaabdaadbaabbbdbcdabcaddbdabcccbdbacdbaddcdbacdbadbdbbdabbdbadcdbbcbbcabcaadbcdabdaacbabcdacaddaaacaaccdcbbbdccdccabdadabdcbaccaadccabbadbacdabababbcdcdbdcddbcabbaabdcacbacacccabda...
output:
18148537120045
result:
ok single line: '18148537120045'
Test #50:
score: 0
Accepted
time: 13ms
memory: 23036kb
input:
bdbcabdccabbbddcbbacbacbddbcacbcbcdcddbaaaddaccabbacaccccabdddcdcacbcccbdcaddabacabddcccadbcccddddbbbdaacccbdaaddbcdcbcadabdbdaaabaabddbbbabcdddaadbcccacabdbdbabcdbbbbaacdacddcccbbcbdccccbbadccadabcacabcbcccddbddcdadccdbbbbcabdcbadcacbaddcdbdbacdbccbadcddbcadccbcaacacdddadadddacdccbaddbcabaadabaaadb...
output:
29896432213677
result:
ok single line: '29896432213677'
Test #51:
score: 0
Accepted
time: 14ms
memory: 24740kb
input:
ddacddcacacadabababddddbddaccaddbdcbaaadbacbbadaaabcacdacacdbbdcbbbabaadcdcbbdbcbadbddbddbbdccbbcdbcaaabdcabcbbbcacccbabbbbdacdcbdddaccccddabdccbccddbbcbadbdbddadbdbabdcadcaaadcaadbbccbdcdddaabdcdacbddaaabaaddbdcadbcdbcaabcddbdcacddbadaddbccbdbacbbccdbdcbcddcabcbbbcdadcdacaadcdddcccadccadabbdbbdcaaa...
output:
42723667038306
result:
ok single line: '42723667038306'
Test #52:
score: 0
Accepted
time: 31ms
memory: 23180kb
input:
bcdcaaabdcddcdbdacaacabdcccdaaaaadcdcdaaacbbadcaaabbabdbddcaccaaadcaacbcdbabddbabcabdcddddaacdbaccdaaaadddbbdcaddddbabaadddaddddaabdcbdaaadababccdadcacabcdcbddbacbcacaacaccabdddcdcbcbadababcdcbdcdaccdbacaacdaaacdcaccababcabcadaabbbbcddbccdadcdddaaabcacacacdcdaadcdabcbabbaadbdcadcabbbddbbabaadbaadcca...
output:
73556429714436
result:
ok single line: '73556429714436'
Test #53:
score: 0
Accepted
time: 0ms
memory: 15896kb
input:
adbdffaefe de 324045224 317761183 57530435 316121008 109103977 825634260 512780650 294915712 566399185 233420592
output:
2945035331
result:
ok single line: '2945035331'
Test #54:
score: 0
Accepted
time: 0ms
memory: 14004kb
input:
ecdefcecfeaedcafabefdbccfaeece dfc 606193561 104296307 894084915 391524135 837847290 866964855 5979228 353316473 244324976 471864520 632815674 750879585 525560621 410055117 381684208 815098501 824382308 272230801 396323302 516378993 963768529 844183105 877736518 973353751 642448687 517553583 2344149...
output:
14252295070
result:
ok single line: '14252295070'
Test #55:
score: 0
Accepted
time: 0ms
memory: 24120kb
input:
fabdecddcecffebeacedcfabddfebddadffbacefaefdaacecc ddcccdcfaddfaffafafaae 371554763 287315512 669297447 627901697 510583040 827265260 688183133 416827112 911195352 687660643 585529216 483563207 204524544 974787400 41047296 26270940 192319178 661680267 701296945 858113000 4523949 636087774 494334410 ...
output:
13519145304
result:
ok single line: '13519145304'
Test #56:
score: 0
Accepted
time: 0ms
memory: 26356kb
input:
cdfabdfddcbeffadebceabfbffadfaafebadffffaddfdacdfdbfcdcdaaeccadfeabcadbabfcadcdafadfabffbbacccebaece cbfbcebfbffffebdfffdddcddbcdcdedebadbabbbbee 271529795 252626057 116613188 346523804 56160354 112206473 715828138 199288031 111023225 252072028 418509578 204898208 710392912 905396260 727960070 24156...
output:
26903451564
result:
ok single line: '26903451564'
Test #57:
score: 0
Accepted
time: 0ms
memory: 26220kb
input:
ddbdeaebefabeeacdbfddddbbbdfcddcfcdfbfecabefebbfdfbcaaefedcffcdffeebbfcbfdebfbdddbdbfabcedcadcaafdbfcfcedcbfcebddcfcbbdcdfccabacbabcbcacbcdbadedacddaaccdbcbbbcadeeadecbaacebfcfebfdecabbcaecfaccdaecdfdefbdbadfcecacbeddfeaffafedafcedfaddcdfcfbeacffbccdcfacebbcfbeadcfccfccadfdeafcfddceefbacefdeedecdfcf...
output:
137448172231
result:
ok single line: '137448172231'
Test #58:
score: 0
Accepted
time: 5ms
memory: 26356kb
input:
efbaebaadebaabefecbeabbfdbaefcddeedeeadccbdcedfdfefaecdfccfaeaedaccefbecaedcacdbcadfbffbcddddaadafdddcfcbdcbbaefbefccefdcbcebbeddbaaeefbebbabbfafdfdbaaaeecddfcabcddaebfffadcfceaaaadabfcecadeebabdfdafadffdefeeefadbcacdddafcdcdcdcacddcdebfeaddddbbfbbcffaefeafcbcbcffcaedfaeafcbfdbbdbeccfbbbbccccfefdbab...
output:
982282905825
result:
ok single line: '982282905825'
Test #59:
score: 0
Accepted
time: 0ms
memory: 26288kb
input:
ffffdedebcdababfaaeaaeedadcedcaadbbffaabcfdfadaafaedddcfedfddaaacebdcbcfefdcefefcefbcaeaecacfffbbcbafbdadadffddccddcafbafecdcbaccfbacfedcddebeddeddbfcfffeeecdebbcfdbcbffbefdcafeeebedcfdabafbdccadfbeeacbdeaadfefcaacfdbcfedbbcbdddffdeffceccbdfbccbcecddaebddbeaaabcccadbddedbbecedbdcaececbeaedcefedbfadc...
output:
4165547220564
result:
ok single line: '4165547220564'
Test #60:
score: 0
Accepted
time: 9ms
memory: 28812kb
input:
aeaaddfdaeafbaaddbadcacbcaedcfcadeccafbbecdbcacccfabbfceecebcacefbaadfbdadcdaabfddbabdebbeadcabaabdecffcfdbaabfdebdbaeeeebbfdcbdeabbdfceddcdbffbefbaafcdcfceebadcfcbdccffceaadccfecfcdefdbbcbddebcaddfbedeafafceabacbabefaedccfffdeebbaafbefcacdeabbbadddafaedeeeadcdcadfaacebedbdaebedbcdaedbecbbdbeaddbefd...
output:
16458411342087
result:
ok single line: '16458411342087'
Test #61:
score: 0
Accepted
time: 15ms
memory: 31044kb
input:
fbaddbecbdadcbecaceacbffbdaeedffbfdfbaaeadeedfbafdebedcddafabdcbeeaaeeaedbfbfababbcfbebbcabbccdddedaeaaafeebafbafeadbebfcdedefcfecaeeadeefbbacffcbefcabcbebfbecaaaeeaacbefefbdabedbfafbaccffbafdddeaebdcacbccbcafcedbfdefeccbdfafdefbfbbdcfabbbeaaecbeabdcadebffbafceacdacffffdbfcdddcbebcdeefafaabbdaecdebd...
output:
32444040431564
result:
ok single line: '32444040431564'
Test #62:
score: 0
Accepted
time: 28ms
memory: 31848kb
input:
bcbffcdcfdadffdcccddccfffddabcacbffddadbdbacbfeccedabedfcceecdecfccbdaddcbdacfdecfaccdfaccdaeeddddbceacbcadfcaaedbaadecaaefaefdabafcbbfebefebeaddeedbdfeddefdedcfaeecdaeafcbbcecafebfefafbfafbcfebefdcbdcaecfdeebdecdebbfaddaeabceadeddcdfbbabcbdeebbbfefeacdbcbaafaddeeddeecadbeeefeabafeabbcebdfbaacfddfab...
output:
41187376187008
result:
ok single line: '41187376187008'
Test #63:
score: 0
Accepted
time: 30ms
memory: 29536kb
input:
fdcddbbfedafbebaffcfdebfacefeaadafdafbfdcddcdfdccedeeadcdfcfbceacbdfacbfdadebbdeeccffaaaadabfbfceedabcebfcefbcdbfcbadcfdaadbdfdefbebcaebfedadbfdbbebfadcdcfcebbdbcfcfdfdebbdfbabdddbbebeebabbfcdcfbbcccfadffcdfdeaaffeedbeffedccdddbdebfbeebcbebafefacfbaafacadfdedecabecbdfabfbedfbebedbfecfbdbadcfaafcefaf...
output:
57571594878519
result:
ok single line: '57571594878519'
Test #64:
score: 0
Accepted
time: 0ms
memory: 11868kb
input:
fjdjbcgjic j 358087123 908037185 520142488 413961802 720108971 1371577 371244351 889284466 34451584 34681002
output:
3343333364
result:
ok single line: '3343333364'
Test #65:
score: 0
Accepted
time: 0ms
memory: 22108kb
input:
biccagjjcbficcdgjjfcjibcchdbjc jiccjjciccbc 936969414 829813137 1413183 50308775 674638838 629682703 90550807 261298050 128890189 969579359 392714268 380980909 903547534 151303007 899729937 199791322 37706143 568239797 103443999 19039679 813331211 965039429 651323730 450042004 69017214 289576124 861...
output:
8819576234
result:
ok single line: '8819576234'
Test #66:
score: 0
Accepted
time: 0ms
memory: 26200kb
input:
gdgbgaahcbbghajhihfhcbijhccbbiiahcfccifchjeeicabed abhjhcchjied 909026838 884223012 363602415 643715228 331475692 941312514 778850571 838010494 726266826 501222065 632315300 223955668 867513818 67222561 792192630 832726129 631281292 176781862 886379203 230050890 516581907 152696568 313462479 7242234...
output:
21605790760
result:
ok single line: '21605790760'
Test #67:
score: 0
Accepted
time: 0ms
memory: 36528kb
input:
fdhhfagdaafghfidiibjhhabhjbhijbcbhaheeehbdbbehaghfghejgbcifeaifbghahbfagghifajcaijchghejabhjaafiaaai daadajjadbhahfghejgbcfeaghahagghajcaijhgeji 25032510 483042098 546326897 389195906 784275749 492881872 559312753 817232760 411835515 871049714 289317603 904238184 172324479 832766088 249906765 747541...
output:
26505357231
result:
ok single line: '26505357231'
Test #68:
score: 0
Accepted
time: 0ms
memory: 40700kb
input:
ajhgiijeeidhbeicdgjicgdgdfgajfedfgbjegbcdajijghfiadfgijagejiggedjejgcedaeaagaecihfgcdbhjbiaegdifigfbjceeghihibhacjedecjhfhaceaahdidcabegebgibhdbejcceffcgecgjjebdiabidifaehcfbeggjheiaijciggjbdciejacgjeeffbfhhdihfagejdbdiaehdbegcchdbbjhfjehbcagcecbeaeejfjdecfghfibcjcijdgdaifbaajcfhcibhjfbhabhgbggchcff...
output:
172651886796
result:
ok single line: '172651886796'
Test #69:
score: 0
Accepted
time: 0ms
memory: 42552kb
input:
cafaiibadbfdjabhagjechiejfjigcbgabdccifbaihahchfecgbicahiaaccdjdajabcehfbdejjjjfahgbjfigjgcdbafiadbafbijchdhfhgchedbgcfhjjbbhhaijjebhhgbafgfggageaeegahijcfieefbagbhhahfghfbbgfbdgcbeeejddacfhehfdfhbjgaahhhgfiigigcbaejddcjhdbcgcchfhbhdiheiegeiifhhjdjibibajfiahdhgadegbhjcdhfdgecajfdddabcecjadbcdcbfjchg...
output:
939292865942
result:
ok single line: '939292865942'
Test #70:
score: 0
Accepted
time: 0ms
memory: 40556kb
input:
cfgfgjaijafcjgifjiagbbeddibcbaeafhcabbjebcejjbgaeeiiefcjbifhieaggbbagbbghidfidcfbgiedgbaeigedegdbhjcafejjceihigihcbdcgfhibebjfgdggijchjfaehjjbgifebgejebcifihhabigfdiadecjfgababfiijhaaifjcfibebhbbagbcdadidgecghjfcigagfdcijibcceijdgibbdjabgafcahagdhefijchcbddcccefacjjgfaahedhechgjidgjhjffaajedgfijghbc...
output:
3199701724031
result:
ok single line: '3199701724031'
Test #71:
score: 0
Accepted
time: 9ms
memory: 42904kb
input:
cjfbecbaecaiegbbjefcdgcidcdhedbaeeiahefgbeffcdiiaegjccjiacigiccbjjdibbegbijgeeeghfbefibfbjhbahdhheehcidbidjaghbcacgbjaagdejciajcgfjfjfhfdbbjeehbajfaeejfijcdehghhiadhaedfahhjdajhcagjadjfafhgechhdffiedbgjgfajdbifhcacadhjaefdhcghjdiijhfefchgbaeeiehjigiihcdeccaghbaaacijiiigfahhidjdchcjcaagegecjjcgchdgdd...
output:
17519384324739
result:
ok single line: '17519384324739'
Test #72:
score: 0
Accepted
time: 15ms
memory: 41468kb
input:
jgedgheidaahbgeghijcagcacgcefcfgjgeiiedeafdaceeaebfibaefegbgheibfagabficcahdibdfieijgbjdjaheagjheefdhafaeaacicdifghbedfadbaaiaiajdgabeajcgfhibifabadiceidgjfjegaibdbcceggicdahgbcfbddhaaiejabjedegdahigdjfhbdagdfhiefjedbjcbcaeagfaebjcbbcbdagchbbadbggjbdaadhifcdgghjhifbhchhdhfaaehejghbcaceheggiejifeeadf...
output:
41161205451899
result:
ok single line: '41161205451899'
Test #73:
score: 0
Accepted
time: 37ms
memory: 43792kb
input:
dgbjeaifeeejdaiidbaadehdabiighiegifcgdbfafgahigdbjghehgjhcfjfciabbbjagfhjjaefdjibgddabcgaiaiihbjfabebjdggjfgiejhedegfccfddiddbefccihdeccjcbbaghhjgbeifbbghjecjcbbbgbgcjgccbaajdgbhigcdbgdfbfcjgedegfacgiefcchdhjdbijfceiceceghiaiaghceieieaihejhfhejbeheaehiagajafcjbgfcahjeajbggbgdbhahdejjebfiadeebbjcefeb...
output:
52444152424386
result:
ok single line: '52444152424386'
Test #74:
score: 0
Accepted
time: 44ms
memory: 44992kb
input:
cieaacjbhcccfdiijcjjedieafhhaeccafbdgbecheecjfaaafihiejcjiejjbfdajadbfgadhbghgbaabccahcejddedihichbejjbaaadfbhjadigbdbfhjjahgcedagfihjbiidgjfcfiadcfhhcdaggjjdadbchhiebegabiabaaeeaabjebadgbiibecdhigbahbhhfhhchfbeceaigbhceibgbccfgbjiehaiejdhbjggeaideiiajaegfdabjghhhijjchheibhgfdbjhgididhjehjfaiebeajde...
output:
67706834285647
result:
ok single line: '67706834285647'
Test #75:
score: 0
Accepted
time: 0ms
memory: 11836kb
input:
keaogmfeee e 866843472 213551094 692522231 120003108 160388170 199358555 727005640 450273871 325749445 830806953
output:
3755695586
result:
ok single line: '3755695586'
Test #76:
score: 0
Accepted
time: 0ms
memory: 24160kb
input:
kjmkefcloioflcnmjdnkjllhkofjhk kflmjkjllkoh 590744529 876080818 814159676 139419063 762177160 918294346 962270047 798391160 331205349 209902261 381598181 101543219 270577741 867664246 51867100 281683496 597153305 178070313 889209734 468274154 416590870 946606843 39058139 409897185 606486787 89897630...
output:
9553066517
result:
ok single line: '9553066517'
Test #77:
score: 0
Accepted
time: 0ms
memory: 28208kb
input:
jobakaflcmlkbiinhfcebghofmkeijmkmceioibkiedlakeeoc kbhfmkemmceioeloc 512286496 570823129 751336825 458346218 723721073 400969586 811810039 189011121 362636691 9011261 626690236 225955454 924919142 56180831 984278239 358914113 950707419 571348531 67448013 447380832 545366135 754742984 894190020 38435...
output:
16688458557
result:
ok single line: '16688458557'
Test #78:
score: 0
Accepted
time: 0ms
memory: 38636kb
input:
eiifomfnmbcoojdkhbokbkolamnglhbjgieicocjknimkggldjmcglgbbebkfcninolbekmnflgobglmfmfmmlclmgniadogccij fobobiiocjkiklbbbinolbenlolmmgniadogi 761821575 248393132 832528622 704266849 662054754 141169568 713535101 670230002 966598997 53847223 104609209 929936129 639896505 973341375 403238251 476081693 11...
output:
30229711289
result:
ok single line: '30229711289'
Test #79:
score: 0
Accepted
time: 0ms
memory: 50924kb
input:
iodockjoddeebaiihdmfhnldoainmbjalohehijkkcoebeecejkcikhceoilmdikldajgkhhkcehaghjbieelkaceoibfnkiadccfjdhdbhngeoeoiioldcaaoeoodfdjmmdffkdiffagihhamnmdihombagoacidddjhnoogemgmijnldodknaifofjkmokklekdjajkijibhidjfochiabjcienmkcegokeblbkkckhegodofgkmkjiijalldoeiohcbmakjcahcnafmhddolhocfflhmfafbmkhnbjdad...
output:
174580147682
result:
ok single line: '174580147682'
Test #80:
score: 0
Accepted
time: 0ms
memory: 57024kb
input:
fkddmifkdhkkhekjofmabkbfalhedbbniaokmfmadinbfginfnmgkdekcgijmjjkblbakeekhihedgjhiaioikbnhmlhefnabgfgodoaeogooimbhacbiigkflmhnifcibfkfohmkmhbgnkdljokgejjfdcmdonemidibhgdcchfmnfkgajeihgjjoeoonkalbbgaccofkanhjakiakangfmmhbhaebigcmnfadbbhfceagfgaoekcojnmiehmkfhggcgodemmkkddcbhkebinfakodafadhkjhcglficcob...
output:
1025423170876
result:
ok single line: '1025423170876'
Test #81:
score: 0
Accepted
time: 6ms
memory: 59044kb
input:
lggmklaifbeancgingnohhfjmfebafnobhfciemdaiadikneohffbehhnijmekengcaamcneoaefjbjmnehdanhegecfnmbkcjcajnjfigdjjobglmagohjfeimmlalonilnbiadhmffncadalmlkcdkeamocjdnjfhldmigohkfldjijhbdfdgocaadbcdbkelbdbiclnllkejdlbfoofieomlchdldmecoagmkggcjknacahhmgicmfmnejjocljblcofmobkkbmnegmjfokdeahlamfbhfheomjbcoibh...
output:
3213162031496
result:
ok single line: '3213162031496'
Test #82:
score: 0
Accepted
time: 13ms
memory: 55616kb
input:
lcabjhaooekomhghonincdliaalbbofejdihcffjdagegheefdfiaebmondmlnglkoibfemcmmlloghijigcimfdoakkbcnaedcnlkanohjhfcbjbhfgllbajaaefmojimhkocngoiegkacllghjjdfkmbebmddeichdgneikfdfgdabllfecdfnmdffmeldfdbahcoabaaaeinfideemgkljdeinnchkhfhbefgomhogbckodbedlnjhieoaggolehljbajdbfkeegkgdelniloinfddhkdllemkjfbbblf...
output:
16326896407069
result:
ok single line: '16326896407069'
Test #83:
score: 0
Accepted
time: 22ms
memory: 57916kb
input:
cmfikmkkhgkaokjmldlglclkmekhhikemhdndakmoelhgnmemgloddhamkfnhamclhciikmbaaicoohmbdhiikhfimojlonakeecnnkhbeamkmafklbckoonaidllbkgobaekobabjlodilflndjibdjfjkbilohcffgbleabbckhmgbkgealalbnkldjhikgidjcfmmdldicbjlaljhdmakfdmbfhgghklndneglmebinnojeafkgbogdfnncnbognnhiklhfkdcoohjegilehcckjdafndgnmlgknifkgi...
output:
34979557935310
result:
ok single line: '34979557935310'
Test #84:
score: 0
Accepted
time: 46ms
memory: 56168kb
input:
hlbhdjoaoffikceamkndoicoicfgkcmbcoihiljghbldgckclfceljccnlbjeimgijnfkgnfcjmfbflbeockklkaaiicjmabmkdbjcaiaagnjhbncndbheaombejlifcaiebgjdiggegbljnmffmeiimhnjjcfammkfmfcjldfnafdnejlliochmhgneinfamlidlimimakgchieoiilagkbbogidcoalaikocmegacebedjdkobdjmiojhjlgjicbonabfhmahnfhmmbgdlehodgfmmhibfamndjjmolfhm...
output:
44207052014582
result:
ok single line: '44207052014582'
Test #85:
score: 0
Accepted
time: 55ms
memory: 57884kb
input:
aeajeeabmhjkejhokohhnbikigoeekcolffnbdgcbjbkdigikkjfekeacbifnhjflgbeafcbgdmahdjcfjalimbdcalnbfalcbiedgfohndcigkeimgkjgegjanddneacnaejoneakjkeiiofjdgklfkgkcobfnjkhmbjihkcajhnnfncdnfelbmbjdfhlaeiljgcbbllmbklbhiknaboihijmfgcgmichjejjfnoggnmehcbleijdegonhbdbjieiehldideknldgkkkkoiakjnidjogfamldhccbjjgjab...
output:
70012040436477
result:
ok single line: '70012040436477'
Test #86:
score: 0
Accepted
time: 2ms
memory: 12024kb
input:
eorkaohmti a 9415755 783661991 866364397 121465421 295675435 827889422 655734111 792370490 277625822 329755521
output:
4664282930
result:
ok single line: '4664282930'
Test #87:
score: 0
Accepted
time: 0ms
memory: 17980kb
input:
faqniiiorhmcpngbqbdsggrkfnpkee iqgrf 208438795 399059866 403906554 299753049 451323212 527225647 568091029 815661143 189484042 828523741 766696499 790205042 804703198 441942143 854754902 48192123 907576021 608489345 639837750 895908636 511803886 168745317 618696764 887530064 287923615 207262785 3962...
output:
12725838154
result:
ok single line: '12725838154'
Test #88:
score: 0
Accepted
time: 0ms
memory: 28388kb
input:
ljdtjcqaehmdglgbarcnclihoipifpleobtrrtajbbdmtnlpjg dchiplottdnj 757242617 237672004 330975450 81203288 550382093 709256071 313313915 916505037 895715534 764871912 30795591 550075725 611317710 207459423 3233610 835274206 924864562 771429021 337615460 171880567 289288757 496051587 107064520 346680454 ...
output:
19396777822
result:
ok single line: '19396777822'
Test #89:
score: 0
Accepted
time: 0ms
memory: 48788kb
input:
esidsqqpfssqokamojfdgpeienmmebftagonafrkcfslhiihqipohpiflheqhgclilafcmcmlokmjmrlpnbllfnaldeohogmmhoi pimmgnfiiipohpiflheqhglilfmmlomlnbllfadeohoghoi 420114088 468146531 683651564 237009047 914225733 586359921 198704177 442890594 46492495 540276375 765570593 218776922 300786194 548378807 125717435 95...
output:
22968026903
result:
ok single line: '22968026903'
Test #90:
score: 0
Accepted
time: 0ms
memory: 65080kb
input:
fogqahfarsafonklpkfihljjrgmkpsipgeftahijqnocklberbkohmncacffdjbdlfmmeroamsnmkqbtkttktdcilmnthpdbbpemqjfotbhrkhmqqkbrdepflqstlhfrlmafmaislckmkiqqoahrdmiehphrqfhqjlqjrrlilcssddjbajoimkrftijsagjadbqhbacmtabfebrbkhaorcpnetgnfbmpbefdsncpmqrtnjsljidjobjsaamslohbacooqncafortopdqedkhmrhcbpcrabcmtgpdjhcdktbg...
output:
148484448766
result:
ok single line: '148484448766'
Test #91:
score: 0
Accepted
time: 0ms
memory: 71360kb
input:
epfqahcnilgtqthdcnoeibkiehqplfrhlodtaqhbtkfislacjbosqhcthefefsisginnnlstkrrdjroqnnaekmermfpdfsbmdjrkhgsnhtctopnogqgbffglrilklrhrfngdtjasoaanmmktbcgjbrgiadqijakgqnbhqkstneqpdbttrhhrlmdpartkrcoceqqokdkkkqjqpelgchnmbkgtkokcglabsobjfhprelhejptjmtmcjibneptgeehdftdogknddroqqfahqsrddbcpatbbitdinqthqffattto...
output:
999959960057
result:
ok single line: '999959960057'
Test #92:
score: 0
Accepted
time: 0ms
memory: 71480kb
input:
dlakemgrhbasibsfppdqbpmhqesahmhhepnhbjleqpggkcfbdqrhjiklikaobrdfqqiiascchbrtldsasardsboakjjfecohorncfldneqdifqcehbedlpqbpeqikqdjnfnaamsqddlrorqqggqpfqjkkprhcnghilghokaijdjtrtirtdteoopetkadalpgeaonfapdnokmorcodriqeaecscgpijoahgradsjpegjkgidsrlejodpqlcclhqeqeqbhmbchqggmegomffrsjrjodsehapetdsmtkiiatorl...
output:
3438370222102
result:
ok single line: '3438370222102'
Test #93:
score: 0
Accepted
time: 19ms
memory: 71776kb
input:
pbfqdfhjpcbclprgmhaqjrotoiplaplslcphtdnsehqjnogjfhftfbdaalbotrpafipgjsgkkqkaocohetmtqogjhsofrpcdjgjrnniplnsajkasjljksdpkfnjbnrpsqefnlqrikkaqkpqkjlrsfbdpgmoqtdlfrpmjmqmgmeitbtpbtihkdcrfmmrjlsmfeknnhirdpngasmhntflcpqkgjetbonefrbmnaiarfhpigrsjocjsroqiaetrhiobfqjsdqolgkgfqcinhprtcbjtgnngcmpjtdrpriccmmpo...
output:
16195899904319
result:
ok single line: '16195899904319'
Test #94:
score: 0
Accepted
time: 27ms
memory: 74396kb
input:
bcmsttdnialbsblftkqqmbhmmrlmgiajkpfiqbtllhiieljrbaekcqskhkgnenbfmticgsjqhocnsjqqlorirgpoaptlhqcddgptkseermjgkciotttenemockmhacfjpmmhdneatbjkhcnmldhipjpknrtpfabcigthbmbthkgfsjefocehrblijpdcjbslpdkoqginqkjqgqmbbrcsbricdbbifnnstpdirletcfbktsfqcdrlhmllordnhnnjmpjbplrdctphflakhikajcohsjlkneotdbabstttdrjh...
output:
33085135592562
result:
ok single line: '33085135592562'
Test #95:
score: 0
Accepted
time: 58ms
memory: 74044kb
input:
nhdirpfikeleglaitlfgjtthinbhcbljhhsnaanetsreprhbasrflaabigrkcphnhgotrsmntdpbrpatecsbptielmdrejfnssffrfecrboslopbnggfojrdqsiqimbfkgotptptrhqdoqqarsfgpmbdpiophpqrrsonpcqftnpnmdmcpdjkkdacbtphmcqcotpmjntomaogpcgbplqdqgicijhdtbhlnitloffettkikggmnibelndgkimhearapbfcbmjdeortsjiponqnjfmslaapaiqndofkgitfhbjj...
output:
45949779323956
result:
ok single line: '45949779323956'
Test #96:
score: 0
Accepted
time: 72ms
memory: 75844kb
input:
rdcjdsipsmpsimebdgcffhkfraifqqqijocaomkbmgbggastpegcdjroclphgaimqimdtshfibbgheqbfoflpphmkrajnaseftqokqcqdeqhkalqbfoecbhbliielbobagcgptltqdbppnahleskgebdhdgkebbjrrgrdnsddcmackebiepefhjfrhgjgkcdfaffnqddabjjilkfgdhgksitsgibtpjmhassnapmpjjlhehadlrnknfgmcfigntfhmjsepjifncqfnbmttglpnqifcqitcstoehpjprfrfsk...
output:
68301850260427
result:
ok single line: '68301850260427'
Test #97:
score: 0
Accepted
time: 2ms
memory: 11864kb
input:
mlbstdvukc a 324956077 951182464 309193925 111529094 994061854 948390660 780751364 745763293 193016983 883299097
output:
You better start from scratch man...
result:
ok single line: 'You better start from scratch man...'
Test #98:
score: 0
Accepted
time: 0ms
memory: 20020kb
input:
esicklgmixmiybnmaylfrpzprsccau imlp 651962392 490554920 16983747 407589176 480381333 79584835 44102738 356043954 560492020 857917765 123408574 165937734 939202960 172619521 296312957 852399218 159029402 670145856 170706200 788950762 13599637 711556159 278856622 788195603 303842264 725588783 72111089...
output:
11639717495
result:
ok single line: '11639717495'
Test #99:
score: 0
Accepted
time: 0ms
memory: 24120kb
input:
dzsjeteacwbwutqlrcrwbgmsirmorcwjjrfkgcljiednpealbo etgliedelb 404262560 925707038 286102604 981868827 421076550 227582069 638192226 739440 859359373 369274972 664963325 616412902 386140585 118221482 412524283 121475595 897206724 496069702 243840112 646959557 315997050 589462449 921020705 229168842 4...
output:
21720125453
result:
ok single line: '21720125453'
Test #100:
score: 0
Accepted
time: 0ms
memory: 44716kb
input:
gfoddrqzgiguexefzbtiuptgeqvaorkgwecisdoahgkkpgnnkgbtslbniduhflrwzxfyoaooixwjxyntikhilqgvayqnowtsyrex zutgkpgktuzfaoixikiaore 136619674 161740586 310010499 45042800 586539970 981299562 836739238 925480743 571202133 707568924 484023278 506800350 877963250 981184045 600464863 906881844 380309533 832403...
output:
40645876631
result:
ok single line: '40645876631'
Test #101:
score: 0
Accepted
time: 3ms
memory: 79440kb
input:
fbnuusfgsgzpkyoykshfutrlzadxxtvhrtnmoyhhzgkguligxuqzicokburtfeqcqtanrnrmacxslprwvqypeotzlidiwfekcncxjytystulqeonawhymfexojzskcelainuofcobtjldsteqzvxttqrfqfymziadxylazaejwylszkptitoauyrujgenvozpghwowhyeguejxjepbdfpikydqpczzxdqtoqagxzuzkkvzjmhdafmmmotgcpivuukdqheuyhvjgjhzzcxpxxsfhnpcjqefrktdimztguwrlg...
output:
185013342925
result:
ok single line: '185013342925'
Test #102:
score: 0
Accepted
time: 5ms
memory: 79680kb
input:
vcziiccvzrbzvrxbfjtqhlevgnzdxumyrsnkfhzvhzyueyxclmptojbnyqbnrkhpxmfvnnzrphfnynqufugnyoidxfjajschafpaufjfkrcjhrablkquxsypwdehiucvinpqzepmwjvsgkoblqxdbkqfqmkbwyhugwehdudgfhbggqjvygguniokteiyhfvidxfzehzkqcewrgntdwgxxctapalgglhmhlopjmjdgeeptdekpudcaybtgvleodozgmtsqslpxusjilxviykrhuysldgkvusrdorgbjuixwhz...
output:
1041482421524
result:
ok single line: '1041482421524'
Test #103:
score: 0
Accepted
time: 3ms
memory: 80332kb
input:
ddwbsvslookekemaevowigueefbvqeuuvnkidsgygcprxxkknqvaikckrqghuieyfajlroncpidenwqwjrvuwdhdubmigmtypydmcfptuebqjiptehbeekcruyzzdxizvzwloiqqskqkklgxqpmoxpgzfelavxxhmsszpahdyjwqaprfrzrjsqagbjmfuewerfjgucclxqdwitopejfevqttvxfqkkhwqrgattkjctinywyhvujxuyzmdwoillvpjxbnegkbuiiubqwynbgtpohhcizsrbtvrndxiawvxetd...
output:
3258601132296
result:
ok single line: '3258601132296'
Test #104:
score: 0
Accepted
time: 21ms
memory: 84012kb
input:
hhrwosvbiiboxkjlufhxehrlsoyewxwsklcedzfycymeyozfbxbmzxvcwjwdfuopayuoiqkgdimsnmcntmqsmuxgvwvikxlgdipdwugxeyuwiobvwrvjtmbuqratcuqmiqkltmxsvhaauyysukgnblhyndgzsyckbgknfitakendqfejfxojfnkjrtvhwvhkzfrgbgcxcvbissgqfbcahwrrzojzinlmuuttrrphfgotevgoanuhegaccumtekjtpjdzqgmleousrlmbtruewszghpithoipvocddhfacoxu...
output:
18157338767403
result:
ok single line: '18157338767403'
Test #105:
score: 0
Accepted
time: 51ms
memory: 86204kb
input:
ueoyasnrlalvauryczfxrrltwladcgjuovsniuxfaaoamrsbffuptyvuguszarwivzbkugmsglafxykcuvvxekaoxlegiinlaqsabdeyhiloehntfplgvhghwflyhnojryderweulighummogkbmsydbmwnzcgcvfhyzcsjzdephtflitchrvelmczbyxihequbzhibrgxckfcwsqnpsgldregfcfmasyauguuyccgfbhwzlsmgftnsxarttimkhigvuhlppuvufwbkbfgwjmzqydswpbsrbtmpoqdpzcydo...
output:
35725722716650
result:
ok single line: '35725722716650'
Test #106:
score: 0
Accepted
time: 58ms
memory: 89992kb
input:
msfxcqvgnmemhvauoiwzcljcscenrdyeepwalejoqbdvxfursbduywgofqnvsigougirfdmlnvneslythnbsziunlubeubwefwxealdutzowybmwuekheqhfbncpgxyzcszqbtdtdakisaiqtpkrvarqdbuycprizkvlmqidlcweyxzsseqwanaelqndanjtdcqxhawyiqnnfqwggulvyotdylpphnqwuraxrciuvgjjisznkpemkvmarqskscwasafmrejoosacxdvfirzamoqtgszlrvzxalqihmlfvrwt...
output:
51440647488816
result:
ok single line: '51440647488816'
Test #107:
score: 0
Accepted
time: 89ms
memory: 91224kb
input:
vmylsvkjpsnkeacgwraflcenjehqrgncmolvekgdnxfdzkmxtytornsrxfpyedxjfqvzsamidndsgsqbahvyzvcfduycfmdgoimhlrsyphodzimngfqstfotshryamnnibjcraodyuxsvbrhvpbhqzdqneynwbiiykelofnvfsdkpsfjnpbshdwxwcnzqfbpoqamlzslcducbrzalycgminoxgfmnykzotvyfvaatuoadqkzumupmncydqvwdiojzdzumjnqnbsmmubwxbskqgmjontpwljnyjiegdtjfnun...
output:
63402353434409
result:
ok single line: '63402353434409'