I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whether total calorie intake is less than 300 kcal.
The calorie of a pudding is 108 kcal. The calorie of a chocolate cookie is 48 kcal.
For example, in case of pudding = 1, cookie = 2, 1 is returned because the total caloric intake is 204 kcal and less than 300 kcal.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers59
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2052 Solvers
-
796 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
892 Solvers
-
Deleting an element in a matrix
494 Solvers
-
405 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
fun!!!!