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
bsu.mmf.team
what if input is 50000 times the number 3???
[1] // Problem
1587. Flying Pig
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
napst101r
Re: what if input is 50000 times the number 3???
// Problem
1587. Flying Pig
5 Apr 2010 20:00
use long arithmetic on base (9-17)-digits ;)
© 2000–2026
Timus Online Judge Team
. All rights reserved.