Calculate Deposit
CodeChefOpen on judge ↗
Chef want to get N amount of money from a bank after Y years at R percent compound interest rate. Chef can deposit Ai amount of money on beginning of ith Year starting from next year ( that is 2nd year ) Calculate the amount of money he need to deposit during 1st year. Round to next interger in case of fractional result. Forumula for compund interest, Amount = P * { (1+ (R/100)) }Y where P = prin
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