Birthday paradox

how can we solve the question.what approach I should do.

we need to use probability theory in order to solve this question please read more about the same here

my collaboration mode is not working
reply plzz.
i am saying this coz i have passed my all test cases except one so i want to show u my code but unfortunately my collaboration mode is not working

now i have question in my mind that why we take 0.70

in case when p was 1 you were printing 2 answers, https://ide.codingblocks.com/s/231349

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.