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 1002. Phone Numbers

t1002
Posted by icanwin 5 Oct 2009 11:36
I have made a code following further (do not penetrate, simply use). The code gives an error on 4 test, but I cannot think up an example where it would work incorrectly. Specify please such example.
/* deleted */

Edited by author 17.10.2009 01:40
Re: t1002
Posted by icanwin 5 Oct 2009 11:53
I cannot continue to solve following tasks. Help the beginning newbie. Please
Re: t1002
Posted by Oleg Strekalovsky aka OSt [Vologda SPU] 5 Oct 2009 17:48
I solved this problem via DP
Complexity - o((amount of tests)*(number length)*(dictionary Size)*(word size))
When i got amount of minimal words (via DP), I go from the end to the begining of number and push into stack words, that are answers.
Re: t1002
Posted by icanwin 6 Oct 2009 20:41
but what about topic problem?
Re: t1002
Posted by Oleg Strekalovsky aka OSt [Vologda SPU] 6 Oct 2009 20:58
I user Java and it's not yeasy to understand your code
I have written my algo.
Do you have some question about algo?
Re: t1002
Posted by icanwin 6 Oct 2009 21:10
I do not have questions on your algorithm. My algorithm is efficient. But only on those tests which I have thought up itself. It is a lot of them. But it is not enough of it. The test from outside is necessary.
My algorithm gives an WA on 4 test.

Edited by author 06.10.2009 21:11
Re: t1002
Posted by Oleg Strekalovsky aka OSt [Vologda SPU] 7 Oct 2009 02:31
Some times I'v got Crash 4.
I think, it was when words in dictionary were longer, then we supposed in current step of analylized number
Re: t1002
Posted by Baurzhan 7 Oct 2009 09:48
here -> http://timustests.lx.ro/ you can find tests to problem 1002(including 4 test)
Re: t1002
Posted by icanwin 7 Oct 2009 14:54
thank you
not exhaustive set of tests
Posted by icanwin 9 Oct 2009 21:17
My program carries out all tests from a set for 1002 problems, but I receive Crash (AV) on 6 test of timus.
// i have got AC. nothing wrong

Edited by author 17.10.2009 01:42