Hi, please help me to understand the problem with my solution,
3 out of 6 test cases are passing.
CB Scholarship, All test caes nt passes
Hey @smrgrover2 constraints are very big
1 ≤ N,M,X,Y ≤ 10^9 ​​
Use long long int instead of int, and all your test cases will get passed cause everything seems right, if it didn’t get passed let me know, will help you accordingly.
Yes, Constraints was the issue, changing to long solve the problem,
thanks
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.