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

Common Board

PROBLEM 1017! Now I have AC, but my solution is very bad! Please give any idea or little hint, how solve it better more...
Posted by Evgeny Reshetnikov 14 Jun 2002 13:23
Oh, I see you have solved it with only 0.01s and 53K. Why do you need more?
Posted by meoden 14 Jun 2002 13:36
It's a good result.
I can't understand why you want a better solution.
My solution worked nearly 5 second on all tests on P200MMX, and then i wrote all answers in array, so my program work so fast! But i want to know good method...
Posted by Evgeny Reshetnikov 16 Jun 2002 16:54
> It's a good result.
> I can't understand why you want a better solution.
Use DP, you only need two arrays of N (-)
Posted by Miguel Angel 17 Jun 2002 02:28
>