QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505611#3449. Pizza Problemsxiaowuc1TL 711ms90500kbJava83.0kb2024-08-05 06:26:072024-08-05 06:26:08

详细

Test #1:

score: 100
Accepted
time: 33ms
memory: 39180kb

input:

1
4 +zucchini +mozzarella +mushrooms -artichoke

output:

mushrooms

result:

ok 

Test #2:

score: 0
Accepted
time: 39ms
memory: 36876kb

input:

3
3 +redbeans +soylentgreen -bluecheese
3 +redbeans -soylentgreen +bluecheese
3 -redbeans +soylentgreen +bluecheese

output:

bluecheese
soylentgreen
redbeans

result:

ok 

Test #3:

score: 0
Accepted
time: 315ms
memory: 87044kb

input:

10000
3 +wy -lloggxqqheet -eljd
3 -zhyrg -f +dzs
3 +bw +qh +ybq
3 -f +hv -zqr
3 -kc -i -kptc
3 +hl +fiy -jez
3 +ir -qk -kml
3 -fnpxlbh +i +ide
3 +eogv +hjtngdw +jzcy
3 -dr +u -rfe
3 -htbqf +j +dk
3 +jez +gv +svwvy
3 -wvgtsbdjxpezuji -tjm -p
3 +yc -fdp +ir
3 -svwvy +gi -tjm
3 -yepw +dk -yhmc
3 -igssi...

output:

hh
qqqh
lkwgldmq
hl
itnaqgrd
kbgaydooc
eljd
jife
och
qh
id
yw
kqar
ir
fbg
vhnty
nnklu
jb
zs
rk
zt
hyrk
hjtngdw
rs
hoj
exth
bm
kml
kc
ciddphodp
km
sy
yiw
g
zhyrg
j
k
ejr
rnmmr
m
o
ebn
npihs
p
ohwcpqrkti
t
u
v
w
x
y
qjx
ts
zsktraa
poerjyr
akvclv
lm
rsuva
htbqf
gkripo
dk
ybq
dr
eku
exfp
ulfr
msz
mc
ber...

result:

ok 

Test #4:

score: 0
Accepted
time: 326ms
memory: 84768kb

input:

10000
3 +sjmwhyay -vg -tq
3 +bxwa +xdv +qca
3 -vye -emcomhp -ktsu
3 +sbdjr -rz -jj
3 -vuxo +qk +wgo
3 +bvnb -vud +co
3 +ai +dtjy -zf
3 +x -d -qca
3 +dkkpw -el +ak
3 +o +azr +layde
3 +w -rj +aedg
3 -qqvhp +n -bxwa
3 -kovijn -xt +uwj
3 +aedg -kvevzsd -jlh
3 -fob +u -dxhc
3 +emcomhp -sbi -dln
3 +quhe +...

output:

hur
pw
uwj
yb
xdv
hkpydtxrftwau
qoq
rwab
ic
qk
ql
qm
ldnc
ldxhi
bvnb
ai
aj
ak
pyauik
ze
am
aq
wkzl
uxu
bbu
layde
njy
jn
poh
bm
bu
tww
gvvyp
mwptbwkqhdmhip
aeai
d
uix
e
f
sy
ebc
jlh
h
i
j
cm
k
co
m
n
ajx
o
p
r
vrobv
s
t
u
v
guoi
x
xfgkys
qattw
lo
potl
vud
aedg
do
nmnnkp
npsapy
dyjw
bxwa
ds
lzexqr
utw...

result:

ok 

Test #5:

score: 0
Accepted
time: 481ms
memory: 88104kb

input:

10000
6 -f +stbqz -ogif +ri -coc -pamqj
6 +jmn -fww +wiloelaxsitepe -gy +lhtltwkaqlua -jf
6 +xo -woj -op +xe -qa -til
6 -p -xgqwfrn -hwh +e -cm +bx
6 -xe -zn +cl +c +lhl +r
6 +yu -qa -wqc -gy +xrevvejix -yspjg
6 -qhzgc -bcflacptz +nut -ufe +znycp -acz
6 -ny -vea -lkk +vdejahrftdf -qfrih -ibwp
6 -kna...

