QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#31804#4006. A=Blarryzhong#AC ✓3ms3712kbC++171.5kb2022-05-12 19:18:352022-05-12 19:18:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 3584kb

input:

0

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test 0.

Test #2:

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

input:

100

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test 0.

Test #3:

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

input:

200

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test 0.

Test #4:

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

input:

300

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test 0.

Test #5:

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

input:

400

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test 0.

Test #6:

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

input:

500

output:

Sa=DT
Sb=ET
Sc=FT
Ta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B=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #9:

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

input:

412598703

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #10:

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

input:

220941104

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #11:

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

input:

532553905

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #12:

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

input:

837625906

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #13:

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

input:

149238707

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #14:

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

input:

460851508

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #15:

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

input:

269193909

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #16:

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

input:

203051810

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #17:

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

input:

514664611

output:

Sa=DT
Sb=ET
Sc=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=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #20:

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

input:

939691814

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #21:

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

input:

251304615

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=DaA
bDA=DbA
cDA=DcA
aEA=EaA
bEA=EbA
cEA=EcA
aFA=FaA
bFA=FbA
cFA=FcA
aAB=AaB
bAB=AbB
cAB=AcB
aBB=BaB
bBB=BbB
cBB=BcB
...

result:

ok Test Passed.

Test #22:

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

input:

562917416

output:

Sa=DT
Sb=ET
Sc=FT
Ta=AT
Tb=BT
Tc=CT
bA=Ab
cA=Ac
aB=Ba
cB=Bc
aC=Ca
bC=Cb
bD=Db
cD=Dc
aE=Ea
cE=Ec
aF=Fa
bF=Fb
aAA=AaA
bAA=AbA
cAA=AcA
aBA=BaA
bBA=BbA
cBA=BcA
aCA=CaA
bCA=CbA
cCA=CcA
aDA=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