Can someone help me in my problem-FCTRL2

my solution:- CodeChef: Practical coding for everyone
question FCTRL2 Problem - CodeChef
even though my output is right after submission it shows wrong answer. can someone tell me what am i doing wrong

Looks like you’re facing the same issue

1 Like

This doubt has been raised by many…it’s because you can’t store huge numbers even in long long data type. You have to take help from boost libraries.

1 Like

You need to think someway to store large values.
Here’s my approach to the solution CodeChef: Practical coding for everyone