QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#77514#4006. A=BchenshiAC ✓2ms1880kbC++520b2023-02-15 00:08:462023-02-15 00:08:47

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-15 00:08:47]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:1880kb
  • [2023-02-15 00:08:46]
  • 提交

answer

#include<cstdio>
using namespace std;
int main(){
	printf("S=XY\naX=Xa\nbX=Xb\ncX=Xc\nX=ZP\nPA=dp\nPB=ep\nPC=fp\npa=aP\npb=bP\npc=cP\np=(return)0\n");
	printf("aA=Aa\nbA=Ab\ncA=Ac\naB=Ba\nbB=Bb\ncB=Bc\naC=Ca\nbC=Cb\ncC=Cc\nYa=AY\nYb=BY\nYc=CY\nP=\n");
	printf("Z=T1\n1da=ad1\n1eb=be1\n1fc=cf1\n1a=(return)1\n1b=(return)1\n1c=(return)1\n1Y=(return)1\n");
	printf("1=0\n0da=ad0\n0db=bd0\n0dc=cd0\n0ea=ae0\n0eb=be0\n0ec=ce0\n0fa=af0\n0fb=bf0\n0fc=cf0\n");
	printf("0=\nTa=Z\nTb=Z\nTc=Z\nT=(return)0");
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 1552kb

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: 1552kb

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: 1ms
memory: 1516kb

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: 1ms
memory: 1592kb

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: 1ms
memory: 1752kb

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: 1ms
memory: 1500kb

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: 1744kb

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: 1ms
memory: 1420kb

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: 1588kb

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: 1ms
memory: 1444kb

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: 1ms
memory: 1596kb

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: 1ms
memory: 1516kb

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: 1ms
memory: 1592kb

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: 1552kb

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: 1ms
memory: 1764kb

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: 1744kb

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: 2ms
memory: 1552kb

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: 1ms
memory: 1740kb

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: 1764kb

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: 1880kb

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: 1ms
memory: 1424kb

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: 1ms
memory: 1748kb

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.