Some error occured while loading page for you. Please try again.
You are viewing a single comment's thread. Return to all comments →
The final test case is 10 ^ however many and 555 this causes my data to overflow, even when using long long. Can this be averted?
Add Reply Preview cancel
Since the problem asks you to output the answer modulo some number, it is possible to do the calculation without using BigInteger.
Create An Account
Or connect with
By signing up you agree to our Terms of Service and Privacy Policy
The final test case is 10 ^ however many and 555 this causes my data to overflow, even when using long long. Can this be averted?
Add Reply Preview cancel