QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#587415#4006. A=ByellowbirdAC ✓0ms1456kbC++20520b2024-09-24 19:50:172024-09-24 19:50:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 1388kb

input:

0

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test 0.

Test #2:

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

input:

100

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test 0.

Test #3:

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

input:

200

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test 0.

Test #4:

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

input:

300

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test 0.

Test #5:

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

input:

400

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test 0.

Test #6:

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

input:

500

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test 0.

Test #7:

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

input:

795913901

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #8:

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

input:

100985902

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #9:

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

input:

412598703

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #10:

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

input:

220941104

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #11:

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

input:

532553905

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #12:

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

input:

837625906

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #13:

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

input:

149238707

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #14:

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

input:

460851508

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #15:

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

input:

269193909

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #16:

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

input:

203051810

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #17:

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

input:

514664611

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #18:

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

input:

323007012

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #19:

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

input:

131349413

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #20:

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

input:

939691814

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #21:

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

input:

251304615

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.

Test #22:

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

input:

562917416

output:

S=XY
aX=Xa
bX=Xb
cX=Xc
X=ZP
PA=dp
PB=ep
PC=fp
pa=aP
pb=bP
pc=cP
p=(return)0
aA=Aa
bA=Ab
cA=Ac
aB=Ba
bB=Bb
cB=Bc
aC=Ca
bC=Cb
cC=Cc
Ya=AY
Yb=BY
Yc=CY
P=
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1Y=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0fa=af0
0fb=bf0
...

result:

ok Test Passed.