https://ide.codingblocks.com/s/63290
https://hack.codingblocks.com/practice/p/406/1714
2 test cases giving wrong answer
N kings problem
Hi Aastha, can you explain your logic behind the code because you’ve used hard-coded numbers like 2,3,5 etc. in the calculations. Please write your login in the comments in the code.
Hi AASTHA, pls change the 0 in line no. 14 to -1.
Also use long long int instead of long as the answer for testcases such as 19, 20 itself is very large.
This will work now 