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 1595. Perfect Sequence

Alexander Kouprin how it can be solved in 0.062? [3] // Problem 1595. Perfect Sequence 3 Aug 2009 03:23
I had found O(n) solution but I need to out ~2.7 Mb. It's takes ~0.12 sec.

So, how this problem can be solved in 0.062?
Alexander Kouprin Re: how it can be solved in 0.062? [2] // Problem 1595. Perfect Sequence 5 Aug 2009 06:03
So, nobody wants to answer me. It's pity.
Erop [USU] Re: how it can be solved in 0.062? [1] // Problem 1595. Perfect Sequence 9 May 2012 00:15
printf too slow
you can use fwrite(), but first you need to translate the numbers into a string
fwrite() also too slow )))