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

my method is not good
Posted by tjq(killer of zju) 30 Sep 2000 23:07
I find my program ran 5 secs to solve problem 1007 and ran
more than 1 secs to solve problem 1004, but many other
authors did much better than I, but how can I improve my
algorithm? I'd like to contact anyone who has got a faster
method! my email is : tjq@hfls.net
Re: my method is not good
Posted by tjq(killer of zju) 1 Oct 2000 13:46
> I find my program ran 5 secs to solve problem 1007 and
ran
> more than 1 secs to solve problem 1004, but many other
> authors did much better than I, but how can I improve my
> algorithm? I'd like to contact anyone who has got a
faster
> method! my email is : tjq@hfls.net

it's so strange that other authors solve problem 1002 only
use near 300k memory but still run faster than mine , my
program use 600k,
Re: my method is not good
Posted by ManWithoutFace (USU) 1 Oct 2000 13:55
> it's so strange that other authors solve problem 1002
only
> use near 300k memory but still run faster than mine , my
> program use 600k,

This problem solved by classical dynamic programming.
Hint in 1002:
If number is '111111' why should I keep word 'cat' in
memory? I'll never need it!
Re: my method is not good
Posted by tjq(killer of zju) 1 Oct 2000 16:05
> > it's so strange that other authors solve problem 1002
> only
> > use near 300k memory but still run faster than mine ,
my
> > program use 600k,
>
> This problem solved by classical dynamic programming.
> Hint in 1002:
> If number is '111111' why should I keep word 'cat' in
> memory? I'll never need it!
>
so I suppose you have done a pre-process? can you send your
source to me, I want to study it, thank you, tjq@hfls.net