ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1158. Censored!

Does one need BigInteger to solve this?
Posted by dull_jester 24 May 2017 08:33
Since n^m can be very large (n,m <= 50), does one need BigInteger? I would not want to do it, since I've already started coding the whole thing in C++...
Re: Does one need BigInteger to solve this?
Posted by dull_jester 25 May 2017 01:45
Never mind, yes -- one does need BigInteger. Had to recode the whole thing in Java to get Accepted. Excellent problem!