QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#90324#4006. A=BTTW#AC ✓3ms3476kbC++141.3kb2023-03-22 17:51:522023-03-22 17:51:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test 0.

Test #2:

score: 0
Accepted
time: 2ms
memory: 3260kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test 0.

Test #3:

score: 0
Accepted
time: 2ms
memory: 3304kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test 0.

Test #4:

score: 0
Accepted
time: 2ms
memory: 3468kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test 0.

Test #5:

score: 0
Accepted
time: 2ms
memory: 3440kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test 0.

Test #6:

score: 0
Accepted
time: 2ms
memory: 3360kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test 0.

Test #7:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #8:

score: 0
Accepted
time: 2ms
memory: 3360kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #9:

score: 0
Accepted
time: 2ms
memory: 3356kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #10:

score: 0
Accepted
time: 2ms
memory: 3304kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #11:

score: 0
Accepted
time: 2ms
memory: 3360kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #12:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #13:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #14:

score: 0
Accepted
time: 1ms
memory: 3360kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #15:

score: 0
Accepted
time: 2ms
memory: 3436kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #16:

score: 0
Accepted
time: 2ms
memory: 3476kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #17:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #18:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #19:

score: 0
Accepted
time: 3ms
memory: 3344kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #20:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #21:

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

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.

Test #22:

score: 0
Accepted
time: 2ms
memory: 3392kb

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
aB=Ba
aC=Ca
bA=Ab
bB=Bb
bC=Cb
cA=Ac
cB=Bc
cC=Cc
Ya=AY
Yb=BY
Yc=CY
Pa=aP
Pb=bP
Pc=cP
Z=T1
1da=ad1
1eb=be1
1fc=cf1
1a=(return)1
1b=(return)1
1c=(return)1
1P=(return)1
1=0
0da=ad0
0db=bd0
0dc=cd0
0ea=ae0
0eb=be0
0ec=ce0
0...

result:

ok Test Passed.