Why both are taken of 1000005 ? Cant we create them of size 1000001 ?
Ask csum and p is so large?
@anuj_it hey,for safety measure so that hmara extreme case me bhi chl jaye islie lia hn app 1000001 ka bhi le skte the just take greater than 1000000.
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.
if csum is declared of 1000001, test cases 1, 2 have failed
@anuj_it hn bhai fir test cases are like that ,in some cases it overflows so pls use that one which is giving correct ans.