Solved LeetCode program · 917 of 1,000
#1276 · Number of Burgers with No Waste of Ingredients
Original English source
The tomato is 16, while the cheese is 7. The difference is tomato minus cheese times 2.
If difference modulo 2 is 0 and difference is at least 0.
The jumbo is difference divided by 2. The small is cheese minus jumbo. Show jumbo. Show small.
If difference modulo 2 is not 0 or difference is less than 0, show "none".
Expected stdout
1 6