Why i am getting WA link to the code Problem Code:MPOW https://ide.geeksforgeeks.org/iYi4Me5uhU Thanks in advance –If there’s any silly mistake,it will be because I am new to CP.
Try this:
1 2 2 1000000000 1000000000 1000000000 1000000000
Thanks a lot.It was due to integer overflow…