How to take big value as input?

I used unsigned long long int. But it didn’t help.

1 Like

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 Like

How big is the number? Provide an example.

Since you haven’t specifies the language you are using… There are multiple ways to handle large values:

  1. Use Python
  2. Use Java’s BigInteger class.
  3. Use Custom BIginteger class in cpp