output:

yc
hs
uvinp
znycp
yu
joqy
ij
qr
lng
zd
onwcxfdp
spqqvl
re
zn
fysefcbs
qhzgc
ri
hwh
jc
rm
zu
jf
jh
aqq
pvgu
be
lhtltwkaqlua
bhier
bl
hmvo
sjufcanvmyh
bx
pxc
iebmhw
gmxpikodf
rkx
a
c
exby
e
h
cl
k
l
m
erurt
fnmildppvd
p
q
r
fdp
cw
t
ti
u
v
phu
dxid
stbqz
ibwp
dh
exfklxyic
lu
jmn
yqdu
woj
uk
dz
iybxtur...

result:

ok 

Test #6:

score: 0
Accepted
time: 508ms
memory: 90388kb

input:

10000
6 +gj -dn +mjyt +edikb +ivdtx -mvb
6 -lbbc -c -gxq +oozajgvqgfdi +ozhk +mjyt
6 -lpupyxsfpa -gs +mjyt +exyq +dlhwqdor +ytaiv
6 +fwnnxu -dr +mjyt +qv -ejh -ptfo
6 +mjyt -co +kd +hgpkzof +g +ftlrax
6 -xtwdmh +jos -oajge +mjyt -zy -m
6 +zwzgstw +mjyt +fwnnxu -kuzi +zowg -pho
6 +kdc +weegfo -efa -p...

output:

zixmbew
bqq
lbbc
yl
yp
uos
ozhk
mgduz
jaw
ij
yz
bjk
hjnogqzspusqr
fvkjettrn
exyq
qv
sfuipbs
qx
al
gtz
zieyelh
pqeot
wawoe
hocup
myk
vocms
twew
twe
lxcnfqtcgkjz
bjdvl
vcvaak
mjyt
hccctdns
sc
yqm
mip
ger
kd
cb
a
c
d
ivdtx
e
g
yyzl
k
agspdcuy
p
onp
nbofz
s
t
xxu
weegfo
v
lc
ibo
x
fuj
phs
zwzgstw
zlr
dp...

result:

ok 

Test #7:

score: 0
Accepted
time: 347ms
memory: 73704kb

input:

10000
9 -hnxemecf +jfy -ax +d +olj +ngm -nsdza +bqy -ez
9 +olj +qa -nsdza +ngm +khlmq +yqn +jz -ax -ez
9 +jfy +khlmq +nsdza +c +yh -ax +ngm -h -ez
9 +ngm +qa +khlmq +ax +jfy -ez +jz +olj +c
9 +yh +olj -jfy +yxqo -jz -ax +khlmq -nsdza +c
9 +khlmq -itcx +c -jz -ngm -ez -nsdza -ax +ku
9 -ydl -nsdza +qa...

output:

qa
itcx
yxqo
ez
ngm
khlmq
jfy
olj
o

result:

ok 

Test #8:

score: 0
Accepted
time: 289ms
memory: 68772kb

input:

10000
9 -bkd +hl +a -exsgs +j +lhkfbskgeg -naj -vst +zsryqneohbu
9 -naj -m -h -hl +d -exsgs -vst -j -bkd
9 -x -nksgd -exsgs +j +bkd +zsryqneohbu -naj +d +lhkfbskgeg
9 -pdse -j +o -naj -x -exsgs +lhkfbskgeg +d -hl
9 -exsgs +zsryqneohbu +d +lhkfbskgeg -hl -bkd +a -naj +ofnis
9 -naj +vst -x +d +kv -exs...

output:

zgxs
ce
lhkfbskgeg
kqtmsd
h
kv
m
dr

result:

ok 

Test #9:

