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 1587. Flying Pig

what if input is 50000 times the number 3???
Posted by bsu.mmf.team 4 Apr 2010 21:52
The answer will contain 23857 digits in this case! What to do? Long arithmetic will not help because of TL
Re: what if input is 50000 times the number 3???
Posted by napst101r 5 Apr 2010 20:00
use long arithmetic on base (9-17)-digits ;)