QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#268977#7882. Linguistics Puzzleucup-team1878#WA 4ms3708kbC++20801b2023-11-29 09:10:052023-11-29 09:10:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3
a b a b b b b c cc
4
d d d d d c b a d b cd cb d a cb bc

output:

bca
dcba

result:

ok OK

Test #2:

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

input:

2
4
d a a bc ba bc b a a a d a a cb c c
4
a b da b b d ad b db b a c da b c b

output:

abcd
bdac

result:

ok OK

Test #3:

score: -100
Wrong Answer
time: 4ms
memory: 3708kb

input:

50
3
b b b a a c b b cc
4
d ab c ad d b ba ab c b d d d d d a
5
a aa aa ab ab ae b b e c c c ba c c c c dd d d dd c e c e
6
a ca a a a a a a ce a a b ba ba bc bc bd be e c c ca a cd cd be d d dc dc e e a eb f f
7
a a a a a a a a cf a a a a b b b b c c c cf a dd d dc d dd e f ed ee ee fb eg eg eg eg ...

output:

bca
dabc
cadbe
abcdef
aefdcgb
fcehabgd
bhgfedcia
jhcfgideba
fjbadkegcih
klhgjbaedcif
igkjmclfedhba
nfliajhgmbdcek
anmflijgbkhdceo
nofmljkchdbegipa
aponbljghicfqdkme
iqmonhckfprgjedlba
prisdomkbqjghfencla
tcrdpoakmlijhfgeqsbn
utiraopmnlkgshjfecdbq
qotsrvjunlmpkiegfhdcba
pvutsrhwiomljknqgfedbca
xbvuts...

result:

wrong answer The product 2*5=10 is not in the output at case #6