https://ide.codingblocks.com/s/51785
sir, my code is only passing 2 test cases out of 6. wht is the error?
https://ide.codingblocks.com/s/51785
sir, my code is only passing 2 test cases out of 6. wht is the error?
the constrains are large enough so take long long instead of int.