DGTMAGIC : Code get accepted for natural log but not for base 2 and 10?

DGTMAGIC : Code get accepted for natural log i.e. (base e) but not for base 2 and 10?

Can Anyone Explain? :pleading_face:

There is precision error: computer can’t store all infinite number of digits, so float numbers can be a bit incorrect. All accepted solutions and author’s solution are wrong. Your solution will be AC only if you give the same answer as author. Read more: Problem DGTMAGIC - QFUN2020: incorrect author's solution

1 Like

Thanks ! :pleading_face: