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 1108. Heritage

I can find the way to solve this problem but i can't use operate with bignum. Can anyone give me any trick or hint???
Posted by Badd 22 Feb 2002 20:17
You'll have to use bignum in this problem (-)
Posted by shitty.Mishka 23 Feb 2002 17:50
>
Re: I can find the way to solve this problem but i can't use operate with bignum. Can anyone give me any trick or hint???
Posted by ilya trofimov 20 May 2010 01:11
Use FHT. 0.046 s.
You may use pre-calculated values, when n = 18 , total output size < 64KB :))))
Posted by c_pp 9 Jan 2017 17:20