ENG
RUS
Timus 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
Show all messages
Hide all messages
what if input is 50000 times the number 3???
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???
napst101r
5 Apr 2010 20:00
use long arithmetic on base (9-17)-digits ;)
© 2000–2026
Timus Online Judge Team
. All rights reserved.