Barney is a busy guy. He can only afford to come to his office on 100 days.
Goliath National Bank decided to pay him if he comes on day and fine him if he misses day .
This being the lists and , for days, what is the minimum amount that Barney would have to pay Goliath National Bank at the end of the year?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Barney’s earning = p a y w o r k − f i n e m i s s = p a y w o r k + f i n e w o r k − f i n e w o r k − f i n e m i s s = ( p a y + f i n e ) w o r k − f i n e w o r k + m i s s
max earning = max_sum - sum_b = 106882249890 - 499150797829 = -392268547939
Poor Barney!