you have to send 3000 grapes 1000 kilometers from grapecity to appleland. your truck can carry 1000 grapes at a time. every time you travel a kilometer towards appleland you must pay a tax of 1 grape but you pay nothing when going in the other direction ( towards grapecity ). what is highest number of grapes you can get to appleland?
Choose the correct choice from the following answers
A) 833 B) 765 C) 665 D) 679 E) 874
<gadget id="calculator">1_000 / 3</gadget>
<output>1_000/3 = around 333.333333</output>

<gadget id="calculator">floor(1_000/3)</gadget>
<output>333</output>

<gadget id="calculator">1_000 - 333</gadget>
<output>667</output>

<gadget id="calculator">1_000 / 2</gadget>
<output>500</output>

<gadget id="calculator">667 - 500</gadget>
<output>167</output>

<gadget id="calculator">1_000 - 167</gadget>
<output>833</output>

<result>A</result>
you have to send 3000 grapes 1000 kilometers from grapecity to appleland. your truck can carry 1000 grapes at a time. every time you travel a kilometer towards appleland you must pay a tax of 1 grape but you pay nothing when going in the other direction ( towards grapecity ). what is highest number of grapes you can get to appleland?
subtract(1000, subtract(subtract(1000, floor(divide(1000, const_3))), divide(1000, const_2)))
step one : first you want to make 3 trips of 1,000 grapes 333 kilometers . you will be left with 2,001 grapes and 667 kilometers to go . step two : next you want to take 2 trips of 1,000 grapes 500 kilometers . you will be left with 1,000 grapes and 167 kilometers to go ( you have to leave a grape behind ) . step three : finally , you travel the last 167 kilometers with one load of 1,000 grapes and are left with 833 grapes in appleland . correct answer is a ) 833