second test case fail and b/c time limit exceed.
Any optimization will be highly appreciated
https://ide.codingblocks.com/s/98707.
second test case fail and b/c time limit exceed.
Any optimization will be highly appreciated
https://ide.codingblocks.com/s/98707.
handle corner case for a==1
i’m not getting a == 1, case ??
if given probability is equal to 1 then print 366…
it throw tle for second test case ??
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.