Tumpaa with a Cake
CodeChefOpen on judge ↗
Tumpaa has finally won the battle.she is the queen now.The chefs of Westeros have made a very huge cake for her of size n.Tumpaa is selfish but she has to share the cake with the common people, so she decided that she will cut cakes in a,b,c,d different sizes only. Count the maximum number of possible pieces of cakes possible if the cake is cut into pieces with size a,b,c,d. ###Constraints: - 1<
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start