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 1007. Code Words

If you TLE on #3
Posted by Hakkinen 24 Jan 2009 10:17
May be your program is O(n^2)
you can use an array.
f[i] means there are f[i] '1' after s[i].

(I can't speak English well.)
Re: If you TLE on #3
Posted by melkiy 12 Oct 2009 02:17
No additional array is required. Only several auxiliary variables.
Re: If you TLE on #3
Posted by KHU$R@V 31 Dec 2013 22:26