The link to this question is here
The link to my solution is here
anyone help me where my logic is wrong
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…
thank you, got it