Category "modulo"

Python modulo returning wrong answer

I was attempting this question on leetcode using python3. My solution for this problem is as follows: class Solution: def __init__(self): self.memo

How can I calculate a really long number with modulo without using bcmod?

The bcmod function is deactivated and I won't be able to activate this because its not my own server. For a reason I need to calculate an integer with a length