score: 0
Accepted
time: 227ms
memory: 52976kb

input:

1190
9 +nrpo -v +tv +fjxjvsozhkiqdj +ratpgn +kfh +zw +emnbcwq -wgljqjc
18 +pg -agf +drrcq +acwokozi -uscxb -hru +dexyfq +ulbja -ki -lf +tv -nbdsc -eynnlntm -hf +emnbcwq -fis -m +o
16 +pv -cfaheb -o -hru -fy +ykwgs +hv +ar +lawinp -g +tv -ruscna -mk +emnbcwq -y +t
23 +ay +emnbcwq +g +fjxjvsozhkiqdj +...

output:

mblne
jxqs
ulbja
tv
pr
dtkd
kyu
ratpgn
iuu
uscxb
kfmark
mim
wyesg
fy
osz
pwiuuuvh
fjxjvsozhkiqdj
tqas
if
wlddpn
d
e
h
gbd
kfh
l
o
zi
emnbcwq
nrpo
eynnlntm
ar
q
cw
u
nd
v
pg
zr
nf
rkfth
z
pj
pphpswi
rewgndiqwvu
nk

result:

ok 

Test #10:

score: 0
Accepted
time: 711ms
memory: 88756kb

input:

4955
22 -tn +b -j -oks +bd +iow +wu -jvy +czc -ur -bdyaihjncfjp +ww -ydlq +il +zzsru +z -uz +knrzihbtbhs +v -am +vtwfkycknsuxnrw +joun
25 +jvy +defvhr -au +wo -bdyaihjncfjp +txb +tvoua +ukinvmj +rdmehqlt +s -prqupb +sf -zxf -tlkpvc -qna +w -cj -xd +us -hzwb +il -vlk -vkf -tjfulihl +zfsy
24 -tn -fpdn...

output:

hme
yiap
jih
jij
yj
uom
bzj
oks
ywu
lkyfakgx
hvqnjq
dsch
qvnktopb
il
af
fpdnto
iq
ir
bdyaihjncfjp
am
au
rh
ay
zt
bd
jm
nrvp
ompx
sf
sh
yrevpod
zzdzjuned
kl
a
b
cfe
sw
f
cj
rczgp
k
l
n
p
q
r
s
t
vlk
cxejx
vziol
w
z
ybthkvdxzdagg
srmv
rirq
di
tetgdp
tjfulihl
ua
qqded
nldb
idjptqpxgifm
rypab
eqcqfa
omr...

result:

ok 

Test #11:

score: 0
Accepted
time: 457ms
memory: 74132kb

input:

4280
28 -nmn -rsasayfz -jcudj +nabwxzdwkjip -m +ipuexauff +u -l -ekq +rgtadudiqf -h -d -idz -iknye -nfcg +egapgsj +sbyh +cry -q -cnm -cdocwq -hm +wxgi -p -bvf +tetgf -kt +obzq
26 +n +idz -bo -nfcg +bvf +xiir -rgtadudiqf -ipuexauff -jwbdsr -bakabjw -ul +fm -obzq -l -q +nabwxzdwkjip +hasndlpv -iknye +...

output:

rsasayfz
hm
ly
uuo
nmn
rsvuyas
hasndlpv
bvf
ul
tixss
olsbwuxu
yy
cnm
xjom
sbyh
wrj
n
p
nabwxzdwkjip
jwbdsr
wxgi
obzq
y
idz

result:

ok 

Test #12:

score: 0
Accepted
time: 281ms
memory: 58432kb

input:

3580
8 +o +ks -wxm -kt +qpqimp -s -zkzqn +ms
8 +dll +d +ska -toq +osl -kgz +ea -bly
6 +ctgw +gpk -fmuaxm -ctbkshjzr +j +toq
8 +wok -hbn -jmhwvp +kziz +toq +n +r -kgz
8 -ahtu -poye +wxm +gpk +zoh +qpqimp +dll -ek
8 +qg +a +ut +w -bly -vu -kt +kz
6 +s -poye +o +zcu +uuz +yph
8 +ldfx +vu -xix -kgz +gg ...

