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

how it can be solved in 0.062?
Posted by Alexander Kouprin 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?
Re: how it can be solved in 0.062?
Posted by Alexander Kouprin 5 Aug 2009 06:03
So, nobody wants to answer me. It's pity.
Re: how it can be solved in 0.062?
Posted by Erop [USU] 9 May 2012 00:15
printf too slow
you can use fwrite(), but first you need to translate the numbers into a string
Re: how it can be solved in 0.062?
Posted by Sunnat 4 May 2015 20:37
fwrite() also too slow )))