My code is giving correct output but is still not accepted

This is the link.

That’s not a link to your code; this is, though :slight_smile:

See e.g. What's wrong? -- fctrl2 . Using a double doesn’t help, either - the answer to e.g.

1
100

is

93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000

whereas yours gives


9.33262e+157
2 Likes