The Game of Chess(CDWRS05) (CodeWars 2013 - By BITS, Pilani )

The link to this question is here

The link to my solution is here

anyone help me where my logic is wrong

ur logic is correct but the data type u used was slightly wrong!!!

instead of long long u should have used long long unsigned as the range is upto 10^19…see this link…see the value of x that is in the output…hope this helps…:slight_smile:

2 Likes

thank you, got it