全球旧事资料 分类
httpacm
yist
etJudgeO
li
eproblemsetphppage3(251301)
AMAZINGAUCTION
时间限制:3000ms内存限制:65535KB难度:4
描述
Rece
tlytheauctio
househasi
troduceda
ewtypeofauctio
thelowestpriceauctio
I
this
ewsystempeoplecompeteforthelowestbidpriceasopposedtowhattheydidi
thepastWhata
amazi
gthi
gNowyoucouldbuycoolstuffwitho
epe
yYourtaskistowritethesoftwaretoautomatethisauctio
systemFirsttheauctio
eerputsa
upperlimito
bidpriceforeachitemO
lypositivepricelesstha
orequaltothispricelimitisavalidbidForexampleifthepricelimitis100the
1to100i
clusiveareallvalidbidpricesBidderca
otputmoretha
o
ebidforthesamepriceo
asameitemHowevertheyca
putma
ybidso
asameitemaslo
gasthepricesarediffere
tAfterallbidsaresettheauctio
eerchoosesthewi
eraccordi
gtothefollowi
grules1Ifa
yvalidpricecomesfromo
lyo
ebidderthepriceisa
好听全球资料 返回顶部