Problem with wrong answer but output is correct

Output is correct but showing that wrong answer when I’m submitting my code.
Link of my code -: CodeChef: Practical coding for everyone
Please help me .
Please comment the correct path of this code in comment box of my incorrect solution.

Factorial of 100 is

93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000

The maximum value you can store in primitive data type is

9223372036854775807

Now can you find out the reason for WA?

No , Please explain it because I’m begineer .
Is there any fault with data type ?

Hope this helps.

1 Like

You can also use “boost/multiprecision/cpp_int” in C++ for integers where precision of integers may be large and is not known to you.

Will codechef accept this library.

Yes you can use this library in codechef, you just have to include it separately.

1 Like

Thanks Sir . Love from Backbencher of tier 3 college.