QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#655051 | #7815. 结构体 | XY_Eleven | 50 | 1ms | 4264kb | C++23 | 8.2kb | 2024-10-19 00:02:12 | 2024-10-19 00:02:12 |
Judging History
answer
#include <bits/stdc++.h>
// #include <windows.h>
// #include <bits/extc++.h>
// using namespace __gnu_pbds;
using namespace std;
//#pragma GCC optimize(3)
#define DB double
#define LL long long
#define ULL unsigned long long
#define in128 __int128
#define cint const int
#define cLL const LL
#define For(z,e1,e2) for(int z=(e1);z<=(e2);z++)
#define Rof(z,e1,e2) for(int z=(e2);z>=(e1);z--)
#define For_(z,e1,e2) for(int z=(e1);z<(e2);z++)
#define Rof_(z,e1,e2) for(int z=(e2);z>(e1);z--)
#define inint(e) scanf("%d",&e)
#define inll(e) scanf("%lld",&e)
#define inpr(e1,e2) scanf("%d%d",&e1,&e2)
#define in3(e1,e2,e3) scanf("%d%d%d",&e1,&e2,&e3)
#define outint(e) printf("%d\n",e)
#define outint_(e) printf("%d%c",e," \n"[i==n])
#define outint2_(e,e1,e2) printf("%d%c",e," \n"[(e1)==(e2)])
#define outll(e) printf("%lld\n",e)
#define outll_(e) printf("%lld%c",e," \n"[i==n])
#define outll2_(e,e1,e2) printf("%lld%c",e," \n"[(e1)==(e2)])
#define exc(e) if(e) continue
#define stop(e) if(e) break
#define ret(e) if(e) return
#define ll(e) (1ll*(e))
#define pb push_back
#define ft first
#define sc second
#define pii pair<int,int>
#define pli pair<long long,int>
#define vct vector
#define clean(e) while(!e.empty()) e.pop()
#define all(ev) ev.begin(),ev.end()
#define sz(ev) ((int)ev.size())
#define debug(x) printf("%s=%d\n",#x,x)
#define x0 __xx00__
#define y1 __yy11__
#define ffo fflush(stdout)
cLL mod=998244353,G=404;
// cLL mod[2]={1686688681ll,1666888681ll},base[2]={166686661ll,188868881ll};
template <typename Type> void get_min(Type &w1,const Type w2) { if(w2<w1) w1=w2; } template <typename Type> void get_max(Type &w1,const Type w2) { if(w2>w1) w1=w2; }
template <typename Type> Type up_div(Type w1,Type w2) { return (w1/w2+(w1%w2?1:0)); }
template <typename Type> Type gcd(Type X_,Type Y_) { Type R_=X_%Y_; while(R_) { X_=Y_; Y_=R_; R_=X_%Y_; } return Y_; } template <typename Type> Type lcm(Type X_,Type Y_) { return (X_/gcd(X_,Y_)*Y_); }
template <typename Type> Type md(Type w1,const Type w2=mod) { w1%=w2; if(w1<0) w1+=w2; return w1; } template <typename Type> Type md_(Type w1,const Type w2=mod) { w1%=w2; if(w1<=0) w1+=w2; return w1; }
void ex_gcd(LL &X_,LL &Y_,LL A_,LL B_) { if(!B_) { X_=1ll; Y_=0ll; return ; } ex_gcd(Y_,X_,B_,A_%B_); X_=md(X_,B_); Y_=(1ll-X_*A_)/B_; } LL inv(LL A_,LL B_=mod) { LL X_=0ll,Y_=0ll; ex_gcd(X_,Y_,A_,B_); return X_; }
template <typename Type> void add(Type &w1,const Type w2,const Type M_=mod) { w1=md(w1+w2,M_); } void mul(LL &w1,cLL w2,cLL M_=mod) { w1=md(w1*md(w2,M_),M_); } template <typename Type> Type pw(Type X_,Type Y_,Type M_=mod) { Type S_=1; while(Y_) { if(Y_&1) mul(S_,X_,M_); Y_>>=1; mul(X_,X_,M_); } return S_; }
template <typename Type> Type bk(vector <Type> &V_) { auto T_=V_.back(); V_.pop_back(); return T_; } template <typename Type> Type tp(stack <Type> &V_) { auto T_=V_.top(); V_.pop(); return T_; } template <typename Type> Type frt(queue <Type> &V_) { auto T_=V_.front(); V_.pop(); return T_; }
template <typename Type> Type bg(set <Type> &V_) { auto T_=*V_.begin(); V_.erase(V_.begin()); return T_; } template <typename Type> Type bk(set <Type> &V_) { auto T_=*prev(V_.end()); V_.erase(*prev(V_.end())); return T_; }
mt19937 gen(time(NULL)); int rd() { return abs((int)gen()); }
int rnd(int l,int r) { return rd()%(r-l+1)+l; }
void main_init()
{
}
cint N=105;
int n,m,Q;
string nm[N],nm2[N];
LL mx[N];
int typ[N];
LL Siz[N],siz[N],siz2[N];
struct ST
{
string s;
int id;
};
int len[N];
vct <ST> v[N];
unordered_map <ULL,int> mp,mp2,fin[N];
ULL xor_shift(ULL x)
{
x^=x<<42;
x^=x>>13;
x^=x<<16;
x^=x>>35;
return x;
}
ULL gths(string &str)
{
ULL hs=0;
int ln=sz(str);
For_(i,0,ln) hs=xor_shift(hs+str[i]);
return hs;
}
int qry(string &str)
{
return mp[gths(str)];
}
LL up(LL w1,LL w2)
{
return (up_div(w1,w2)*w2);
}
void main_solve()
{
cin>>Q;
n=4;
nm[1]="byte",v[1].pb({"byte",1}),Siz[1]=mx[1]=1ll;
nm[2]="short",v[2].pb({"short",2}),Siz[2]=mx[2]=2ll;
nm[3]="int",v[3].pb({"int",3}),Siz[3]=mx[3]=4ll;
nm[4]="long",v[4].pb({"long",4}),Siz[4]=mx[4]=8ll;
For(i,1,n) mp[gths(nm[i])]=i;
m=0;
while(Q--)
{
int opt; cin>>opt;
if(opt==1)
{
n++;
cin>>nm[n]>>len[n];
mp[gths(nm[n])]=n;
For_(i,0,len[n])
{
ST t; string ty;
cin>>ty>>t.s;
fin[n][gths(t.s)]=i;
t.id=qry(ty);
Siz[n]=up(Siz[n],mx[t.id]);
get_max(mx[n],mx[t.id]);
Siz[n]+=Siz[t.id];
v[n].pb(t);
}
Siz[n]=up(Siz[n],mx[n]);
cout<<Siz[n]<<' '<<mx[n]<<'\n';
}
else if(opt==2)
{
string ty;
m++;
cin>>ty>>nm2[m];
mp2[gths(nm2[m])]=m;
typ[m]=qry(ty);
// printf("%d\n",typ[m]);
siz[m]=up(siz2[m-1],mx[typ[m]]);
cout<<siz[m]<<'\n';
siz2[m]=siz[m];
for(auto &i:v[typ[m]])
siz2[m]=up(siz2[m],mx[i.id])+Siz[i.id];
// printf("%d:%lld,%lld\n",m,siz[m],siz2[m]);
}
else if(opt==3)
{
string s; cin>>s; s+='.';
int ln=sz(s);
LL w=0ll,w2=0ll; ULL hs=0;
bool f=true;
int t=0;
For_(i,0,ln)
{
char c=s[i];
// printf("> %c\n",c);
if(c!='.')
{
hs=xor_shift(hs+c);
continue;
}
if(f)
{
t=mp2[hs];
w=siz[t],w2=siz[t];
// printf("%lld,%lld\n",w,w2);
t=typ[t];
// printf("t=%d\n",t);
f=false;
}
else
{
int t2=fin[t][hs];
// printf("%d,%d\n",t,t2);
For(i,0,t2)
{
w=up(w2,mx[v[t][i].id]);
w2=w+Siz[v[t][i].id];
}
w2=w;
// printf("> %lld,%lld\n",w,w2);
t=v[t][t2].id;
}
hs=0;
}
cout<<w<<'\n';
}
else if(opt==4)
{
LL w; cin>>w;
int stt=1; while(stt<=m&&w>=siz2[stt]) stt++;
if(stt>m||w<siz[stt])
{
cout<<"ERR\n";
continue;
}
// printf("stt=%d\n",stt);
LL w2=siz[stt],w2_=siz[stt];
// printf("w=%lld\n",w2);
int t=typ[stt];
string ans=nm2[stt];
while(t>4)
{
w2=up(w2,mx[t]);
// printf("t=%d(%lld)\n",t,Siz[t]);
// printf("w=%lld\n",w2);
if(w2>w||w-w2>=Siz[t])
{
cout<<"ERR\n";
continue;
}
int t2=0;
string lst;
for(auto &i:v[t])
{
LL w3=up(w2_,mx[i.id]);
exc(w3>w);
// printf("i.id=%d\n",i.id);
w2_=(w2=w3)+Siz[i.id];
// printf("> %lld,%lld\n",w2,w2_);
lst=i.s;
t2=i.id;
}
ans+='.'+lst;
w2_=w2;
t=t2;
}
// printf("t=%d\n",t);
// printf("w=%lld\n",w2);
w2=up(w2,Siz[t]);
if(w2>w||w-w2>=Siz[t])
{
cout<<"ERR\n";
continue;
}
cout<<ans<<'\n';
}
}
}
int main()
{
ios::sync_with_stdio(0); cin.tie(0);
// freopen("in.txt","r",stdin);
// freopen("out.txt","w",stdout);
// srand(time(NULL));
main_init();
// int _; inint(_); For(__,1,_) // T>1 ?
// printf("\n------------\n\n"),
main_solve();
return 0;
}
/*
*/
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 5
Accepted
time: 1ms
memory: 3672kb
input:
93 2 long gkwc 3 gkwc 2 long omvjdthb 4 1 2 long cumx 3 omvjdthb 4 16 3 gkwc 2 long tebdginn 4 15 4 30 3 omvjdthb 4 22 4 37 2 long nbghbbahln 2 long kkjzl 4 9 3 nbghbbahln 4 31 3 nbghbbahln 3 gkwc 2 long hjzfa 2 long tptemwur 4 39 3 tptemwur 2 long sjybn 4 8 4 15 3 cumx 2 long xathyrnc 4 32 3 xathyr...
output:
0 0 8 gkwc 16 8 cumx 0 24 omvjdthb tebdginn 8 cumx ERR 32 40 omvjdthb 32 tebdginn 32 0 48 56 nbghbbahln 56 64 omvjdthb omvjdthb 16 72 nbghbbahln 72 72 80 88 ERR cumx hjzfa 32 8 16 omvjdthb ERR 96 104 omvjdthb 64 96 cumx 8 112 120 tptemwur 128 136 144 cumx 48 88 152 sjybn 144 48 16 80 gkwc 96 tptemwu...
result:
ok 93 lines
Test #2:
score: 5
Accepted
time: 0ms
memory: 3812kb
input:
100 4 0 4 4 2 byte szqir 2 long fweahddll 2 byte dvqu 3 szqir 2 long wqcnqxppvg 3 szqir 4 9 4 33 3 wqcnqxppvg 4 38 4 5 4 33 2 short erhxh 2 short wwsp 4 3 3 szqir 4 42 2 short pxkwnp 4 15 2 int teuwwrw 4 45 3 erhxh 2 int uuycypz 3 uuycypz 4 48 4 35 4 6 3 wqcnqxppvg 2 byte yvgc 3 yvgc 3 teuwwrw 4 25 ...
output:
ERR ERR 0 8 16 0 24 0 fweahddll ERR 24 ERR ERR ERR 32 34 ERR 0 ERR 36 fweahddll 40 ERR 32 44 44 ERR wwsp ERR 24 48 48 40 wqcnqxppvg 8 34 0 ERR 34 8 ERR ERR dvqu ERR 36 ERR ERR 49 32 ERR 50 52 wwsp 56 erhxh yuoquzsyr ERR 0 ERR 24 24 64 72 56 74 32 teuwwrw 80 40 ERR ERR 80 zuwd 88 teuwwrw 34 96 80 104...
result:
ok 100 lines
Test #3:
score: 5
Accepted
time: 0ms
memory: 3708kb
input:
99 2 long mrbfn 4 1 3 mrbfn 3 mrbfn 3 mrbfn 3 mrbfn 2 byte oosmberlsb 3 mrbfn 3 oosmberlsb 2 byte auhmoewi 4 7 4 3 2 long jplopgx 4 0 4 31 2 int qqgjpu 2 long plfawkhtd 3 auhmoewi 3 plfawkhtd 2 int uwue 2 long muvlnlgqn 4 46 4 46 4 22 2 long inhosie 3 auhmoewi 3 oosmberlsb 2 byte pziz 2 byte anyxdru...
output:
0 mrbfn 0 0 0 0 8 0 8 9 mrbfn mrbfn 16 mrbfn ERR 24 32 9 32 40 48 ERR ERR jplopgx 56 9 8 64 65 ERR 56 mrbfn plfawkhtd plfawkhtd ERR ERR 66 72 80 56 88 0 24 80 80 inhosie ERR 96 64 104 112 66 120 104 120 128 0 ERR 9 136 144 145 152 65 160 anyxdruw 164 ERR 168 72 170 wbpatry 152 48 cjzosekh cbnapeqnwr...
result:
ok 99 lines
Test #4:
score: 5
Accepted
time: 1ms
memory: 3964kb
input:
99 1 lfqikjtpgg 97 long mbtn long snpj long fqb long vdnkbv long zqqjxhrj long upp long oe long lv long sea long a long fdymaqnuy long oyshjkhm long secuap long o long uvq long xpw long fsytmbpaaw long rx long nhmski long hzop long noy long mqbitjlx long jewquyks long auntk long ak long bsksgoi long...
output:
776 8 0 608 jrrer.vdnkbv 0 368 jrrer.qzotxqv 616 776 zeewv.fqb zeewv.hzop 376 jrrer.lqyfurmsv 1256 1552 1560 2336 jrrer.fsytmbpaaw jrrer.vfhi 3112 ERR 3888 ERR 3896 112 3904 a.drybikqbr 4680 rrb.kmk ERR jrrer.o uwarglwn.hzop 4680 1560 888 yqqjqq.t 4688 880 rrb.abeqpdi jrrer.ccxetwav 5464 5472 4680 6...
result:
ok 99 lines
Test #5:
score: 5
Accepted
time: 1ms
memory: 3740kb
input:
92 1 stmyil 94 long frzkeaq long uloz long khxrakhvl long mgmigozwpb long gcmzgib long tktaj long ttgattk long ugnfjyqjei long qqihkphedp long jps long bhdunqh long qsefx long iujkjmuolx long lpyffp long qryknjg long utrepva long dsmu long qxazh long nc long u long lzslpheclz long ftjm long chwf lon...
output:
752 8 0 mtsoynlcr.kritlqvtrq 752 1504 480 896 0 1512 bbq.lzslpheclz exq.khxrakhvl 1768 2264 2272 3024 qvv.vgkrxwdyu ERR 3776 3784 3792 3776 3384 3800 4552 3784 qvv.uwd 4552 4560 4568 5320 5328 xzajney.itvqydfpjr rk.lshn 3032 3776 4528 5336 4560 5344 bbq.hr rk.nc hyxxgtvpe.qxazh 3024 6096 6104 4560 b...
result:
ok 92 lines
Test #6:
score: 0
Wrong Answer
time: 1ms
memory: 3892kb
input:
98 1 mmozfzqkeq 98 byte snth short p short ukfuxuar byte vidqzvet short mtzfq byte umfo short rxzppsvp short jkcngxzj byte upvqni short wnthhncby byte zzwunbs short hsmgblo short ccgvhtx byte wmru byte gfhcr short fwfanwrr byte wyhihbma byte rppirq short nspggyr short wkntvbwwlv byte hoqqz byte fvcn...
output:
162 2 0 ERR ERR 0 ERR 0 2 168 168 hql.erpywn 168 176 hql.wnthhncby 168 176 168 180 hql.leiyj ERR ERR 342 504 346 314 342 2 fctohuj.jb 504 666 828 963 iu.wnthhncby sb.tsnrfpv 990 hql.wkntvbwwlv izphpoqi.rwabu 1152 1160 168 1168 1330 1492 crizxpw.jfipsmc 0 1492 1496 176 wmattvkzzs.hsmgblo trlpnaik.qmn...
result:
wrong answer 28th lines differ - expected: 'ERR', found: 'fctohuj.jb'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 3692kb
input:
92 1 xreiqsyjsl 94 int joqtxmb byte eobzfc int yglime int ghhoizgeq long kiza long aef int ahkehlz byte kgzpv long nf byte hmshwxalu short tniregati byte m short ybauqfo byte tmtnxog int etgavrbmqj short mdirp int qofuzp int lzyvpl int tfdwv int obskuccugg byte bgq short ze long bpyzngywya int rcyis...
output:
496 8 0 ERR ERR ERR ERR 0 ERR 2 ERR ERR 4 2 0 8 0 2 16 16 20 24 etgavrbmqj.joqtxmb 4 etgavrbmqj.xgzmk 2 514 16 etgavrbmqj.pnofbzjny 520 584 etgavrbmqj.rfvkgd 304 1010 514 agifvelzil.gnipxkjed 1016 4 1506 1506 agifvelzil.wonsc agifvelzil.otiumgzk 1508 1512 1516 1518 0 etgavrbmqj.nmoqjx 1520 yn.llnu m...
result:
wrong answer 26th lines differ - expected: '520', found: '514'
Test #8:
score: 0
Wrong Answer
time: 1ms
memory: 3736kb
input:
93 1 spkif 90 short klz short wlbylhewfp short kyaoz byte iuszpejqeb short hlbbgkvnhn short xwsavtujm byte pgfwluu byte mbsh short ybzxrav short ilmd short dvntuiawh short ucbdcgwkyr short m byte qefbom short rpdiishks short dbq byte amiipjf short rcuw byte ct short brdieyded short snuehuwrbf byte o...
output:
164 2 0 0 mslenxromt 8 16 gngtzlv.awq kkyubikfab 0 gngtzlv.jwxveqixgt gngtzlv.amiipjf gngtzlv.cpchxhefw 16 179 179 gngtzlv.ikewaav gngtzlv.pgfwluu 16 gngtzlv.anphcrwk 180 180 182 184 348 ebuyegvf.anphcrwk 512 520 ebuyegvf.aq 528 692 179 ebuyegvf.didtdpyk 856 856 8 860 1024 1188 512 cxjagr.kyaoz 1352...
result:
wrong answer 7th lines differ - expected: 'ERR', found: 'gngtzlv.awq'
Test #9:
score: 5
Accepted
time: 0ms
memory: 3900kb
input:
100 1 tmwddcqr 96 long vc long bzjxjo long rpfgxjw long rwfnwjxezo long evovfc long gj long zwoml long qtgongwrsf long qoti long xoisdmvl long vkcbsjti long lyv long ipjvh long lmemkym long zybinjoacb long xo long opaxv long fd long cheprbq long vwmixkoa long qkxjkn long ty long ad long nrrm long kl...
output:
768 8 800 8 640 8 112 8 736 8 200 8 760 8 776 8 424 8 784 8 ERR ERR 0 112 96 888 fpqgnrislz.ygsfaifx 1624 2408 woshrig.bmvb woshrig.hcwvvtmis 800 48 2832 2744 800 8 ERR 3256 4056 4856 568 8 woshrig.uqlg 1624 f.uopwisq 384 2840 4864 776 8 toqmlsia.kqmumt f.bjma woshrig.cqtnvwiaxa ERR 4928 woshrig.urn...
result:
ok 100 lines
Test #10:
score: 5
Accepted
time: 1ms
memory: 4216kb
input:
94 1 oeareonbmc 94 long sjlbu long ddjtxqy long ac long rjmwvryp long bjw long kjxs long dns long wycl long scucpcfki long vhotgxwf long yfgvgw long xb long um long cmcuihmv long jwyuguj long dl long hgecyw long cn long xrwhhsqoar long xfajrvvuy long pg long ln long bwgziqt long knwn long mjmz long ...
output:
752 8 776 8 672 8 720 8 760 8 536 8 760 8 632 8 776 8 760 8 ERR 0 528 760 hydigzwwgn.qd hydigzwwgn.otwgkcyef hydigzwwgn.atgrr hydigzwwgn.itqx 1520 648 8 760 2280 2928 1192 2864 784 qbwbfxy.yftp hydigzwwgn.dgwtdm 736 8 qbwbfxy.jfjkrt 632 8 3576 4096 760 8 1112 txmulyulzl.orbx 416 2280 d.stqtadsc hydi...
result:
ok 94 lines
Test #11:
score: 0
Wrong Answer
time: 1ms
memory: 4084kb
input:
100 1 qg 75 short imvphecx long tgthzzocgy int z long rdkrbwqi long bkzeqx byte ebcxwfjeka long ugvjxbayyc int srjda long ah short nhqbw int twpca byte hynzjak long mwrjaitjf byte qeensxo short oc int pniisvwlr int yvqoaipq long nwokprd long pryksxsjti byte zhbuomugxl int bgk byte luo byte kmimxmj b...
output:
368 8 376 8 424 8 448 8 162 2 448 8 472 8 472 8 360 8 288 8 408 8 0 288 8 164 272 8 448 vledfvupie.bcwbyjhb 416 8 hmjam.gb 668 440 8 504 432 8 ERR 720 1160 16 4 1576 2016 2304 124 2676 520 8 2676 2384 432 8 2696 3144 vledfvupie.ikdf 272 8 440 8 3144 424 8 3664 376 8 4096 96 1 4532 170 2 4696 ysvlsnr...
result:
wrong answer 32nd lines differ - expected: '2680', found: '2676'
Test #12:
score: 0
Wrong Answer
time: 1ms
memory: 4264kb
input:
98 1 prjerge 52 short baiklk short pdauxtmhcs long bmutcn long xhrktulr short gxqgh short ylxevjych short rgd byte gixpucez int bbmq byte giezc short goonshi byte pupsmxs int jmadko byte lziz short azfctnm long pxlp int lcezuwix int pwcmndzare int isjkucax int tngygloe int vjcs int dbcsddgz short ct...
output:
240 8 496 8 360 8 90 2 61 1 164 2 240 4 208 8 416 8 472 8 0 208 496 8 488 8 216 n.itlmw n.saumwdw 704 872 64 8 sc.wypmrhgs sc.ly 1360 1568 1568 1632 1386 704 0 1632 1640 408 8 1568 ERR 224 8 148 2 1632 tzmkyojv.rjzj tzmkyojv.axuqyhbho 1680 1592 fkgnvmnohc.jkkeu kybrllmdrx.kklcmqfcl 472 8 424 8 400 8...
result:
wrong answer 60th lines differ - expected: '2648', found: '2642'
Test #13:
score: 0
Wrong Answer
time: 1ms
memory: 4208kb
input:
95 1 icyrswqfl 93 short qffx byte lkojhr long hhsbxdps long gcsi long hiznsou short hjwpmzywv int hhxyuk byte vrudbiwl byte cqmcxfx long jzdrah int uafucqu int gwixgsyfa short ezyti long iczdyjxa short tc short vyvozoirs long m int kpmg short ecxfhjhfu short gwdqiiza int yfjmrewujt int hl long t lon...
output:
472 8 488 8 280 8 480 8 154 2 320 8 480 8 456 8 416 8 408 8 0 384 464 8 rltmyrzog.lk 416 360 8 224 8 656 tynqrri.poelsjaft 416 8 880 tynqrri.ynb 88 2 440 8 268 4 1040 1264 1040 1272 1329 ERR 392 8 288 8 dpoejedj.ynx 336 8 dpoejedj.athxx 288 8 tynqrri.naoscxd 144 8 408 8 1384 dpoejedj.spu 1688 tynqrr...
result:
wrong answer 19th lines differ - expected: 'ERR', found: 'tynqrri.poelsjaft'
Test #14:
score: 5
Accepted
time: 1ms
memory: 4012kb
input:
93 1 rrcruvb 100 long gbrpkh long o long npx long fqbwyv long cer long xtmxwgset long slohh long r long kkljaga long wkesor long belhrmxthz long bw long vx long wfqc long nqdvlk long v long mlgm long hioyoss long rhpyhqr long troazjcq long got long mxkp long nwayf long qofxrrhp long ttskfndao long j...
output:
800 8 648 8 728 8 144 8 696 8 696 8 248 8 800 8 776 8 776 8 51168 8 ERR 30960 8 0 jfrmogf.aeq.ttskfndao 15832 399432 8 386656 8 6168 jfrmogf.lc.cabonsgj 2433544 8 4680 30960 4530576 8 kk.imudvhcvt.aievla.grvkv 430392 dpcte.tkdjn.vqazwgamhi.snlwec.lmtmgnsl 2432 17328 10448360 8 2863936 7394512 778116...
result:
ok 93 lines
Test #15:
score: 5
Accepted
time: 0ms
memory: 4020kb
input:
92 1 mfqfaoi 51 long vgiijn long kqvmcutd long kkqmfdmdsg long we long h long lx long bdzy long tqb long ayybs long iefznflod long qjw long xq long hajgbfpuqj long otlrrbqpy long xpxyro long lum long umizkapzp long jxjjgsuab long aesd long redlyai long htpfoi long eyo long hkc long hb long wwt long ...
output:
408 8 512 8 752 8 736 8 744 8 408 8 736 8 664 8 768 8 792 8 0 512 51120 8 nnofwvu.lcfawdwx 0 792 51912 57024 8 xulktgcyj.lplnml.riszxar 51912 504608 8 52424 ERR 472864 8 4676512 8 xulktgcyj.uzqpphz.qss 52680 52832 uxlphxmpxp.xipip.agfe.wmdh uxlphxmpxp.ctg.yvamqxu.gcwro.ubicgj 4729344 uxlphxmpxp.cdgz...
result:
ok 92 lines
Test #16:
score: 5
Accepted
time: 0ms
memory: 4224kb
input:
92 1 itmex 54 long qlmtjv long eoiw long ef long imfhgcc long cvvwlhqj long pwrrrcarid long ejs long v long cjl long qfhsxdx long opqhk long rtyfmpb long cgefjpnsyj long oaovfhc long vun long thwqf long hhdrhsizr long ckwl long gaxdzp long mwcw long knjp long zcemzmfs long zlnjmriio long oein long s...
output:
432 8 696 8 784 8 448 8 800 8 536 8 760 8 760 8 256 8 720 8 ERR 0 144 hcfxyzah.jjogvpva 51976 8 hcfxyzah.noszqk hcfxyzah.jjogvpva 47464 8 hcfxyzah.hx ERR 104 hcfxyzah.vxtkauuumx 0 hcfxyzah.kfhepxm hcfxyzah.kfhepxm 256 200 688 240 168 hcfxyzah.anizchnv 467184 8 944 952 712 985968 8 hzgekqest.radzspon...
result:
ok 92 lines
Test #17:
score: 0
Wrong Answer
time: 1ms
memory: 3980kb
input:
94 1 gzvgm 96 int ozzmlzdcs short lzf int tc int cpagll byte jktmts long qtsyn long rfyehp int dmfpk byte dourj byte aoqijd short er int aykwg byte bozawefpt short kodpn short lk byte xxem byte cvo long vdowzxhn short rutrrcfua short wev short wnkufo byte hvo int ovnbmuq long rcx short ngtdtdxt byte...
output:
400 8 74 1 160 8 114 2 400 8 408 8 224 4 344 8 400 8 91 1 ERR 0 pyoatyr.brh 18400 8 38 76 16576 8 114 ggx.bn 5568 2 ggx.ufcnsru 236184 8 208 ERR 50 165 141 4197 16784 252968 141072 8 114 1463344 8 2431368 8 36 489152 489307 ilduuhrkd.mi.ws.rupf 6288288 8 489384 ilduuhrkd.mi.lrguw.nkzolzq 13226336 8 ...
result:
wrong answer 37th lines differ - expected: '489312', found: '489307'
Test #18:
score: 0
Wrong Answer
time: 1ms
memory: 4156kb
input:
92 1 pyrj 59 short qjazriblv int udo long ifisemk int inso byte lpmnuevtab int ilrtum byte aucf byte qvwxbxcevi long sxboxvu byte rjfpvq byte iteamtvj int lrsf short nnbnd long ndiwpi short hvcpdhh short rqmusonxma short agoriisqdu short jqskvkw short qyq long zvmpxd byte mbb long kpabhzk int qktde ...
output:
280 8 91 1 288 8 472 8 138 2 448 8 312 8 432 8 440 8 99 1 0 0 433 ezfwp.flnygykhx 483 11560 8 viwnadheef.vtp 18520 8 536 wgrr.sjhjl.nnpp 4448 wgrr.ihph.mwbazzwcux 76888 8 wgrr.zyd.zjcrxsk 165232 8 505 19056 632504 8 26236 95944 536 zcttgv.cxdw.ajvakalw.torlnlife 261176 893680 1652968 8 1526184 alvot...
result:
wrong answer 13th lines differ - expected: '440', found: '433'
Test #19:
score: 0
Wrong Answer
time: 1ms
memory: 4016kb
input:
100 1 deam 92 int puxuhin byte qzbt byte oelfvt short qjhpt short zvmv byte hmdzptx long mctwgosxff short uygqtcthn long ykshnocnt int ybsvabraeu int qzwh long brrtu byte fide byte lisonhykl short pmsend byte dhqyw short rso long vmuhoz byte kasnh long lyjjfblrb short uzsagojr byte odqcqtjcvs byte m...
output:
408 8 32 4 196 4 472 8 456 8 352 8 504 8 16 4 376 8 456 8 ERR 0 ERR 408 15264 8 320 456 ryxn.fbppogwj 15576 8 ycrw.dqugiozvkz 128 2 808 16068 176440 8 16196 214072 8 1082280 8 16390 1675448 8 16392 1691840 1692296 8003416 8 15 1 16083 ERR 1692768 9104352 8 43026288 8 1692784 4440 4 1869224 16196 116...
result:
wrong answer 20th lines differ - expected: 'ERR', found: 'ycrw.dqugiozvkz'
Test #20:
score: 0
Wrong Answer
time: 0ms
memory: 4088kb
input:
100 1 vmtrvlmprp 99 byte hbvh long ifeouvbu long ylh long hqgw int wcs short oavgeme byte ppmssx byte prdykjzgw byte obta short yzf byte ozqfbozj short vuypsqhd byte anwbcc byte iiungtbs short dkhape byte ixh short gbdm long ijrczrv short rgkc short amskm short jguttrfv short dotlif byte tqvwccaafx ...
output:
440 8 67 1 464 8 256 4 16 8 150 2 472 8 248 4 264 8 512 8 ERR 16984 8 12008 4 ERR 151776 8 ERR 0 uj.yuzrajlheu 472 3172 17456 10288 243816 8 34440 gf.pd.yobdmdxdq 2865 1 2735 1 34448 34885 qlr.hqxbr.jezqmxasd gf.rrinjkr.osyvjg 119636 4 37620 1524560 8 25600 157256 2174976 8 1681816 ERR 1684681 16874...
result:
wrong answer 29th lines differ - expected: '34888', found: '34885'