Dogs and Monkeys
CodeChefOpen on judge ↗
There are two types of animals found at Thapar University, Dogs and monkeys. Every month corresponding to every old dog, a new dog and corresponding to every monkey, two new monkeys are seen in the campus. Given the month you have to find out the total numbers of dogs and monkeys in the campus. In month 0, there is a single dog and a single monkey in campus. Input The first line of the input co
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