output:

ska
osl
wok
hz
qg
cycscn
gbhu
gpk
ek
mclk
mt
iv
yph
lsb
llokw
cnfc
jr
bpchytw
ctbkshjzr
zoh
od
toq
xss
uuz
gg
a
b
azhqryg
dll
qpqimp
h
ks
i
jlj
j
l
zcu
m
p
q
t
pdj
w
ldfx
ugvl

result:

ok 

Test #13:

score: 0
Accepted
time: 449ms
memory: 72920kb

input:

1886
16 +jj -lb +oll +xrmuh +t +yieub +pk -pw -fm -wgxy -bmj -hdtip +iyc +qewee -my +hy
11 +fpxf +wgxy +nm +bjswp +xfvqiztisw +ewkry -sgvdmnsemngv +jlb -nwi +fm -zm
20 +lelpxsp -exk -wgxy +bsldgz -xxg +u -pk -ks +av +zj +pxfa +pphoeypz +zh +jj -rdtz +ir +mlbtopi +j +yw -ik
13 -slfe +optlh +xtsnssoyx...

output:

ps
zhr
mylu
cqkdcgs
fpxf
rdtz
zyr
gmfustwzoqtifmb
apa
qmuqhocm
odgezfkar
yu
qp
xadbydp
ik
ir
qcqqqu
rngco
zh
zj
zk
iyc
osqt
av
uhzh
zr
xvx
zv
optlh
jj
llfatyx
mag
xrmuh
twz
rxjmsxq
qtyc
cb
b
c
dbjv
e
xxg
f
g
anlptyjtb
i
j
yav
vnmpse
cu
ppbh
t
thh
u
lb
tk
lc
yieub
x
y
emziuzuql
z
arkj
bmj
qoeq
qizm
l...

result:

ok 

Test #14:

score: 0
Accepted
time: 706ms
memory: 90500kb

input:

6192
13 -arta -lip -ggy -cgs +bjafk +kcii -ew +kx +ke +hlnk -gp +jasve +hi
16 -zxhqvcwu -hlnk +fgqr -bnx -bcfmwtd +gys -tabf +rp +bkit +kagixxc +lwd -cjnkrdtt +qh -qc -aw +yf
13 -k -ul +xg -udn -lpxg -xgz -kcii +fj -hoelxgx +qnohfxp -lip -hlnk -nxfvrxw
15 -sdan -uuq +hlnk +hpq -x +uyjicjc -sxg -vprv...

output:

hi
jfwhp
inshcgfo
yf
wnqt
nxfvrxw
orzxnco
qc
qh
qi
ia
baz
vqiic
epn
ah
ip
dnt
ydisiwb
vgmu
as
mcnlp
aw
amloqas
kagixxc
cdz
rn
zijlh
qyi
pthqckp
lpxg
xvhe
jp
bj
rz
jijhk
yyk
hos
okfpho
xoh
hudz
eetddji
ke
bda
a
c
e
g
h
qjiwvono
k
hpr
l
kx
o
thd
r
s
w
z
eka
hcmfabfmmvkpihj
vvxo
tu
icchyi
lp
sfy
kom
cg...

result:

ok 

Test #15:

score: -100
Time Limit Exceeded

input:

5972
23 +adl +nm -yr -peacw -chsvitx -ua -op +t +pnbdo -n -jt +pjhj +zz +h +fkcuc -xywwocm -k +obp -xom -xvxjfz +ymaz -rlabrmne -fil
23 -gep -u -gf -bv -rgdz -b -areiqquk +pro -lo +ai +ua +zk +adl +xl +gxdwl -oeci -rgn +zz -haxpa -ccz -q +fqtjji -ign
23 +iruv +pwf -yye -uxtq +zyjdg -bndlkp -jze -pea...

output:


result: