Question: Problem Statement Keeping a Secret On the first day, one person discovers a secret. You are given two integers, delay and forget. Each person will
Problem Statement
Keeping a Secret
On the first day, one person discovers a secret.
You are given two integers, delay and forget. Each person will share the secret with a new person every day, starting from delay days after discovering the secret. Additionally, each person will forget the secret days after discovering it It means they cannot share the secret on the same day they forget it or on any day afterward.
Your task is to find the number of people who know the secret at the end of day n
Important Note: Ensure that you save your solution before progressing to the next question and before submitting your answer.
Example
INPUT
Note:
Line : number of days secret get spread
Line : delay day
Line : forgetting day
OUTPUT
Exercise
Input :
Output:
Exercise
Input:
Output:
Do the question in python.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
