The TransCompilator

Solved LeetCode program · 917 of 1,000

#1276 · Number of Burgers with No Waste of Ingredients

Medium Math chunk-19.md

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".

Open in Playground Browse all 1,000 problems

Expected stdout

1
6